Replaced by /v2/transports endpoints.
Body
Required
-
Delivery method identifier. Allowed characters are: A-Z, a-z, 0-9, _, . and -.
-
Title of delivery method
-
Price of delivery method
-
Price of COD (cash on delivery)
-
Limit for free delivery, if there is no free_limit send null
-
Delivery delay in days
-
If delivery method is pickup point
-
Priority of delivery method
-
smallboxorbigboxpackage sizeValues are
smallboxorbigbox. Default value issmallbox.
PUT
/deliveries/partner/{code}
curl \
-X PUT https://mpapi.proxy.omnicado.com/v1/deliveries/partner/{code}?client_id=api_token_value \
-H "Content-Type: application/json" \
-d '{"code":"PD1","title":"Partner Delivery 1","price":99.99,"cod_price":39.99,"free_limit":1000,"delivery_delay":1,"is_pickup_point":true,"priority":1,"packageSize":"smallbox","weight":{"min":1.0,"max":80.0},"width":{"min":1.0,"max":10.0},"length":{"min":1.0,"max":100.0},"height":{"min":1.0,"max":10.0}}'
Request example
{
"code": "PD1",
"title": "Partner Delivery 1",
"price": 99.99,
"cod_price": 39.99,
"free_limit": 1000,
"delivery_delay": 1,
"is_pickup_point": true,
"priority": 1,
"packageSize": "smallbox",
"weight": {
"min": 1.0,
"max": 80.0
},
"width": {
"min": 1.0,
"max": 10.0
},
"length": {
"min": 1.0,
"max": 100.0
},
"height": {
"min": 1.0,
"max": 10.0
}
}
Request examples
{
"code": "PD1",
"title": "Partner Delivery 1",
"price": 99.99,
"cod_price": 39.99,
"free_limit": 1000,
"delivery_delay": 1,
"is_pickup_point": true,
"priority": 1,
"packageSize": "smallbox",
"weight": {
"min": 1.0,
"max": 80.0
},
"width": {
"min": 1.0,
"max": 10.0
},
"length": {
"min": 1.0,
"max": 100.0
},
"height": {
"min": 1.0,
"max": 10.0
}
}
Response examples (200)
# Headers
X-RateLimit-Limit: 2875, 5750;w=86400;name="partner:my_client_id|domain:other|unit:d", 2875;w=3600;name="partner:my_client_id|domain:other|unit:h", 17250;w=60;name="partner:my_client_id|domain:other|unit:m"
X-RateLimit-Remaining: 2871
X-RateLimit-Reset: 3527
# Payload
{
"result": {
"code": 200,
"status": "OK"
}
}
Response examples (200)
# Headers
X-RateLimit-Limit: 2875, 5750;w=86400;name="partner:my_client_id|domain:other|unit:d", 2875;w=3600;name="partner:my_client_id|domain:other|unit:h", 17250;w=60;name="partner:my_client_id|domain:other|unit:m"
X-RateLimit-Remaining: 2871
X-RateLimit-Reset: 3527
# Payload
{
"result": {
"code": 200,
"status": "OK"
}
}