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