Loading...
Was this page helpful?
This documentation provides a reference to the refundPaymentsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step refunds one or more payments.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { refundPaymentsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = refundPaymentsStep({8 "payment_id": "{value}",9 "amount": 1810 })11 }12)
RefundPaymentsStepInput
RefundPaymentsStepInputpayment_id
stringamount
BigNumberInputcreated_by
stringOptionalnote
stringOptionalPaymentDTO[]
PaymentDTO[]id
stringamount
BigNumberValuecurrency_code
stringprovider_id
stringpayment_collection_id
stringdata
Record<string, unknown>Optionalcreated_at
string | DateOptionalupdated_at
string | DateOptionalcaptured_at
string | DateOptionalcanceled_at
string | DateOptional