POST:shipping_rules.json
Commerce APIPOST:shipping_rules.json

POST:shipping_rules.json

Description

Modify one or multiple shipping rules.

Permission bit: "shipping_rules.modify"

Topic: Shipping Rules

Query Parameters

ids: Comma-separated array of String, required

List of shipping rule ids. See also: Unique Identifiers

Example: ?ids=sr_EQzGqWoY,sr_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of ShippingRuleModify

[
  {
    "components": "[]",
    "group_policy": "default_location",
    "name": "FedEx everywhere",
    "priority": 0,
    "zones": [
      {
        "country": "US",
        "exclude": false,
        "province": "NY",
        "zip_pattern": "40202"
      }
    ]
  }
]

Response Body

Array of ShippingRule

Response Body Type

Loading module