Refund a committed payment intent, in whole or in part.
POST/payments/card/{id}/refund
Refunds are aggregate-only: there is no per-refund object and no
refund-enumeration endpoint. Only amount_refunded on the intent reflects
the running total refunded; issue multiple calls for multiple partial
refunds up to the captured amount.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
pi_9Z3K01ARZ3NDEKTSV4RRFFQ69G5FAVPayment intent ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Amount to refund, in the currency’s minor units. Must not exceed the
remaining refundable amount (amount_captured − amount_refunded).
Example
1000Responses
Section titled “Responses”Refunded. The returned intent’s amount_refunded reflects the new aggregate total
object
A monetary amount in the currency’s minor units (e.g. cents for USD).
Example
1000A monetary amount in the currency’s minor units (e.g. cents for USD).
Example
1000A monetary amount in the currency’s minor units (e.g. cents for USD).
Example
1000Currently supported currencies by Paygasus Pay
Example
USDExample
pi_9Z3K01ARZ3NDEKTSV4RRFFQ69G5FAVobject
object
object
Non-terminal resting state for asynchronously-settled charges (e.g. ACH).
The processor has accepted the submission but the final outcome arrives
later via an event, which advances the intent to Committed/Failed.
object
object
object
object
No such payment intent
object
object
Intent is not in a refundable state, is already being processed, or the amount exceeds the refundable remaining
object
object
Processor transport failure; the operation is retryable