Create a shipping weight tier
How to create a shipping weight tier via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/shipping_weight_tiers' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "shipping_weight_tiers",
"attributes": {
"name": "Light shipping under 3kg",
"price_amount_cents": 1000
},
"relationships": {
"shipping_method": {
"data": {
"type": "shipping_methods",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated