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

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

Estimated Shipping Cost and Time Calculator

Обновлено 18.01.2022
97 кб

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

sessionID

NostringTo 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 "CLADR search" page
arrivalYesobjectInformation on cargo arrival
arrival.cityYesstringCLADR 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
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_standardPeriodPriceInformation on truck shipping from the terminal to the terminal
data.terminals_documentsPeriodPriceInformation on documents shipping from the terminal to the terminal
data.terminals_expressPeriodPriceInformation on express shipping from the terminal to the terminal
data.terminals_aviaPeriodPriceInformation on air shipping from the terminal to the terminal
data.door_to_door_standardPeriodPriceInformation on truck shipping from the sender's address to the  receiver's address
data.door_to_door_documentsPeriodPriceInformation on documents shipping from the sender's address to the  receiver's address
data.door_to_door_parcelPeriodPrice

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 30 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_expressPeriodPriceInformation on express shipping from the sender's address to the  receiver's address
data.door_to_door_aviaPeriodPriceInformation on air  from the shipping sender's address to the  receiver's address

PeriodPrice

PeriodPrice

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.