Authorizations
Your secret API key. Keep this secure and never expose it in client-side code.
Headers
Unique key to ensure the refund request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
"refund_123456_unique_key"
Path Parameters
Payment ID to refund
Response
Payment refunded successfully
Refund ID
"ref_12345abcdef"
Original payment ID
"pay_12345abcdef"
The amount refunded
100.5
Refund status
"succeeded"
Timestamp of the refund
"2023-07-01T12:00:00.000Z"