Tax codes classify goods and services for tax purposes.
Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- descriptionstring
A detailed description of which types of products the tax code represents.
- namestring
A short name for the tax code.
{ "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"}
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.
{ "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"}
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.
{ "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 rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.
Related guide: Tax rates