Ordexs API v1 Get an API key

Delivery setup

Update delivery prices

PATCHhttps://api.ordexs.com/v1/delivery/prices

Sets the prices of the regions listed; the others keep theirs. "0.00" is free delivery.

Body

  • pricesarray of objectsRequired

    up to 100 items · at least 1 item

    3 child fields
    • regionstringRequired

      up to 10 characters

    • homestring

      An amount as a decimal string in the store's currency, with no more decimals than the currency has ("3500.00" in DZD, "12.500" in TND).

    • pickup_pointstring

      An amount as a decimal string in the store's currency, with no more decimals than the currency has ("3500.00" in DZD, "12.500" in TND).

Returns

200 OK · Every region, after the change. DeliveryPriceList

  • objectstringRequired

    always "list"

  • has_morebooleanRequired
  • next_cursorstring or nullRequired

    Pass as cursor to get the next page. null on the last page.

  • countrystring
  • dataarray of objectsRequired
    4 child fields
    • objectstring

      always "delivery_price"

    • regionobject
      2 child fields
      • codestring
      • namestring or null
    • homeMoney

      An amount of money. amount is a decimal STRING with exactly the currency's number of decimals ("1250.00" in DZD, "12.500" in TND) — never parse it into a float.

      2 child fields
      • amountstringRequired
      • currencystringRequired
    • pickup_pointMoney

      An amount of money. amount is a decimal STRING with exactly the currency's number of decimals ("1250.00" in DZD, "12.500" in TND) — never parse it into a float.

      2 child fields
      • amountstringRequired
      • currencystringRequired

Errors

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