POST /deliveries/partner/{code}/pricing

Replaced by /v2/transports endpoints.

Create or update pricing levels.

The pricing can be set for price or weight, the limit value is included to the relevant pricing level.

For one partner delivery method can be set only one type of pricing, e.g. p or w!

Body Required

  • type string Required

    Type can be defined for price as p or w for weight

    Values are p or w.

  • price number Required

    Price of weight or price level

  • cod_price number Required

    Price of COD (cash on delivery)

  • limit number Required

    Price (local currency) or weight (kg) limit value for certain pricing level

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • data array[object]
      Hide data attributes Show data attributes array[object]
      • type string Required

        Type can be defined for price as p or w for weight

        Values are p or w.

      • price number Required

        Price of weight or price level

      • cod_price number Required

        Price of COD (cash on delivery)

      • limit number Required

        Price (local currency) or weight (kg) limit value for certain pricing level

    • result object
      Hide result attributes Show result attributes object
      • code integer(int)
      • status string
POST /deliveries/partner/{code}/pricing
curl \
 -X POST https://mpapi.proxy.omnicado.com/v1/deliveries/partner/{code}/pricing?client_id=api_token_value \
 -H "Content-Type: application/json" \
 -d '[{"type":"p","price":100.0,"cod_price":42.0,"limit":1000.0}]'
Request example
[
  {
    "type": "p",
    "price": 100.0,
    "cod_price": 42.0,
    "limit": 1000.0
  }
]
Request examples
[
  {
    "type": "p",
    "price": 100.0,
    "cod_price": 42.0,
    "limit": 1000.0
  }
]
Response examples (200)
{
  "data": [
    {
      "type": "p",
      "price": 100.0,
      "cod_price": 42.0,
      "limit": 1000.0
    }
  ],
  "result": {
    "code": 200,
    "status": "OK"
  }
}
Response examples (200)
{
  "data": [
    {
      "type": "p",
      "price": 100.0,
      "cod_price": 42.0,
      "limit": 1000.0
    }
  ],
  "result": {
    "code": 200,
    "status": "OK"
  }
}