capabilities.work

Capture and Refund Payment

A 2-step recipe with Swell. We can help you get access.

Recipe · 2 steps

Capture and Refund Payment

with Swell

Create a payment, then refund it.

  1. Record a payment against the order with the supplied method and amount.
  2. Issue a refund against the captured payment.
What you'll need to have ready
  • order_id: The order the payment settles.
  • account_id: The account the payment belongs to.
  • amount: Payment amount in store currency.
  • method: Payment method (card, account, amazon, paypal, manual).
  • currency: ISO 4217 currency code.
  • refund_amount: Amount to refund against the payment.
  • refund_reason: Reason recorded on the refund.
For your developer

Arazzo workflow swell-io:capture-and-refund-payment, 2 operations: createPayment → refundPayment. Specs on APIs.io.