Create a package
How to create a package via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/packages' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "packages",
"attributes": {
"name": "Large (60x40x30)",
"length": 40.0,
"width": 40.0,
"height": 25.0,
"unit_of_length": "gr"
},
"relationships": {
"stock_location": {
"data": {
"type": "stock_locations",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated