Create a refund
When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.
Creating a new refund will refund a charge that has previously been created but not yet refunded. Funds will be refunded to the credit or debit card that was originally charged.
You can optionally refund only part of a charge. You can do so multiple times, until the entire charge has been refunded.
Once entirely refunded, a charge can’t be refunded again. This method will raise an error when called on an already-refunded charge, or when trying to refund more money than is left on a charge.
Path parameters
The identifier of the charge to refund.
Response
Successful response.
Changes
Changed in 16 of the 51 revisions of this API.205547
- ▲
removed the required property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/payment_method_details/card/networkfrom the response with thedefaultstatusresponse-required-property-removed
- ▲
removed the required property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/payment_method_details/card/networkfrom the response with thedefaultstatusresponse-required-property-removed
- ▲
removed the required property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/payment_method_details/card/networkfrom the response with thedefaultstatusresponse-required-property-removed
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
- ▲
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/acss_debit/expected_debit_dateto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/au_becs_debit/expected_debit_dateto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/bacs_debit/expected_debit_dateto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/nz_bank_account/expected_debit_dateto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/sepa_debit/expected_debit_dateto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/us_bank_account/expected_debit_dateto the response with thedefaultstatusresponse-optional-property-added
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
- ○
- ○
added the optional property
error/payment_intent/payment_method_options/anyOf[subschema #1: PaymentIntentPaymentMethodOptions]/card_present/anyOf[subschema #1: payment_method_options_card_present]/capture_methodto the response with thedefaultstatusresponse-optional-property-added
- ○
- ○
added the optional property
error/payment_intent/amount_details/anyOf[subschema #1: PaymentFlowsAmountDetails]/line_items/data/items/payment_method_options/anyOf[subschema #1: PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions]/klarna/subscription_referenceto the response with thedefaultstatusresponse-optional-property-added
- ○
- ●
removed the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/paypayfrom the response with thedefaultstatusresponse-optional-property-removed
- ●
removed the optional property
error/payment_intent/payment_method_options/anyOf[subschema #1: PaymentIntentPaymentMethodOptions]/paypayfrom the response with thedefaultstatusresponse-optional-property-removed
- ●
added the new
preventedenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/statusresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
preventedenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/statusresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
preventedenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #6: Dispute]/statusresponse property for the response statusdefaultresponse-property-enum-value-added
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
- ●
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/paynow/locationto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/paynow/readerto the response with thedefaultstatusresponse-optional-property-added
- ○
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/cashapp/transaction_idto the response with thedefaultstatusresponse-optional-property-added
- ○
- ○
added the optional property
destination_details/paypal/network_decline_codeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #12: Refund]/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #5: CustomerCashBalanceTransaction]/refunded_from_payment/refund/anyOf[subschema #2: Refund]/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #12: Refund]/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #5: CustomerCashBalanceTransaction]/refunded_from_payment/refund/anyOf[subschema #2: Refund]/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #12: Refund]/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/source/anyOf[subschema #5: CustomerCashBalanceTransaction]/refunded_from_payment/refund/anyOf[subschema #2: Refund]/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/refunds/data/items/destination_details/paypal/network_decline_codeto the response with thedefaultstatusresponse-optional-property-added
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
- ○
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/balance_typeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/balance_typeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/balance_typeto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/affirm/locationto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/affirm/readerto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/wechat_pay/locationto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/latest_charge/anyOf[subschema #2: Charge]/payment_method_details/anyOf[subschema #1: payment_method_details]/wechat_pay/readerto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/payment_method_options/anyOf[subschema #1: PaymentIntentPaymentMethodOptions]/billie/anyOf[subschema #1: payment_method_options_billie]/capture_methodto the response with thedefaultstatusresponse-optional-property-added
- ○
added the optional property
error/payment_intent/payment_method_options/anyOf[subschema #1: PaymentIntentPaymentMethodOptions]/satispayto the response with thedefaultstatusresponse-optional-property-added
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
- ○
- ●
added the new
stripe_balance_payment_debitenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/typeresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
stripe_balance_payment_debitenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/typeresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
stripe_balance_payment_debitenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/typeresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
stripe_balance_payment_debit_reversalenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/application_fee/anyOf[subschema #2: PlatformFee]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/typeresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
stripe_balance_payment_debit_reversalenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/balance_transaction/anyOf[subschema #2: BalanceTransaction]/typeresponse property for the response statusdefaultresponse-property-enum-value-added
- ●
added the new
stripe_balance_payment_debit_reversalenum value to theerror/payment_intent/latest_charge/anyOf[subschema #2: Charge]/failure_balance_transaction/anyOf[subschema #2: BalanceTransaction]/typeresponse property for the response statusdefaultresponse-property-enum-value-added
This revision's changelog hit the recording limit, so it may not list every change to this endpoint.
- ●
Of the 51 revisions, 14 have no diff computed and 6 have a changelog that could not be searched.