Price checking
Base url: https://exportpaczka.pl/api/v1/order/price/check
Description
This resource allows you to send whole order object and check its price
Example of order object (check out order object page for details). Please note that you do not have to provide sendingInformation inside order object when checking its price, it's optional:
{
"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
}
Resource details
- Method
GET - Url
/check - Full url
https://exportpaczka.pl/api/v1/order/price/check - Example success response:
{
"success": true,
"body": [
{
"totalPrice": "53.19",
"packageAdditionsPrice": "18.00",
"ownTransportPriceReduction": "12.00",
"basePrice": "49.99",
"globalAdditionsPrice": "0.00",
"totalDiscountPrice": "2.80"
}
]
}
Description of response object
totalPrice- total price of the order includes base price, package additions price, global additions price and reduction of own transportbasePrice- price without additions and reductionsglobalAddtionsPrice- summarized price of order additionspackageAdditionsPrice- summarized price of package additionsownTransportPriceReduction- reduction for own transport
