capabilities.work

Refund An Executed Payment And Poll The Refund

A 3-step recipe with Tink. We can help you get access.

Recipe · 3 steps

Refund An Executed Payment And Poll The Refund

with Tink · Payment Initiation Management

Verify a payment is executed, refund it, and poll the refund to a terminal status.

  1. Fetch the payment and branch on its status: only an EXECUTED payment can be refunded.
  2. Initiate a full or partial refund against the executed payment.
  3. Retrieve the refund status. If still pending, loop back and check again; otherwise finish.
What you'll need to have ready
  • accessToken: An access token authorized for payments and refunds.
  • paymentId: The id of the payment to refund.
  • amount: Optional refund amount as a decimal string; omit for a full refund.
  • currency: Optional ISO 4217 currency code for the refund amount.
  • remittanceValue: Optional unstructured remittance information for the refund.
For your developer

Arazzo workflow tink-com:refund-payment-and-poll, 3 operations: getPayment → refundPayment → getRefund. Specs on APIs.io.