capabilities.work

Refund Payment and Confirm

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

Recipe · 3 steps

Refund Payment and Confirm

with dLocal

Verify a payment is PAID, refund it, and confirm the refund settled.

  1. Retrieve the payment and confirm it is in the PAID state before issuing a refund.
  2. Initiate a refund for the confirmed payment. When no amount is supplied the full payment is refunded.
  3. Retrieve the refund status to confirm whether the refund succeeded or remains pending.
What you'll need to have ready
  • paymentId: Identifier of the payment to refund.
  • amount: Amount to refund. Omit to refund the full payment.
  • currency: ISO-4217 currency code of the refund.
  • notificationUrl: URL to receive asynchronous refund notifications.
  • description: Free-text description of the refund reason.
For your developer

Arazzo workflow dlocal:refund-payment-and-confirm, 3 operations: retrievePayment → createRefund → retrieveRefundStatus. Specs on APIs.io.