Sample - Stripe API
GET/v1/tax_codes/{id}

Retrieve a tax code

Retrieves a tax code by its unique identifier. Use id to select the tax code and expand when you need expanded response fields. The response contains the tax code's name and description.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
idstringrequired
The unique identifier of the tax code to retrieve. Maximum 5,000 characters.
expandarray<string>optional
Fields to expand in the response. Each expansion value can contain up to 5,000 characters.

2 status codes
200Returns a tax code object containing its unique identifier, short name, description, and object type.
descriptionstringrequired
A detailed description of which types of products the tax code represents.
idstringrequired
Unique identifier for the object.
namestringrequired
A short name for the tax code.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:tax_code
defaultError response.
errorobjectrequired

Error handling

id must be a string of no more than 5,000 characters that identifies the tax code to retrieve. Each expand value can contain up to 5,000 characters.