Create a tax
Creates a new tax rate definition: a unique name, a primary rate (taxRate1) and an optional second rate (taxRate2), both percentages. Link it to items with taxId.
How to use it
- Send a unique name and taxRate1 as a percentage (e.g. 5.00); add taxRate2 if a second tax applies on the same amount.
- Use the returned id as taxId when creating or updating items (Create an item).
BearerAuthAuthorizationBearer <JWT>application/json- body
id*integerNumeric tax ID; use it as taxId on items.
int64name*stringTax name, unique across the catalog (up to 100 characters).
taxRate1*numberFirst tax rate as a percentage (e.g. 5.00 means 5%), up to two decimals.
taxRate2?|Optional second tax rate as a percentage, applied alongside the first; 0 when not used.
modifiedTime*stringWhen the tax was last changed (ISO 8601 timestamp).
date-timestatus*stringTax status, e.g. active.
OK
*/*- response
id*integerNumeric tax ID; use it as taxId on items.
int64name*stringTax name, unique across the catalog (up to 100 characters).
taxRate1*numberFirst tax rate as a percentage (e.g. 5.00 means 5%), up to two decimals.
taxRate2?|Optional second tax rate as a percentage, applied alongside the first; 0 when not used.
modifiedTime*stringWhen the tax was last changed (ISO 8601 timestamp).
date-timestatus*stringTax status, e.g. active.
curl -X POST 'https://beta.iotoms.com/api/v1/catalog/attributes/taxes' \ -H 'Content-Type: application/json' \ -d '{ "id": 0, "name": "string", "taxRate1": 0, "modifiedTime": "2019-08-24T14:15:22Z", "status": "string"}'{ "id": 0, "name": "string", "taxRate1": 0, "taxRate2": 0, "modifiedTime": "2019-08-24T14:15:22Z", "status": "string"}