Sample - Stripe API
GET/v1/tax_codes

List all tax codes

Lists all tax codes available for assignment to products. Use starting_after or ending_before to navigate through the collection and limit to control the number of results per page. Use expand when you need expanded response fields.

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

4 parameters
ending_beforestringoptional
Cursor identifying the item before which to retrieve the previous page.
expandarray<string>optional
Fields to expand in the response. Each expansion value can contain up to 5,000 characters.
limitintegeroptional
Maximum number of tax codes to return. Must be between 1 and 100 and defaults to 10 when omitted.
starting_afterstringoptional
Cursor identifying the item after which to retrieve the next page.

2 status codes
200Returns a paginated list object containing tax codes with their descriptions, identifiers, names, and object types.
dataarray<TaxCode>required
has_morebooleanrequired
True if this list has another page of items after this one that can be fetched.
objectstringrequired
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
Allowed:list
urlstringrequired
The URL where this list can be accessed.
defaultError response.
errorobjectrequired

Error handling

limit must be between 1 and 100 and defaults to 10 when omitted. Use starting_after or ending_before as string cursors to navigate the tax code collection.