Refund a payment session
Returns captured funds to the payer. The session must have a positive refundable balance and the refundExpiresAt deadline must not have passed.
This is an asynchronous operation. The refund is returned in pending status and transitions to succeeded or failed.
If amount is omitted, the full remaining refundable amount is refunded. Multiple partial refunds are supported.
Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Headers
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
1 - 128Path Parameters
Body
A request to create a refund for a payment session.
Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
Response
Successfully created refund.
A return of previously captured funds to the payer. Multiple partial refunds are allowed up to the total captured amount.
Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.