Order object
Description
This page describes whole order object and its requirements.
Example of order object:
{
"parcelType": "package",
"countryFrom": "PL",
"countryTo": "SK",
"parcelData": [
{
"width": 25,
"height": 5,
"length": 25,
"weight": 15,
"additions": ["nonstandard"]
}
],
"isOwnTransport": true,
"collectionDate": "2019-12-17",
"collectionHour": 12,
"description": "Package description",
"globalAdditions": ["cod"],
"cod": 155.59,
"sendingInformation": {
"recipient": {
"companyName": "Exportpaczka",
"firstName": "John",
"surname": "Doe",
"street": "Long street",
"buildingNumber": "15a",
"flatNumber": "5b",
"city": "Katowice",
"postCode": 54321,
"telephone": "512123123",
"email": "email@example.com"
},
"sender": {
"companyName": "Exportpaczka",
"firstName": "John",
"surname": "Doe",
"street": "Long street",
"buildingNumber": "15a",
"flatNumber": "5b",
"city": "Katowice",
"postCode": 54321,
"telephone": "512123123",
"email": "email@example.com"
}
}
}
Order object
Required fields
countryFrom-string- code of country from where package is sent - available country routescountryTo-string- code of country to where package is sent - available country routesparcelType-string- type of package - available country routesisOwnTransport-boolean- this field determines if you want to transport yourself (when set to true) or if courier should get package from your (when set to false)description-string- short description of orderparcelData-array of parcel objects- minimum 1, maximum 5 packages in one ordersendingInformation-object containing two objects- contains recipient and sender of the order
Optional fields
cod-numeric-required when cod is provided in globalAdditions- value of the COD, when this field is included you also have to provide its code insideglobalAdditionsarrayglobalAdditions-array with string values- order additions, such as COD, insurancepostCodeFrom-integer-required when parcelType is pallete or halfpallete- post code of person who sends the packagepostCodeTo-integer-required when parcelType is pallete or halfpallete- post code of person who receives the packagecollectionDate-date in format YYYY-MM-DD-required when own transport is set to false- day when courier should pick up the package from sender. When country from where the package is sent is different than Poland, then it has to be the next working daycollectionHour-integer-required when own transport is set to false-8 (8-10), 10 (10-12), 12 (12-14), 14 (14-16), 16 (16-18)- hour when courier should pick up the package. It is only available when the package is sent from PolanddiscountCode-string- discount code
Parcel object
{
"width": 25,
"height": 5,
"length": 25,
"weight": 15,
"additions": ["nonstandard"]
}
Required fields
width-integer- width of the packageheight-integer- height of the packagelength-integer- length of the packageweight-integer- weight of the package
Optional fields
additions-array of strings- package additions, currently available addition isnonstandard
Sending information object
{
"sendingInformation": {
"recipient": {
"companyName": "Exportpaczka",
"firstName": "John",
"surname": "Doe",
"street": "Long street",
"buildingNumber": "15a",
"flatNumber": "5b",
"city": "Katowice",
"postCode": 54321,
"telephone": "512123123",
"email": "email@example.com"
},
"sender": {
"companyName": "Exportpaczka",
"firstName": "John",
"surname": "Doe",
"street": "Long street",
"buildingNumber": "15a",
"flatNumber": "5b",
"city": "Katowice",
"postCode": 54321,
"telephone": "512123123",
"email": "email@example.com"
}
}
}
Required fields in sender and recipient objects
firstName-stringsurname-stringstreet-stringbuildingNumber-stringcity-stringpostCode-integertelephone-stringemail-string, valid email address
Optional fields
companyName-stringflatNumber-string
