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