markPaymentCollectionAsPaid - Medusa Core Workflows Reference
This documentation provides a reference to the markPaymentCollectionAsPaid
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow marks a payment collection for an order as paid. It's used by the Mark Payment Collection as Paid Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around marking a payment collection for an order as paid.
Source CodeExamples#
Steps#
Workflow hook
Step conditioned by when
View step details
Input#
MarkPaymentCollectionAsPaidInput
MarkPaymentCollectionAsPaidInputThe data to mark a payment collection as paid.
MarkPaymentCollectionAsPaidInput
MarkPaymentCollectionAsPaidInputpayment_collection_id
stringThe ID of the payment collection to mark as paid.
payment_collection_id
stringorder_id
stringThe ID of the order that the payment collection belongs to.
order_id
stringcaptured_by
stringOptionalThe ID of the user marking the payment collection as completed.
captured_by
stringOptionalOutput#
null | PaymentDTO
null | PaymentDTO
null | PaymentDTO
null | PaymentDTOnull | PaymentDTO
null | PaymentDTO
null | PaymentDTO
null | PaymentDTOWas this page helpful?