Ordexs API v1 Get an API key

Delivery setup

Update a routing rule

PATCHhttps://api.ordexs.com/v1/delivery/routing_rules/{rule_id}

regions and product_ids replace the rule's lists.

Path parameters

  • rule_idstringRequired

    starts with rul_

Body

  • courier_idstring

    starts with cour_

  • typestring

    One of region, product, weight

  • regionsarray of strings

    up to 100 items · at least 1 item

  • product_idsarray of strings

    up to 500 items · at least 1 item

  • weight_min_gramsinteger or null

    min 0

  • weight_max_gramsinteger or null

    null for no upper limit.

    min 1

Returns

200 OK · The rule. RoutingRule

  • idstring

    starts with rul_

  • objectstring

    always "routing_rule"

  • courier_idstring
  • typestring

    One of region, product, weight

  • regionsarray of strings
  • product_idsarray of strings
  • weight_min_gramsinteger or null
  • weight_max_gramsinteger or null
  • activeboolean
  • created_atstring

    ISO 8601 date-time, UTC

  • updated_atstring

    ISO 8601 date-time, UTC

Errors

Every error has the same shape. This endpoint can answer with: