Shipping Rule's Conditions

Create Condition for a Shipping Rule

Create condition for a shipping rule.

Required authorization scope: enterprise.shipping_rule:write

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

Request

  • Base URL
    https://enterprise-api.easyship.com
  • URL
    https://enterprise-api.easyship.com/2024-11/shipping_rules/{shipping_rule_id}/conditions
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://enterprise-api.easyship.com/oauth2/token scopes: enterprise.shipping_rule

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"
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.