Retrieve a tax code 

Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.

Parameters

No parameters.

Returns

Returns a tax code object if a valid identifier was provided.

GET /v1/tax_codes/:id
curl https://api.stripe.com/v1/tax_codes/txcd_99999999 \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:"
Response
{
"id": "txcd_99999999",
"object": "tax_code",
"description": "Any tangible or physical good. For jurisdictions that impose a tax, the standard rate is applied.",
"name": "General - Tangible Goods"
}

List all tax codes 

A list of all tax codes available to add to Products in order to allow specific tax calculations.

Parameters

No parameters.

More parameters

  • ending_beforestring

  • limitinteger

  • starting_afterstring

Returns

A dictionary with a data property that contains an array of up to limit tax codes, starting after tax code starting_after. Each entry in the array is a separate tax code object. If no more tax codes are available, the resulting array will be empty. This request should never return an error.

GET /v1/tax_codes
curl -G https://api.stripe.com/v1/tax_codes \
-u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \
-d limit=3
Response
{
"object": "list",
"url": "/v1/tax_codes",
"has_more": false,
"data": [
{
"id": "txcd_99999999",
"object": "tax_code",
"description": "Any tangible or physical good. For jurisdictions that impose a tax, the standard rate is applied.",
"name": "General - Tangible Goods"
}
]
}

Tax Rate 

Shipping Rates 

Shipping rates describe the price of shipping presented to your customers and applied to a purchase. For more information, see Charge for shipping.

Checkout Sessions 

A Checkout Session represents your customer’s session as they pay for one-time purchases or subscriptions through Checkout or Payment Links. We recommend creating a new Session each time your customer attempts to pay.

Once payment is successful, the Checkout Session will contain a reference to the Customer, and either the successful PaymentIntent or an active Subscription.

You can create a Checkout Session on your server and redirect to its URL to begin Checkout.

Related guide: Checkout quickstart