POST /shipping-rate-product-types.json

POST /shipping-rate-product-types.json
application/json

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 or rest_of_world. Default value is domestic.

Responses

  • 200

    Successful response

    Hide response attributes Show response attributes object
POST /shipping-rate-product-types.json
curl \
 -X POST http://api.example.com/v1/shipping-rate-product-types.json \
 -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": "2023-05-04T09:42:00+00:00",
  "id": 42,
  "name": "string",
  "price": 0,
  "priceIncrease": 0,
  "shippingRateId": 42,
  "shippingZone": "domestic",
  "updatedAt": "2023-05-04T09:42:00+00:00"
}