Estimated Shipping Cost and Time Calculator
General information
The service allows finding out estimated shipping cost and timeframes. To get the detailed information on the cost and the timeframes of the selected shipping type, use "Shipping cost and time calculator".
Estimated Shipping Cost and Time Calculator
Method request
Request structure
Method address: https://api.dellin.ru/v1/micro_calc.json
{ "appkey":"00000000-0000-0000-0000-000000000000", "sessionID":"0000000-0000-0000-0000-000000000000", "derival":{ "city":"7800000000000000000000000" }, "arrival":{ "city":"5500000100000000000000000" } }
Method address: https://api.dellin.ru/v1/micro_calc.xml
<request> <appkey>00000000-0000-0000-0000-000000000000</appkey> <sessionID>0000000-0000-0000-0000-000000000000</sessionID> <derival> <city>7800000000000000000000000</city> </derival> <arrival> <city>5500000100000000000000000</city> </arrival> </request>
Description of parameters
Request
Request | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | Application key. To get the key, register |
sessionID | No | string | To get the session ID, use the User Authorization method |
derival | Yes | object | Information on cargo departure |
derival.city | Yes | string | CLADR code of the city of departure. To get CLADR code use the services listed on "CLADR search" page |
arrival | Yes | object | Information on cargo arrival |
arrival.city | Yes | string | CLADR code of the city of arrival. To get CLADR code use the services listed on "CLADR search" page |
Method response
Response structure
{ "metadata":{ "status":200, "generated_at":"2020-04-29 08:40:41" }, "data":{ "terminals_standard":{ "period_from":null, "period_to":7, "price":510.0 }, "terminals_documents":{ "period_from":null, "period_to":7, "price":199.0 }, "terminals_express":{ "period_from":null, "period_to":5, "price":660.0 }, "terminals_avia":{ "period_from":2, "period_to":4, "price":1360.0 }, "door_to_door_standard":{ "period_from":null, "period_to":8, "price":1240.0 }, "door_to_door_documents":{ "period_from":null, "period_to":8, "price":549.0 }, "door_to_door_parcel":{ "period_from":null, "period_to":8, "price":549.0 }, "door_to_door_express":{ "period_from":null, "period_to":6, "price":1390.0 }, "door_to_door_avia":{ "period_from":3, "period_to":5, "price":2090.0 } } }
<response> <metadata> <status>200</status> <generated_at>2020-04-29 08:40:41</generated_at> </metadata> <data> <terminals_standard> <period_from /> <period_to>7</period_to> <price>510</price> </terminals_standard> <terminals_documents> <period_from /> <period_to>7</period_to> <price>199</price> <terminals_express> <period_from /> <period_to>5</period_to> <price>660</price> </terminals_express> <terminals_avia> <period_from>2</period_from> <period_to>4</period_to> <price>1360</price> </terminals_avia> <door_to_door_standard> <period_from /> <period_to>8</period_to> <price>1240</price> </door_to_door_standard> <door_to_door_documents> <period_from /> <period_to>8</period_to> <price>549</price> </door_to_door_documents> <door_to_door_parcel> <period_from /> <period_to>8</period_to> <price>549</price> </door_to_door_parcel> <door_to_door_express> <period_from /> <period_to>6</period_to> <price>1390</price> </door_to_door_express> <door_to_door_avia> <period_from>3</period_from> <period_to>5</period_to> <price>2090</price> </door_to_door_avia> </data> </response>
Description of parameters
Response
Response | ||
---|---|---|
Parameter | Type | Description |
metadata | object | System information |
metadata.status | integer | Emulated status http-code. If successful, code 200 is returned |
metadata.generated_at | string | Server response date and time. Format: YYYY-MM-DD HH:MM:SS |
data | object | Information on shipping cost and timeframes |
data.terminals_standard | PeriodPrice | Information on truck shipping from the terminal to the terminal |
data.terminals_documents | PeriodPrice | Information on documents shipping from the terminal to the terminal |
data.terminals_express | PeriodPrice | Information on express shipping from the terminal to the terminal |
data.terminals_avia | PeriodPrice | Information on air shipping from the terminal to the terminal |
data.door_to_door_standard | PeriodPrice | Information on truck shipping from the sender's address to the receiver's address |
data.door_to_door_documents | PeriodPrice | Information on documents shipping from the sender's address to the receiver's address |
data.door_to_door_parcel | PeriodPrice | Information on small-size cargo shipping from the sender's address to the receiver's address Small size cargo is the cargo with parameters that do not exceed the following values:
|
data.door_to_door_express | PeriodPrice | Information on express shipping from the sender's address to the receiver's address |
data.door_to_door_avia | PeriodPrice | Information on air from the shipping sender's address to the receiver's address |
PeriodPrice
PeriodPrice | ||
---|---|---|
Parameter | Type | Description |
period_from | integer | Minimum estimated transportation time, days |
period_to | integer | Maximum estimated transportation time, days |
price | float | Estimated shipping cost, rubles |
Error handling
The common API errors are used with the method, for errors format description and errors list see Errors of API methods.