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