A valid request URL is required to generate request examples{
"id": "<string>",
"object": "refund",
"livemode": true,
"charge_id": "<string>",
"payment_intent_id": "<string>",
"terminal_id": "<string>",
"amount": 123,
"currency": "<string>",
"status": "pending",
"reason": "requested_by_customer",
"settlement_batch_id": "<string>",
"settled_at": 123,
"failure_message": "<string>",
"created_at": 123,
"updated_at": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "invalid currency"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "REFUND_NOT_FOUND",
"message": "refund not found"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}Retrieve a refund
A valid request URL is required to generate request examples{
"id": "<string>",
"object": "refund",
"livemode": true,
"charge_id": "<string>",
"payment_intent_id": "<string>",
"terminal_id": "<string>",
"amount": 123,
"currency": "<string>",
"status": "pending",
"reason": "requested_by_customer",
"settlement_batch_id": "<string>",
"settled_at": 123,
"failure_message": "<string>",
"created_at": 123,
"updated_at": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "invalid currency"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "REFUND_NOT_FOUND",
"message": "refund not found"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}Authorizations
A merchant secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
Merchant ID when an authorized Platform acts for a connected Merchant. Omit when authenticating directly as that Merchant.
^mer_[0-9A-Za-z]{14}$Path Parameters
The refund id (rf_…).
Response
The refund.
A return of some or all of a charge's funds to the customer.
The refund id (rf_…).
Always refund.
refund Mirrors the mode of the underlying charge.
The refunded charge (ch_…).
The parent payment intent (pi_…).
Terminal (tmr_…) selected for the Refund request, or null when no terminal was supplied.
The refunded amount, in minor units. Full or partial.
The refund's currency, matching amount's currency.
pending while the Refund is being processed; uncertain when its final outcome is not known yet. Retrieve the Refund again before retrying.
pending, succeeded, failed, uncertain An optional audit/reporting category: one of requested_by_customer, duplicate, or fraudulent. Null when not supplied; has no effect on refund behavior.
requested_by_customer, duplicate, fraudulent Terminal batch (tmb_…) containing this Refund. Null until the Refund is settled in a batch.
Unix epoch seconds when the Refund settled. Null until settlement completes.
A human-readable failure detail. Nullable; present when the refund failed.
Unix epoch seconds when the refund was created.
Unix epoch seconds when the refund was last updated.

