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.
POST
/deliveries/partner/{code}/pickup-point
curl \
--request POST 'https://mpapi.proxy.omnicado.com/v1/deliveries/partner/PPL/pickup-point?client_id=yourClientId&client_id=api_token_value' \
--header "Content-Type: application/json" \
--header "X-Application-Name: myApplicationName" \
--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"
}'
Request examples
# Headers
X-Application-Name: myApplicationName
# Payload
{
"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"
}