provider POST /v1/shipping_rates
@utdk/stripe /v1/shipping_rates
Create a shipping rate
<p>Creates a new shipping rate object.</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.

postshippingrates
POST/v1/shipping_rates
<p>Creates a new shipping rate object.</p>

Input

The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.

required

The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.

Specifies which fields in the response should be expanded.

Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.

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

Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.

A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.

The type of calculation to use on the shipping rate.

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