Create a tax category
How to create a tax category via API
To create a new tax category, send a POST
request to the /api/tax_categories
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/tax_categories
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.code |
| Required |
attributes.sku_code |
| Optional |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
relationships.sku |
| Required |
relationships.tax_calculator |
| Required |
Example
The following request creates a new tax category:
Last updated