POST /shipping-rate-zone-variants.json

POST /shipping-rate-zone-variants.json
application/json

Body Required

  • shippingRateZoneId integer(int32) Required

    Shipping rate zone

  • variantId integer(int32) Required

    Variant

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • createdAt string(date-time)

      Created at

    • id integer(int32)

      Id

    • shippingRateZoneId integer(int32) Required

      Shipping rate zone

    • updatedAt string(date-time)

      Updated at

    • variantId integer(int32) Required

      Variant

POST /shipping-rate-zone-variants.json
curl \
 --request POST 'http://api.example.com/v1/shipping-rate-zone-variants.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"shippingRateZoneId":42,"variantId":42}'
Request examples
{
  "shippingRateZoneId": 42,
  "variantId": 42
}
Response examples (200)
{
  "createdAt": "2025-05-04T09:42:00Z",
  "id": 42,
  "shippingRateZoneId": 42,
  "updatedAt": "2025-05-04T09:42:00Z",
  "variantId": 42
}