Creating order
Base url: https://exportpaczka.pl/api/v1/order
Description
This resource allows to create orders.
Example of order object (check out order object page for details):
{
"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"
}
}
}
Resource details
- Method
POST - Url
/create - Full url
https://exportpaczka.pl/api/v1/order/create - Example success response:
{
"success": true,
"body": {
"orderId": "080120085058805"
}
}
Description of response object
orderId- generated id for created order
