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

API
Главная / API - Example request: Calculation

Example request: Calculation

Обновлено 04.03.2020
158 кб

General information

To calculate the cost of transportation use https://api.dellin.ru/v2/calculator method, for method's description, see "Shipping cost and time calculator".

Example 1

The user is authorizedYes (1)
The user role in transportation processSender
Delivery termsFrom the address of the sender to the address of the receiver
Transportation typeBy truck
HandlingAt the sender and the receiver addresses
Additional transport requirementsTail lift (lifting platform) (2)
Number of cargo places1
PackagingBag
Additional servicesNo

Notes:

  1. Individual client discounts will be taken into account when calculating the cost of the services.

  2. See "Directory of special transport requirements"

Request

Method address: https://api.dellin.ru/v2/calculator.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "delivery":{
      "arrival":{
         "address":{
            "street":"7700000000003690000000000"
         },
         "variant":"address",
         "time":{
            "worktimeStart":"9:30",
            "worktimeEnd":"19:00",
            "exactTime":"false"
         },
         "handling":{
            "freightLift":true,
            "toFloor":2,
            "carry":50
         },
         "requirements":[
            "0x92fce2284f000b0241dad7c2e88b1655"
         ]
      },
      "deliveryType":{
         "type":"auto"
      },
      "derival":{
         "produceDate":"2020-01-15",
         "address":{
            "street":"7800000000012110000000000"
         },
         "variant":"address",
         "time":{
            "worktimeEnd":"12:30",
            "worktimeStart":"08:30",
            "exactTime":"false"
         },
         "handling":{
            "freightLift":true,
            "toFloor":2,
            "carry":50
         },
         "requirements":[
            "0x92fce2284f000b0241dad7c2e88b1655"
         ]
      }
   },
   "packages":[
      {
         "uid":"0x947845D9BDC69EFA49630D8C080C4FBE",
         "count":1
      }
   ],
   "members":{
      "requester":{
         "uid":"ae62f076-d602-4341-b691-45bf8dfe4a10",
         "role":"sender"
      }
   },
   "payment":{
      "paymentCity":"7700000000000000000000000",
      "type":"cash"
   },
   "cargo":{
      "totalVolume":0.1,
      "oversizedVolume":0,
      "quantity":1,
      "length":0.54,
      "width":0.39,
      "totalWeight":10,
      "oversizedWeight":0,
      "weight":10,
      "freightName":"мебель",
      "height":0.39
   }
}

Method address: https://api.dellin.ru/v2/calculator.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <delivery>
      <arrival>
         <address>
            <street>7700000000003690000000000</street>
         </address>
         <variant>address</variant>
         <time>
            <worktimeStart>9:30</worktimeStart>
            <worktimeEnd>19:00</worktimeEnd>
            <exactTime>false</exactTime>
         </time>
         <handling>
            <freightLift>true</freightLift>
            <toFloor>2</toFloor>
            <carry>50</carry>
         </handling>
         <requirements>0x92fce2284f000b0241dad7c2e88b1655</requirements>
      </arrival>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <derival>
         <produceDate>2020-01-15</produceDate>
         <address>
            <street>7800000000012110000000000</street>
         </address>
         <variant>address</variant>
         <time>
            <worktimeEnd>12:30</worktimeEnd>
            <worktimeStart>08:30</worktimeStart>
            <exactTime>false</exactTime>
         </time>
         <handling>
            <freightLift>true</freightLift>
            <toFloor>2</toFloor>
            <carry>50</carry>
         </handling>
         <requirements>0x92fce2284f000b0241dad7c2e88b1655</requirements>
      </derival>
   </delivery>
   <packages>
      <uid>0x947845D9BDC69EFA49630D8C080C4FBE</uid>
      <count>1</count>
   </packages>
   <members>
      <requester>
         <uid>ae62f076-d602-4341-b691-45bf8dfe4a10</uid>
         <role>sender</role>
      </requester>
   </members>
   <payment>
      <paymentCity>7700000000000000000000000</paymentCity>
      <type>cash</type>
   </payment>
   <cargo>
      <totalVolume>0.1</totalVolume>
      <oversizedVolume>0</oversizedVolume>
      <quantity>1</quantity>
      <length>0.54</length>
      <width>0.39</width>
      <totalWeight>10</totalWeight>
      <oversizedWeight>0</oversizedWeight>
      <weight>10</weight>
      <freightName>мебель</freightName>
      <height>0.39</height>
   </cargo>
</request>

Response

{ 
   "metadata":{
      "status":200,
      "generated_at":"2020-01-09 14:34:34"
   },
   "data":{
      "derival":{
         "terminal":"Санкт-Петербург",
         "price":3532.0,
         "servicePrice":532.0,
         "premiumDetails":[
            {
               "name":"Гидроборт (отправитель)",
               "value":3000.0,
               "date":null,
               "announcement":false,
               "public":true
            }
         ],
         "terminals":[

         ],
         "handling":{
            "price":0,
            "premium":0,
            "discount":0,
            "premiumDetails":[

            ],
            "discountDetails":[

            ]
         }
      },
      "intercity":{
         "price":420.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "arrival":{
         "terminal":"Москва",
         "price":2236.0,
         "servicePrice":236.0,
         "premiumDetails":[
            {
               "name":"Гидроборт (получатель)",
               "value":2000.0,
               "date":null,
               "announcement":false,
               "public":true
            }
         ],
         "terminals":[

         ],
         "handling":{
            "price":0,
            "premium":0,
            "discount":0,
            "premiumDetails":[

            ],
            "discountDetails":[

            ]
         }
      },
      "price":6573.0,
      "priceMinimal":"intercity",
      "orderDates":{
         "pickup":"2020-01-15",
         "arrivalToOspSender":null,
         "derrivalFromOspSender":"2020-01-16",
         "arrivalToOspReceiver":"2020-01-17",
         "derrivalFromOspReceiver":"2020-01-17"
      },
      "deliveryTerm":0,
      "insurance":370.0,
      "insuranceComponents":{
         "cargoInsurance":305.0,
         "termInsurance":65.0
      },
      "notify":{
         "price":15.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "simpleShippingAvailable":true
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2020-01-09 14:34:34</generated_at>
   </metadata>
   <data>
      <derival>
         <terminal>Санкт-Петербург</terminal>
         <price>3532</price>
         <servicePrice>532</servicePrice>
         <premiumDetails>
            <name>Гидроборт (отправитель)</name>
            <value>3000</value>
            <date />
            <announcement>false</announcement>
            <public>true</public>
         </premiumDetails>
         <handling>
            <price>0</price>
            <premium>0</premium>
            <discount>0</discount>
         </handling>
      </derival>
      <intercity>
         <price>420</price>
         <premium>0</premium>
         <discount>0</discount>
      </intercity>
      <arrival>
         <terminal>Москва</terminal>
         <price>2236</price>
         <servicePrice>236</servicePrice>
         <premiumDetails>
            <name>Гидроборт (получатель)</name>
            <value>2000</value>
            <date />
            <announcement>false</announcement>
            <public>true</public>
         </premiumDetails>
         <handling>
            <price>0</price>
            <premium>0</premium>
            <discount>0</discount>
         </handling>
      </arrival>
      <price>6573</price>
      <priceMinimal>intercity</priceMinimal>
      <orderDates>
         <pickup>2020-01-15</pickup>
         <arrivalToOspSender />
         <derrivalFromOspSender>2020-01-16</derrivalFromOspSender>
         <arrivalToOspReceiver>2020-01-17</arrivalToOspReceiver>
         <derrivalFromOspReceiver>2020-01-17</derrivalFromOspReceiver>
      </orderDates>
      <deliveryTerm>0</deliveryTerm>
      <insurance>370</insurance>
      <insuranceComponents>
         <cargoInsurance>305</cargoInsurance>
         <termInsurance>65</termInsurance>
      </insuranceComponents>
      <notify>
         <price>15</price>
         <premium>0</premium>
         <discount>0</discount>
      </notify>
      <simpleShippingAvailable>true</simpleShippingAvailable>
   </data>
</response>

Example 2

The user is authorizedYes (1)
The user role in transportation processThird party
Delivery termsFrom the terminal of the sender to the terminal of the receiver
Transportation typeBy truck
Handling-
Additional transport requirements-
Number of cargo places2
PackagingBag (2)
Wooden crate (2)
Additional servicesCargo and return date of the accompanying documentsinsurance.Return

Notes:

  1. Individual client discounts will be taken into account when calculating the cost of the services.

  2. See "Directory of available packages"

Request

Method address: https://api.dellin.ru/v2/calculator.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "delivery":{
      "arrival":{
         "variant":"terminal",
         "terminalID":"36"
      },
      "deliveryType":{
         "type":"auto"
      },
      "derival":{
         "produceDate":"2020-01-15",
         "variant":"terminal",
         "terminalID":"1",
         "accompanyingDocuments":[
            {
               "action":"send"
            },
            {
               "action":"return"
            }
         ]
      },
      "packages":[
         {
            "uid":"0x947845D9BDC69EFA49630D8C080C4FBE",
            "count":1
         },
         {
            "uid":"0xA6A7BD2BF950E67F4B2CF7CC3A97C111"
         }
      ]
   },
   "members":{
      "requester":{
         "uid":"ae62f076-d602-4341-b691-45bf8dfe4a10",
         "role":"third"
      }
   },
   "payment":{
      "paymentCity":"7700000000000000000000000",
      "type":"cash"
   },
   "cargo":{
      "totalVolume":0.1,
      "oversizedVolume":0,
      "quantity":2,
      "length":0.54,
      "width":0.39,
      "totalWeight":10,
      "oversizedWeight":0,
      "weight":10,
      "freightName":"мебель",
      "height":0.39,
      "insurance":{
         "statedValue":15477.34,
         "term":true
      }
   }
}

Method address: https://api.dellin.ru/v2/calculator.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <delivery>
      <arrival>
         <variant>terminal</variant>
         <terminalID>36</terminalID>
      </arrival>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <derival>
         <produceDate>2020-01-15</produceDate>
         <variant>terminal</variant>
         <terminalID>1</terminalID>
         <accompanyingDocuments>
            <action>send</action>
         </accompanyingDocuments>
         <accompanyingDocuments>
            <action>return</action>
         </accompanyingDocuments>
      </derival>
      <packages>
         <uid>0x947845D9BDC69EFA49630D8C080C4FBE</uid>
         <count>1</count>
      </packages>
      <packages>
         <uid>0xA6A7BD2BF950E67F4B2CF7CC3A97C111</uid>
      </packages>
   </delivery>
   <members>
      <requester>
         <uid>ae62f076-d602-4341-b691-45bf8dfe4a10</uid>
         <role>third</role>
      </requester>
   </members>
   <payment>
      <paymentCity>7700000000000000000000000</paymentCity>
      <type>cash</type>
   </payment>
   <cargo>
      <totalVolume>0.1</totalVolume>
      <oversizedVolume>0</oversizedVolume>
      <quantity>2</quantity>
      <length>0.54</length>
      <width>0.39</width>
      <totalWeight>10</totalWeight>
      <oversizedWeight>0</oversizedWeight>
      <weight>10</weight>
      <freightName>мебель</freightName>
      <height>0.39</height>
      <insurance>
         <statedValue>15477.34</statedValue>
         <term>true</term>
      </insurance>
   </cargo> 
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2020-01-09 15:06:55"
   },
   "data":{
      "derival":{
         "terminal":"Санкт-Петербург",
         "price":0,
         "premiumDetails":[

         ],
         "terminals":[
            {
               "id":"1",
               "name":"Санкт-Петербург-Парнас",
               "address":"Санкт-Петербург, 2-й Верхний пер., 13А",
               "streetCode":"7800000000015880000000000",
               "price":0,
               "default":true,
               "express":true,
               "isPVZ":false
            },
            {
               "id":"334",
               "name":"Санкт-Петербург Воздухоплавательная",
               "address":"Санкт-Петербург, Воздухоплавательная ул, дом № 19, литера А",
               "streetCode":"7800000000002480000000000",
               "price":0,
               "default":false,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"15",
               "name":"Санкт-Петербург Восток",
               "address":"Санкт-Петербург, Латышских Стрелков ул., 31",
               "streetCode":"7800000000006840000000000",
               "price":25.0,
               "default":false,
               "express":true,
               "isPVZ":false
            },
            {
               "id":"319",
               "name":"Санкт-Петербург Шушары Армада",
               "address":"Санкт-Петербург, п. Шушары, Московское ш., 52а",
               "streetCode":"7800000000008540000000000",
               "price":0,
               "default":false,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"118",
               "name":"Санкт-Петербург-Стачек",
               "address":"Санкт-Петербург, Стачек пр., 45/2 (пересечение Ново-Овсянниковской ул. и Баррикадной ул.)",
               "streetCode":"7800000000013480000000000",
               "price":0,
               "default":false,
               "express":false,
               "isPVZ":false
            }
         ]
      },
      "intercity":{
         "price":546.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "arrival":{
         "terminal":"Москва",
         "price":0,
         "premiumDetails":[

         ],
         "terminals":[
            {
               "id":"36",
               "name":"Москва-Север",
               "address":"Москва, Лобненская ул., 18",
               "streetCode":"7700000000017250000000000",
               "price":100.0,
               "default":true,
               "express":true,
               "isPVZ":false
            },
            {
               "id":"276",
               "name":"Коломна",
               "address":"Коломна, Пирочинское ш., 13",
               "streetCode":"5000002700003380000000000",
               "price":0,
               "default":true,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"261",
               "name":"Ногинск",
               "address":"Ногинск, Электростальское ш., 1а",
               "streetCode":"5002100100003020000000000",
               "price":0,
               "default":true,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"390",
               "name":"Подольск",
               "address":"Подольск, Нефтебазовский проезд, 8.",
               "streetCode":"None",
               "price":25.0,
               "default":true,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"278",
               "name":"Пушкино",
               "address":"Пушкино, Кудринское ш., 6",
               "streetCode":"5002700100001630000000000",
               "price":0,
               "default":true,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"277",
               "name":"Серпухов",
               "address":"Серпухов, Войкова ул., в/г 2 (на территории военного городка)",
               "streetCode":"5000002800000740000000000",
               "price":0,
               "default":true,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"253",
               "name":"Солнечногорск",
               "address":"Солнечногорск, Бутырский тупик",
               "streetCode":"5003300100001240000000000",
               "price":0,
               "default":true,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"263",
               "name":"Томилино",
               "address":"Томилино, Московская обл., Люберецкий р-н., рп Октябрьский,ул. Ленина, 47, литера Д, Д1",
               "streetCode":"5001700500000120000000000",
               "price":0,
               "default":true,
               "express":false,
               "isPVZ":false
            }
         ]
      },
      "price":1236.0,
      "priceMinimal":"intercity",
      "packages":{
         "0xA6A7BD2BF950E67F4B2CF7CC3A97C111":{
            "price":500.0,
            "premium":0,
            "discount":0,
            "premiumDetails":[

            ],
            "discountDetails":[

            ]
         },
         "0x947845D9BDC69EFA49630D8C080C4FBE":{
            "price":90.0,
            "premium":0,
            "discount":0,
            "premiumDetails":[

            ],
            "discountDetails":[

            ]
         }
      },
      "orderDates":{
         "pickup":null,
         "arrivalToOspSender":"2020-01-15",
         "derrivalFromOspSender":"2020-01-15",
         "arrivalToOspReceiver":"2020-01-16",
         "derrivalFromOspReceiver":null
      },
      "deliveryTerm":0,
      "insurance":85.0,
      "insuranceComponents":{
         "cargoInsurance":55.0,
         "termInsurance":30.0
      },
      "notify":{
         "price":15.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "simpleShippingAvailable":true
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2020-01-09 15:06:55</generated_at>
   </metadata>
   <data>
      <derival>
         <terminal>Санкт-Петербург</terminal>
         <price>0</price>
         <terminals>
            <id>1</id>
            <name>Санкт-Петербург-Парнас</name>
            <address>Санкт-Петербург, 2-й Верхний пер., 13А</address>
            <streetCode>7800000000015880000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>true</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>334</id>
            <name>Санкт-Петербург Воздухоплавательная</name>
            <address>Санкт-Петербург, Воздухоплавательная ул, дом № 19, литера А</address>
            <streetCode>7800000000002480000000000</streetCode>
            <price>0</price>
            <default>false</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>15</id>
            <name>Санкт-Петербург Восток</name>
            <address>Санкт-Петербург, Латышских Стрелков ул., 31</address>
            <streetCode>7800000000006840000000000</streetCode>
            <price>25</price>
            <default>false</default>
            <express>true</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>319</id>
            <name>Санкт-Петербург Шушары Армада</name>
            <address>Санкт-Петербург, п. Шушары, Московское ш., 52а</address>
            <streetCode>7800000000008540000000000</streetCode>
            <price>0</price>
            <default>false</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>118</id>
            <name>Санкт-Петербург-Стачек</name>
            <address>Санкт-Петербург, Стачек пр., 45/2 (пересечение Ново-Овсянниковской ул. и Баррикадной ул.)</address>
            <streetCode>7800000000013480000000000</streetCode>
            <price>0</price>
            <default>false</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
      </derival>
      <intercity>
         <price>546</price>
         <premium>0</premium>
         <discount>0</discount>
      </intercity>
      <arrival>
         <terminal>Москва</terminal>
         <price>0</price>
         <terminals>
            <id>36</id>
            <name>Москва-Север</name>
            <address>Москва, Лобненская ул., 18</address>
            <streetCode>7700000000017250000000000</streetCode>
            <price>100</price>
            <default>true</default>
            <express>true</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>276</id>
            <name>Коломна</name>
            <address>Коломна, Пирочинское ш., 13</address>
            <streetCode>5000002700003380000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>261</id>
            <name>Ногинск</name>
            <address>Ногинск, Электростальское ш., 1а</address>
            <streetCode>5002100100003020000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>390</id>
            <name>Подольск</name>
            <address>Подольск, Нефтебазовский проезд, 8.</address>
            <streetCode>None</streetCode>
            <price>25</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>278</id>
            <name>Пушкино</name>
            <address>Пушкино, Кудринское ш., 6</address>
            <streetCode>5002700100001630000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>277</id>
            <name>Серпухов</name>
            <address>Серпухов, Войкова ул., в/г 2 (на территории военного городка)</address>
            <streetCode>5000002800000740000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>253</id>
            <name>Солнечногорск</name>
            <address>Солнечногорск, Бутырский тупик</address>
            <streetCode>5003300100001240000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>263</id>
            <name>Томилино</name>
            <address>Томилино, Московская обл., Люберецкий р-н., рп Октябрьский,ул. Ленина, 47, литера Д, Д1</address>
            <streetCode>5001700500000120000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
      </arrival>
      <price>1236</price>
      <priceMinimal>intercity</priceMinimal>
      <packages>
         <0xA6A7BD2BF950E67F4B2CF7CC3A97C111>
            <price>500</price>
            <premium>0</premium>
            <discount>0</discount>
         </0xA6A7BD2BF950E67F4B2CF7CC3A97C111>
         <0x947845D9BDC69EFA49630D8C080C4FBE>
            <price>90</price>
            <premium>0</premium>
            <discount>0</discount>
         </0x947845D9BDC69EFA49630D8C080C4FBE>
      </packages>
      <orderDates>
         <pickup />
         <arrivalToOspSender>2020-01-15</arrivalToOspSender>
         <derrivalFromOspSender>2020-01-15</derrivalFromOspSender>
         <arrivalToOspReceiver>2020-01-16</arrivalToOspReceiver>
         <derrivalFromOspReceiver />
      </orderDates>
      <deliveryTerm>0</deliveryTerm>
      <insurance>85</insurance>
      <insuranceComponents>
         <cargoInsurance>55</cargoInsurance>
         <termInsurance>30</termInsurance>
      </insuranceComponents>
      <notify>
         <price>15</price>
         <premium>0</premium>
         <discount>0</discount>
      </notify>
      <simpleShippingAvailable>true</simpleShippingAvailable>
   </data> 
</response>

Example 3

The user is authorizedNo (1)
The user role in transportation processSender
Delivery termsFrom the terminal of the sender to the address of the receiver
Transportation typeExpress transportation
HandlingNo
Additional transport requirementsRemovable curtains (3)
Number of cargo places1
PackagingSpecial packaging for auto parts (2)
Additional servicesNo

Notes:

  1. Individual client discounts will not be taken into account when calculating the cost of the services.

  2. See "Directory of available packages".
  3. See "Directory of special transport requirements"

Request

Method address: https://api.dellin.ru/v2/calculator.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "delivery":{
      "deliveryType":{
         "type":"express"
      },
      "derival":{
         "produceDate":"2020-01-15",
         "variant":"terminal",
         "terminalID":"1"
      },
      "arrival":{
         "address":{
            "street":"7700000000003690000000000"
         },
         "variant":"address",
         "time":{
            "worktimeStart":"9:30",
            "worktimeEnd":"19:00",
            "exactTime":"false"
         },
         "requirements":[
            "0x818e8ff1eda1abc349318a478659af08"
         ]
      },
      "packages":[
         {
            "uid":"0xad97901b0ecef0f211e889fcf4624fea",
            "count":1
         }
      ]
   },
   "members":{
      "requester":{
         "uid":"ae62f076-d602-4341-b691-45bf8dfe4a10",
         "role":"sender"
      }
   },
   "payment":{
      "paymentCity":"7700000000000000000000000",
      "type":"cash"
   },
   "cargo":{
      "totalVolume":0.1,
      "oversizedVolume":0,
      "quantity":1,
      "length":0.54,
      "width":0.39,
      "totalWeight":10,
      "oversizedWeight":0,
      "weight":10,
      "freightName":"мебель",
      "height":0.39
   }
}

Method address: https://api.dellin.ru/v2/calculator.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <delivery>
      <deliveryType>
         <type>express</type>
      </deliveryType>
      <derival>
         <produceDate>2020-01-15</produceDate>
         <variant>terminal</variant>
         <terminalID>1</terminalID>
      </derival>
      <arrival>
         <address>
            <street>7700000000003690000000000</street>
         </address>
         <variant>address</variant>
         <time>
            <worktimeStart>9:30</worktimeStart>
            <worktimeEnd>19:00</worktimeEnd>
            <exactTime>false</exactTime>
         </time>
         <requirements>0x818e8ff1eda1abc349318a478659af08</requirements>
      </arrival>
      <packages>
         <uid>0xad97901b0ecef0f211e889fcf4624fea</uid>
         <count>1</count>
      </packages>
   </delivery>
   <members>
      <requester>
         <uid>ae62f076-d602-4341-b691-45bf8dfe4a10</uid>
         <role>sender</role>
      </requester>
   </members>
   <payment>
      <paymentCity>7700000000000000000000000</paymentCity>
      <type>cash</type>
   </payment>
   <cargo>
      <totalVolume>0.1</totalVolume>
      <oversizedVolume>0</oversizedVolume>
      <quantity>1</quantity>
      <length>0.54</length>
      <width>0.39</width>
      <totalWeight>10</totalWeight>
      <oversizedWeight>0</oversizedWeight>
      <weight>10</weight>
      <freightName>мебель</freightName>
      <height>0.39</height>
   </cargo> 
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2020-01-09 18:28:38"
   },
   "data":{
      "derival":{
         "terminal":"Санкт-Петербург",
         "price":0,
         "premiumDetails":[

         ],
         "terminals":[
            {
               "id":"1",
               "name":"Санкт-Петербург-Парнас",
               "address":"Санкт-Петербург, 2-й Верхний пер., 13А",
               "streetCode":"7800000000015880000000000",
               "price":0,
               "default":true,
               "express":true,
               "isPVZ":false
            },
            {
               "id":"334",
               "name":"Санкт-Петербург Воздухоплавательная",
               "address":"Санкт-Петербург, Воздухоплавательная ул, дом № 19, литера А",
               "streetCode":"7800000000002480000000000",
               "price":0,
               "default":false,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"15",
               "name":"Санкт-Петербург Восток",
               "address":"Санкт-Петербург, Латышских Стрелков ул., 31",
               "streetCode":"7800000000006840000000000",
               "price":25.0,
               "default":false,
               "express":true,
               "isPVZ":false
            },
            {
               "id":"319",
               "name":"Санкт-Петербург Шушары Армада",
               "address":"Санкт-Петербург, п. Шушары, Московское ш., 52а",
               "streetCode":"7800000000008540000000000",
               "price":0,
               "default":false,
               "express":false,
               "isPVZ":false
            },
            {
               "id":"118",
               "name":"Санкт-Петербург-Стачек",
               "address":"Санкт-Петербург, Стачек пр., 45/2 (пересечение Ново-Овсянниковской ул. и Баррикадной ул.)",
               "streetCode":"7800000000013480000000000",
               "price":0,
               "default":false,
               "express":false,
               "isPVZ":false
            }
         ]
      },
      "express":{
         "price":590.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "arrival":{
         "terminal":"Москва",
         "price":1886.0,
         "servicePrice":236.0,
         "premiumDetails":[
            {
               "name":"Растентовка (получатель)",
               "value":1650.0,
               "date":null,
               "announcement":false,
               "public":true
            }
         ],
         "terminals":[

         ]
      },
      "price":2576.0,
      "priceMinimal":"intercity",
      "packages":{
         "0xAD97901B0ECEF0F211E889FCF4624FEA":{
            "price":0,
            "premium":0,
            "discount":0,
            "premiumDetails":[

            ],
            "discountDetails":[

            ]
         }
      },
      "orderDates":{
         "pickup":null,
         "senderTerminalTime":"18:00:00",
         "arrivalToOspSender":"2020-01-15",
         "derrivalFromOspSender":"2020-01-15",
         "arrivalToOspReceiver":"2020-01-16",
         "derrivalFromOspReceiver":null,
         "derrivalToAddress":"2020-01-16 10:00:00"
      },
      "deliveryTerm":0,
      "insurance":85.0,
      "insuranceComponents":{
         "cargoInsurance":55.0,
         "termInsurance":30.0
      },
      "notify":{
         "price":15.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "simpleShippingAvailable":true
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2020-01-09 18:28:38</generated_at>
   </metadata>
   <data>
      <derival>
         <terminal>Санкт-Петербург</terminal>
         <price>0</price>
         <terminals>
            <id>1</id>
            <name>Санкт-Петербург-Парнас</name>
            <address>Санкт-Петербург, 2-й Верхний пер., 13А</address>
            <streetCode>7800000000015880000000000</streetCode>
            <price>0</price>
            <default>true</default>
            <express>true</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>334</id>
            <name>Санкт-Петербург Воздухоплавательная</name>
            <address>Санкт-Петербург, Воздухоплавательная ул, дом № 19, литера А</address>
            <streetCode>7800000000002480000000000</streetCode>
            <price>0</price>
            <default>false</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>15</id>
            <name>Санкт-Петербург Восток</name>
            <address>Санкт-Петербург, Латышских Стрелков ул., 31</address>
            <streetCode>7800000000006840000000000</streetCode>
            <price>25</price>
            <default>false</default>
            <express>true</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>319</id>
            <name>Санкт-Петербург Шушары Армада</name>
            <address>Санкт-Петербург, п. Шушары, Московское ш., 52а</address>
            <streetCode>7800000000008540000000000</streetCode>
            <price>0</price>
            <default>false</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
         <terminals>
            <id>118</id>
            <name>Санкт-Петербург-Стачек</name>
            <address>Санкт-Петербург, Стачек пр., 45/2 (пересечение Ново-Овсянниковской ул. и Баррикадной ул.)</address>
            <streetCode>7800000000013480000000000</streetCode>
            <price>0</price>
            <default>false</default>
            <express>false</express>
            <isPVZ>false</isPVZ>
         </terminals>
      </derival>
      <express>
         <price>590</price>
         <premium>0</premium>
         <discount>0</discount>
      </express>
      <arrival>
         <terminal>Москва</terminal>
         <price>1886</price>
         <servicePrice>236</servicePrice>
         <premiumDetails>
            <name>Растентовка (получатель)</name>
            <value>1650</value>
            <date />
            <announcement>false</announcement>
            <public>true</public>
         </premiumDetails>
      </arrival>
      <price>2576</price>
      <priceMinimal>intercity</priceMinimal>
      <packages>
         <0xAD97901B0ECEF0F211E889FCF4624FEA>
            <price>0</price>
            <premium>0</premium>
            <discount>0</discount>
         </0xAD97901B0ECEF0F211E889FCF4624FEA>
      </packages>
      <orderDates>
         <pickup />
         <senderTerminalTime>18:00:00</senderTerminalTime>
         <arrivalToOspSender>2020-01-15</arrivalToOspSender>
         <derrivalFromOspSender>2020-01-15</derrivalFromOspSender>
         <arrivalToOspReceiver>2020-01-16</arrivalToOspReceiver>
         <derrivalFromOspReceiver />
         <derrivalToAddress>2020-01-16 10:00:00</derrivalToAddress>
      </orderDates>
      <deliveryTerm>0</deliveryTerm>
      <insurance>85</insurance>
      <insuranceComponents>
         <cargoInsurance>55</cargoInsurance>
         <termInsurance>30</termInsurance>
      </insuranceComponents>
      <notify>
         <price>15</price>
         <premium>0</premium>
         <discount>0</discount>
      </notify>
      <simpleShippingAvailable>true</simpleShippingAvailable>
   </data>
</response>

Example 4

The user is authorizedYes (1)
The user role in transportation processReceiver
Delivery termsFrom the address of the sender to the address of the receiver
Transportation typeBy truck
HandlingNo
Additional transport requirementsCrane (3)
Number of cargo places1
PackagingBubble wrap and wooden crate (2)
Additional servicesCargo insurance

Notes:

  1. Individual client discounts will be taken into account when calculating the cost of the services.

  2. See "Directory of available packages".
  3. See "Directory of special transport requirements"

Request

Method address: https://api.dellin.ru/v2/calculator.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "delivery":{
      "deliveryType":{
         "type":"auto"
      },
      "derival":{
         "produceDate":"2020-01-15",
         "address":{
            "street":"7800000000012110000000000"
         },
         "variant":"address",
         "time":{
            "worktimeEnd":"12:30",
            "worktimeStart":"08:30",
            "exactTime":"false"
         },
         "requirements":[
            "0x92fce2284f000b0241dad7c2e88b1655"
         ]
      },
      "arrival":{
         "address":{
            "street":"7700000000003690000000000"
         },
         "variant":"address",
         "time":{
            "worktimeStart":"9:30",
            "worktimeEnd":"19:00",
            "exactTime":"false"
         }
      },
      "packages":[
         {
            "uid":"0xad97901b0ecef0f211e889fcf4624fec",
            "count":1
         }
      ]
   },
   "members":{
      "requester":{
         "uid":"ae62f076-d602-4341-b691-45bf8dfe4a10",
         "role":"receiver"
      }
   },
   "payment":{
      "paymentCity":"7700000000000000000000000",
      "type":"cash"
   },
   "cargo":{
      "totalVolume":0.1,
      "oversizedVolume":0,
      "quantity":1,
      "length":0.54,
      "width":0.39,
      "totalWeight":4,
      "oversizedWeight":0,
      "weight":4,
      "freightName":"мебель",
      "height":0.39,
      "insurance":{
         "statedValue":15477.34,
         "term":false
      }
   }
}

Method address: https://api.dellin.ru/v2/calculator.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <delivery>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <derival>
         <produceDate>2020-01-15</produceDate>
         <address>
            <street>7800000000012110000000000</street>
         </address>
         <variant>address</variant>
         <time>
            <worktimeEnd>12:30</worktimeEnd>
            <worktimeStart>08:30</worktimeStart>
            <exactTime>false</exactTime>
         </time>
         <requirements>0x92fce2284f000b0241dad7c2e88b1655</requirements>
      </derival>
      <arrival>
         <address>
            <street>7700000000003690000000000</street>
         </address>
         <variant>address</variant>
         <time>
            <worktimeStart>9:30</worktimeStart>
            <worktimeEnd>19:00</worktimeEnd>
            <exactTime>false</exactTime>
         </time>
      </arrival>
      <packages>
         <uid>0xad97901b0ecef0f211e889fcf4624fec</uid>
         <count>1</count>
      </packages>
   </delivery>
   <members>
      <requester>
         <uid>ae62f076-d602-4341-b691-45bf8dfe4a10</uid>
         <role>receiver</role>
      </requester>
   </members>
   <payment>
      <paymentCity>7700000000000000000000000</paymentCity>
      <type>cash</type>
   </payment>
   <cargo>
      <totalVolume>0.1</totalVolume>
      <oversizedVolume>0</oversizedVolume>
      <quantity>1</quantity>
      <length>0.54</length>
      <width>0.39</width>
      <totalWeight>4</totalWeight>
      <oversizedWeight>0</oversizedWeight>
      <weight>4</weight>
      <freightName>мебель</freightName>
      <height>0.39</height>
      <insurance>
         <statedValue>15477.34</statedValue>
         <term>false</term>
      </insurance>
   </cargo> 
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2020-01-09 18:48:34"
   },
   "data":{
      "derival":{
         "terminal":"Санкт-Петербург",
         "price":3513.0,
         "servicePrice":513.0,
         "premiumDetails":[
            {
               "name":"Гидроборт (отправитель)",
               "value":3000.0,
               "date":null,
               "announcement":false,
               "public":true
            }
         ],
         "terminals":[

         ]
      },
      "intercity":{
         "price":410.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "arrival":{
         "terminal":"Москва",
         "price":165.0,
         "servicePrice":165.0,
         "premiumDetails":[

         ],
         "terminals":[

         ]
      },
      "price":4473.0,
      "priceMinimal":"intercity",
      "packages":{
         "0xAD97901B0ECEF0F211E889FCF4624FEC":{
            "price":0,
            "premium":0,
            "discount":0,
            "premiumDetails":[

            ],
            "discountDetails":[

            ]
         }
      },
      "orderDates":{
         "pickup":"2020-01-15",
         "arrivalToOspSender":null,
         "derrivalFromOspSender":"2020-01-16",
         "arrivalToOspReceiver":"2020-01-17",
         "derrivalFromOspReceiver":"2020-01-17"
      },
      "deliveryTerm":0,
      "insurance":370.0,
      "insuranceComponents":{
         "cargoInsurance":305.0,
         "termInsurance":65.0
      },
      "notify":{
         "price":15.0,
         "premium":0,
         "discount":0,
         "premiumDetails":[

         ],
         "discountDetails":[

         ]
      },
      "simpleShippingAvailable":true
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2020-01-09 18:48:34</generated_at>
   </metadata>
   <data>
      <derival>
         <terminal>Санкт-Петербург</terminal>
         <price>3513</price>
         <servicePrice>513</servicePrice>
         <premiumDetails>
            <name>Гидроборт (отправитель)</name>
            <value>3000</value>
            <date />
            <announcement>false</announcement>
            <public>true</public>
         </premiumDetails>
      </derival>
      <intercity>
         <price>410</price>
         <premium>0</premium>
         <discount>0</discount>
      </intercity>
      <arrival>
         <terminal>Москва</terminal>
         <price>165</price>
         <servicePrice>165</servicePrice>
      </arrival>
      <price>4473</price>
      <priceMinimal>intercity</priceMinimal>
      <packages>
         <0xAD97901B0ECEF0F211E889FCF4624FEC>
            <price>0</price>
            <premium>0</premium>
            <discount>0</discount>
         </0xAD97901B0ECEF0F211E889FCF4624FEC>
      </packages>
      <orderDates>
         <pickup>2020-01-15</pickup>
         <arrivalToOspSender />
         <derrivalFromOspSender>2020-01-16</derrivalFromOspSender>
         <arrivalToOspReceiver>2020-01-17</arrivalToOspReceiver>
         <derrivalFromOspReceiver>2020-01-17</derrivalFromOspReceiver>
      </orderDates>
      <deliveryTerm>0</deliveryTerm>
      <insurance>370</insurance>
      <insuranceComponents>
         <cargoInsurance>305</cargoInsurance>
         <termInsurance>65</termInsurance>
      </insuranceComponents>
      <notify>
         <price>15</price>
         <premium>0</premium>
         <discount>0</discount>
      </notify>
      <simpleShippingAvailable>true</simpleShippingAvailable>
   </data>
</response>