post
/v1/charges/{charge}/refund Create a refund
PostChargesChargeRefund
<p>When you create a new refund, you must specify either a Charge or a PaymentIntent object.</p> <p>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.</p> <p>You can optionally refund only part of a charge. You can repeat this until the entire charge is refunded.</p> <p>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.</p>
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
charge | path | string | yes | The identifier of the charge to refund. |
Request Body
application/x-www-form-urlencoded Responses
200 Successful response.
default Error response.