Поиск по сайту

API
Главная / API - Estimated Shipping Cost and Time

Estimated Shipping Cost and Time Calculator

Обновлено 08.06.2020
84 кб

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".

Microcalculator 

Method request

Request example

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
ParameterRequiredTypeDescription
appkeyYesstringApplication key. To get the key, register

sessionID

YesstringTo get the session ID, use the User Authorization method

derival

YesobjectInformation on cargo departure
derival.cityYesstringCLADR code of the city of departure. To get CLADR code use the services listed on Using CLADR codes page
arrivalYesobjectInformation on cargo arrival
arrival.cityYesstringCLADR code of the city of arrival. To get CLADR code use the services listed on Using CLADR codes page

Method response

Response example

{
   "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
ParameterTypeDescription
metadataobjectSystem information
metadata.statusintegerEmulated status http-code. If successful, code 200 is returned
metadata.generated_atstring

Server response date and time.

Format: YYYY-MM-DD HH:MM:SS

dataobjectInformation on shipping cost and timeframes
data.terminals_standardPerdiodPriceInformation on truck shipping from the terminal to the terminal
data.terminals_documentsPerdiodPriceInformation on documents shipping from the terminal to the terminal
data.terminals_expressPerdiodPriceInformation on express shipping from the terminal to the terminal
data.terminals_aviaPerdiodPriceInformation on air shipping from the terminal to the terminal
data.door_to_door_standardPerdiodPriceInformation on truck shipping from the sender's address to the  receiver's address
data.door_to_door_documentsPerdiodPriceInformation on documents shipping from the sender's address to the  receiver's address
data.door_to_door_parcelPerdiodPrice

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:
  • weight is less than or equal to 10 kg;
  • LWH is less than or equal to 0.54*0.39*0.39 m;
  • volume is less than or equal to 0.1 cubic meters.
It is only possible to order Small Cargo Delivery service if there are Delovye Linii company terminals in the city of departure and city of arrival. For more information see company website
data.door_to_door_expressPerdiodPriceInformation on express shipping from the sender's address to the  receiver's address
data.door_to_door_aviaPerdiodPriceInformation on air  from the shipping sender's address to the  receiver's address

PerdiodPrice

PerdiodPrice

ParameterTypeDescription
period_fromintegerMinimum estimated transportation time, days
period_tointegerMaximum estimated transportation time, days
pricefloatEstimated 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.