POST /shipping-rate-product-types.json
Body Required
-
Name
-
Price
Default value is
0
. -
Price increase
Default value is
0
. -
Shipping rate
-
Shipping zone
Values are
domestic
orrest_of_world
. Default value isdomestic
.
POST
/shipping-rate-product-types.json
curl \
-X POST http://api.example.com/v1/shipping-rate-product-types.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","price":0,"priceIncrease":0,"shippingRateId":42,"shippingZone":"domestic"}'
Request example
{
"name": "string",
"price": 0,
"priceIncrease": 0,
"shippingRateId": 42,
"shippingZone": "domestic"
}
Response examples (200)
{
"createdAt": "2024-05-04T09:42:00+00:00",
"id": 42,
"name": "string",
"price": 0,
"priceIncrease": 0,
"shippingRateId": 42,
"shippingZone": "domestic",
"updatedAt": "2024-05-04T09:42:00+00:00"
}