Replaced by /v2/transports endpoints.
Body
Required
-
Pickup point identifier. Allowed characters are: A-Z, a-z, 0-9, _, . and -.
-
Title of pickup point
-
Street and number
-
City or town
-
Zip code
-
Code of the district (see Districts)
-
Phone number of the pickup point
-
Email of the pickup point
-
Latitude of the pickup point
-
Longitude of the pickup point
-
Opening hour
-
Available payment methods
-
Additional information
-
Maximal dimensions of packages to be acceptable for the pickup point
-
Priority of pickup point method
-
smallboxorbigboxpackage sizeValues are
smallboxorbigbox. Default value issmallbox.
PUT
/deliveries/partner/{code}/pickup-point/{pickupPointCode}
curl \
-X PUT https://mpapi.proxy.omnicado.com/v1/deliveries/partner/{code}/pickup-point/{pickupPointCode}?client_id=api_token_value \
-H "Content-Type: application/json" \
-d '{"code":"PUP1","title":"Partner PUP","street":"U garazi 11","city":"Praha","zip":"17000","district_code":"PR","phone":"777777777","email":"info@some-pickup-point-domain.cz","latitude":50.100797,"longitude":14.444889,"opening_hours":{"day_from":"Mon","day_to":"Mon","hour_from":32400,"hour_to":72000},"payment_methods":["Cash","Visa","MasterCard"],"note":"Barrier-free access, parking.","dimensions":{"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}},"priority":1,"package_size":"smallbox"}'
Request example
{
"code": "PUP1",
"title": "Partner PUP",
"street": "U garazi 11",
"city": "Praha",
"zip": "17000",
"district_code": "PR",
"phone": "777777777",
"email": "info@some-pickup-point-domain.cz",
"latitude": 50.100797,
"longitude": 14.444889,
"opening_hours": {
"day_from": "Mon",
"day_to": "Mon",
"hour_from": 32400,
"hour_to": 72000
},
"payment_methods": [
"Cash",
"Visa",
"MasterCard"
],
"note": "Barrier-free access, parking.",
"dimensions": {
"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
}
},
"priority": 1,
"package_size": "smallbox"
}
Request examples
{
"code": "PUP1",
"title": "Partner PUP",
"street": "U garazi 11",
"city": "Praha",
"zip": "17000",
"district_code": "PR",
"phone": "777777777",
"email": "info@some-pickup-point-domain.cz",
"latitude": 50.100797,
"longitude": 14.444889,
"opening_hours": {
"day_from": "Mon",
"day_to": "Mon",
"hour_from": 32400,
"hour_to": 72000
},
"payment_methods": [
"Cash",
"Visa",
"MasterCard"
],
"note": "Barrier-free access, parking.",
"dimensions": {
"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
}
},
"priority": 1,
"package_size": "smallbox"
}
Response examples (200)
{
"data": {
"code": "PUP1",
"title": "Partner PUP",
"street": "U garazi 11",
"city": "Praha",
"zip": "17000",
"district_code": "PR",
"phone": "777777777",
"email": "info@some-pickup-point-domain.cz",
"latitude": 50.100797,
"longitude": 14.444889,
"opening_hours": {
"day_from": "Mon",
"day_to": "Mon",
"hour_from": 32400,
"hour_to": 72000
},
"payment_methods": [
"Cash",
"Visa",
"MasterCard"
],
"note": "Barrier-free access, parking.",
"dimensions": {
"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
}
},
"priority": 1,
"package_size": "smallbox"
},
"result": {
"code": 200,
"status": "OK"
},
"paging": {
"pages": 1,
"size": 1,
"page": 1
}
}
Response examples (200)
{
"data": {
"code": "PUP1",
"title": "Partner PUP",
"street": "U garazi 11",
"city": "Praha",
"zip": "17000",
"district_code": "PR",
"phone": "777777777",
"email": "info@some-pickup-point-domain.cz",
"latitude": 50.100797,
"longitude": 14.444889,
"opening_hours": {
"day_from": "Mon",
"day_to": "Mon",
"hour_from": 32400,
"hour_to": 72000
},
"payment_methods": [
"Cash",
"Visa",
"MasterCard"
],
"note": "Barrier-free access, parking.",
"dimensions": {
"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
}
},
"priority": 1,
"package_size": "smallbox"
},
"result": {
"code": 200,
"status": "OK"
},
"paging": {
"pages": 1,
"size": 1,
"page": 1
}
}