provider POST /v1/charges/{charge}
@utdk/stripe /v1/charges/{charge}
Update a charge
<p>Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
charge path required
string

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postchargescharge
POST/v1/charges/{charge}
<p>Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>

Parameters

required

Input

The ID of an existing customer that will be associated with this request. This field may only be updated if there is no existing associated customer with this charge.

An arbitrary string which you can attach to a charge object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.

Specifies which fields in the response should be expanded.

A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.

Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 `metadata`.

This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.

Shipping information for the charge. Helps prevent fraud on charges for physical goods.

A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.postchargescharge()