- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createOrderPaymentCollectionWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createOrderPaymentCollectionWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates a payment collection for an order. It's used by the Create Payment Collection Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around creating a payment collection for an order.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateOrderPaymentCollectionWorkflowInput
CreateOrderPaymentCollectionWorkflowInputThe details of the payment collection to create.
CreateOrderPaymentCollectionWorkflowInput
CreateOrderPaymentCollectionWorkflowInputorder_id
stringThe id of the order for which to create a payment collection.
order_id
stringamount
numberThe amount of the payment collection.
amount
numberOutput#
PaymentCollectionDTO[]
PaymentCollectionDTO[]
PaymentCollectionDTO[]
PaymentCollectionDTO[]PaymentCollectionDTO
PaymentCollectionDTOThe payment collection details.
PaymentCollectionDTO
PaymentCollectionDTOWas this page helpful?