curl --request POST \
--url https://api.yorlet.com/v1/tax_rates \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"inclusive": true,
"percentage": 50.005,
"active": true,
"country": "<string>",
"description": "<string>",
"jurisdiction": "<string>",
"state": "<string>",
"metadata": {},
"tax_type": "gst"
}
'{
"id": "<string>",
"created": 123,
"object": "tax_rate",
"active": true,
"country": "<string>",
"description": "<string>",
"inclusive": true,
"jurisdiction": "<string>",
"name": "<string>",
"percentage": 123,
"state": "<string>",
"tax_type": "gst",
"account": "<string>",
"deleted": false,
"metadata": {}
}Create a tax rate
curl --request POST \
--url https://api.yorlet.com/v1/tax_rates \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"inclusive": true,
"percentage": 50.005,
"active": true,
"country": "<string>",
"description": "<string>",
"jurisdiction": "<string>",
"state": "<string>",
"metadata": {},
"tax_type": "gst"
}
'{
"id": "<string>",
"created": 123,
"object": "tax_rate",
"active": true,
"country": "<string>",
"description": "<string>",
"inclusive": true,
"jurisdiction": "<string>",
"name": "<string>",
"percentage": 123,
"state": "<string>",
"tax_type": "gst",
"account": "<string>",
"deleted": false,
"metadata": {}
}API Key authentication. Use "Bearer YOUR_API_KEY".
The name of the tax rate, which will be shown to users.
Whether the tax rate is inclusive or exclusive.
The percentage of the tax rate out of 100.
0.01 <= x <= 100Whether the tax rate is active.
The country for the tax rate.
The description of the tax rate.
The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
The state for the tax rate.
The metadata for the tax rate.
Show child attributes
The high-level tax type.
gst, sales_tax, vat, custom Returns the tax rate object if the request succeeded.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
tax_rate Whether the tax rate is active.
The country for the tax rate.
The description of the tax rate.
Whether the tax rate is inclusive or exclusive.
The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
The name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
The percentage of the tax rate out of 100.
The state for the tax rate.
The high-level tax type.
gst, sales_tax, vat, custom, null The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Show child attributes
Was this page helpful?