provider POST /v1/tax/transactions/create_reversal
@utdk/stripe /v1/tax/transactions/create_reversal
Create a reversal Transaction
<p>Partially or fully reverses a previously created <code>Transaction</code>.</p>

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.

posttaxtransactionscreatereversal
POST/v1/tax/transactions/create_reversal
<p>Partially or fully reverses a previously created <code>Transaction</code>.</p>

Input

Specifies which fields in the response should be expanded.

A flat amount to reverse across the entire transaction, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative. This value represents the total amount to refund from the transaction, including taxes.

The line item amounts to reverse.

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`.

required

If `partial`, the provided line item or shipping cost amounts are reversed. If `full`, the original transaction is fully reversed.

required

The ID of the Transaction to partially or fully reverse.

required

A custom identifier for this reversal, such as `myOrder_123-refund_1`, which must be unique across all transactions. The reference helps identify this reversal transaction in exported [tax reports](https://docs.stripe.com/tax/reports).

The shipping cost to reverse.

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.posttaxtransactionscreatereversal()