v1

latestOpenAPI 3.0.32026-07-26170311887.2 KB
Shipping Rule's Conditions

Create Condition for a Shipping Rule

Create condition for a shipping rule.

Required authorization scope: public.shipping_rule:write

post/2024-09/shipping_rules/{shipping_rule_id}/conditions

Path parameters

shipping_rule_idstring required

Shipping Rule ID provided when creating

Request body

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example request

{
  "options": {
    "states": [
      "39-AB"
    ]
  }
}

Response

condition successfully created

Example response

{
  "condition": {
    "options": {
      "states": [
        "39-AB"
      ]
    }
  }
}