/v1/charges/{charge}/refundWhen you create a new refund, you must specify either a Charge or a PaymentIntent object.
This action refunds a previously created charge that’s not refunded yet. Funds are refunded to the credit or debit card that’s originally charged.
You can optionally refund only part of a charge. You can repeat this until the entire charge is refunded.
After you entirely refund a charge, you can’t refund it again. This method raises an error when it’s called on an already-refunded charge, or when you attempt to refund more money than is left on a charge.
| Name | Description |
|---|---|
| charge* | The identifier of the charge to refund. |
| Field | Type | Description |
|---|---|---|
| amount | integer | A positive integer in the smallest currency unit representing how much of this charge to refund. Can refund only up to the remaining, unrefunded amount of the charge. |
| expand | array<string> | Specifies which fields in the response should be expanded. |
| instructions_email | string | For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions. |
| metadata | object | string | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to |
| payment_intent | string | The identifier of the PaymentIntent to refund. |
| reason | string | String indicating the reason for the refund. If set, possible values are |
| refund_application_fee | boolean | Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge. |
| reverse_transfer | boolean | Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).<br><br>A transfer can be reversed only by the application that created the charge. |
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amount* | integer | Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). | ||||||||||||||||||
| amount_captured* | integer | Amount in cents (or local equivalent) captured (can be less than the amount attribute on the charge if a partial capture was made). | ||||||||||||||||||
| amount_refunded* | integer | Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the charge if a partial refund was issued). | ||||||||||||||||||
| application | string | application | ID of the Connect application that created the charge. | ||||||||||||||||||
| application_fee | string | application_fee | The application fee (if any) for the charge. See the Connect documentation for details. | ||||||||||||||||||
| application_fee_amount | integer | The amount of the application fee (if any) requested for the charge. See the Connect documentation for details. | ||||||||||||||||||
| balance_transaction | string | balance_transaction | ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes). | ||||||||||||||||||
| billing_details* | billing_details | 5 nested fields
| ||||||||||||||||||
| calculated_statement_descriptor | string | The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments. | ||||||||||||||||||
| captured* | boolean | If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured. | ||||||||||||||||||
| created* | integer (unix-time) | Time at which the object was created. Measured in seconds since the Unix epoch. | ||||||||||||||||||
| currency* | string (currency) | Three-letter ISO currency code, in lowercase. Must be a supported currency. | ||||||||||||||||||
| customer | string | customer | deleted_customer | ID of the customer this charge is for if one exists. | ||||||||||||||||||
| description | string | An arbitrary string attached to the object. Often useful for displaying to users. | ||||||||||||||||||
| disputed* | boolean | Whether the charge has been disputed. | ||||||||||||||||||
| failure_balance_transaction | string | balance_transaction | ID of the balance transaction that describes the reversal of the balance on your account due to payment failure. | ||||||||||||||||||
| failure_code | string | Error code explaining reason for charge failure if available (see the errors section for a list of codes). | ||||||||||||||||||
| failure_message | string | Message to user further explaining reason for charge failure if available. | ||||||||||||||||||
| fraud_details | charge_fraud_details | Information on fraud assessments for the charge. | ||||||||||||||||||
| id* | string | Unique identifier for the object. | ||||||||||||||||||
| livemode* | boolean | If the object exists in live mode, the value is | ||||||||||||||||||
| metadata* | object | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||||||||||||||||||
| object* | string | String representing the object's type. Objects of the same type share the same value. | ||||||||||||||||||
| on_behalf_of | string | account | The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the Connect documentation for details. | ||||||||||||||||||
| outcome | charge_outcome | Details about whether the payment was accepted, and why. See understanding declines for details. | ||||||||||||||||||
| paid* | boolean |
| ||||||||||||||||||
| payment_intent | string | payment_intent | ID of the PaymentIntent associated with this charge, if one exists. | ||||||||||||||||||
| payment_method | string | ID of the payment method used in this charge. | ||||||||||||||||||
| payment_method_details | payment_method_details | Details about the payment method at the time of the transaction. | ||||||||||||||||||
| presentment_details | payment_flows_payment_intent_presentment_details | 2 nested fields
|