Prerequisites
Before you begin, ensure that you’ve:- Confirmed a completed stablecoin payin on the payment intent you want to refund.
- Confirmed there is no pending payment on that intent.
- Installed cURL for API calls.
Step 1: Start a refund on the payment intent
Call the Refund a payment intent endpoint:cURL
JSON
Step 2: Inspect the payment intent
After you start the refund, call the Get a payment intent endpoint. The response includesamountRefunded, refundIds, paymentIds, and
timeline:
cURL
JSON
Step 3: Confirm refund completion
Call the Get a payment endpoint with the paymentid for the original payin, or with the refund id
(from when you
started the refund).
Example request (replace the ID with the payment or refund id):
cURL
JSON
type is refund and the status is
paid.