POST /shipping-rate-weights.json

POST /shipping-rate-weights.json
application/json

Body Required

  • code string | null

    Code

  • grams number Required

    Grams

    Default value is 0.

  • name string | null

    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 application/json

    Successful response

    Hide response attributes Show response attributes object
POST /shipping-rate-weights.json
curl \
 -X POST http://api.example.com/v1/shipping-rate-weights.json \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"code":"string","grams":0,"name":"string","price":0,"priceIncrease":0,"shippingRateId":42,"shippingZone":"domestic"}'
Request example
{
  "code": "string",
  "grams": 0,
  "name": "string",
  "price": 0,
  "priceIncrease": 0,
  "shippingRateId": 42,
  "shippingZone": "domestic"
}
Response examples (200)
{
  "code": "string",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "grams": 0,
  "id": 42,
  "name": "string",
  "price": 0,
  "priceIncrease": 0,
  "shippingRateId": 42,
  "shippingZone": "domestic",
  "updatedAt": "2024-05-04T09:42:00+00:00"
}