Update a tax
Updates a tax rate definition. Send name and taxRate1 every time; an omitted taxRate2 is saved as 0 and an omitted status as active. Items linked to this tax use the new rates from then on.
How to use it
- Take the tax id from List taxes.
- Send name and taxRate1 (a percentage) plus the current taxRate2 and status; omitting them resets them to 0 and active.
- The new rates apply to items linked to this tax from then on.
BearerAuthAuthorizationBearer <JWT>id*integerID of the record.
int64application/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 PUT 'https://beta.iotoms.com/api/v1/catalog/attributes/taxes/0' \ -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"}