A refund gives back all or part of a payment that succeeded, to the card it was paid with. A payment can be refunded as many times as it takes, never more in total than was captured. A refund is final once made.
Attributes
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier, starting re_. |
object | string | Always refund. |
livemode | boolean | true in live mode. |
payment | string | The payment it gives back from, pay_.... |
amount | integer | In cents. |
currency | string | The payment's currency. |
status | enum | pending until the card's bank answers, then succeeded or failed. |
reason | enum | requested_by_customer, duplicate, fraudulent or other. |
failure_reason | enum or null | Why the bank returned it: declined, expired_or_canceled_card, lost_or_stolen_card, charge_for_pending_refund_disputed or unknown. |
destination | object | How the money goes back. type is reversal (made the day the payment was captured: the charge comes off the statement) or refund (a credit to the card). |
created | timestamp | When it was made. |
succeeded_at | timestamp or null | When the bank took it. |
failed_at | timestamp or null | When the bank returned it. |
A failed refund gave nothing back, so it no longer counts against the payment: what it would have given back can be refunded again.
Example
Endpoints
| Endpoint | What it does |
|---|---|
POST /v1/refunds | Give back all or part of a payment. |
GET /v1/refunds/{id} | Get a refund by its ID. |
GET /v1/refunds | List your refunds, newest first. |