⚠️ Deprecated
This endpoint is deprecated and will be removed in the future. Use its API v1 equivalent for new integrations.
Deprecated
Calculate Price
POST
/api/calculate/price
Calculates a price quote for each carrier in the organization's price lists based on the package information. Requires the PRICE_CALCULATION or SHIPMENTS permission.
Parameters
Header Parameters
Authorization*
API key
Typestring
RequiredExample
"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30"Accept-Language
Response language: tr or en. Sets error messages and language-dependent texts; tr is used when no recognized language is given.
Typestring
Examples
"tr""en"Request Body
application/json
JSON
{
"countryId": 3,
"city": "NEW YORK",
"zipCode": "10001",
"carrierId": 0,
"date": "string",
"packages": [
{
"id": 0,
"length": 10,
"size": 10,
"height": 10,
"weight": 10,
"piece": 3
}
]
}
Responses
Price Calculation Successful. One quote is returned per carrier, sorted by total price from cheapest to most expensive. If the user only has the SHIPMENTS permission (without PRICE_CALCULATION), the top-level amount fields are not returned.
application/json
JSON
[
{
"carrier": {
"id": 0,
"name": "string",
"service": "string",
"logoUrl": "string"
},
"packages": [
{
"id": 0,
"length": 0,
"size": 0,
"height": 0,
"weight": 0,
"piece": 0,
"perimeter": 0,
"desi": 0,
"additionalFees": [
{
"type": "string",
"desc": "string",
"value": 0
}
]
}
],
"totalDesi": 0,
"freightPrice": 0,
"fuelSurcharges": 0,
"surgeEmergencyFee": 0,
"fuelSurgeEmergencyFee": 0,
"totalAdditionalFee": 0,
"remoteAreaPrice": 0,
"peakPrice": 0,
"sccMinPrice": 0,
"sccDifferencePercentage": 0,
"total": 0
}
]
