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

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

Example request: Verification

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

General information

To check whether it is possible to order additional services (hand over the cargo to the forwarding driver on the day of order, delivery date insurance, packaging, etc) use https://api.dellin.ru/v1/public/request_conditions method, for method's description, see "Order limitations".

Example 1

Service

To hand over the cargo to the forwarding driver at the sender's address on the day of order

FromMoscow
ToSt. Petersburg
Transportation typeBy truck
Dispatch conditionsFrom the address of the sender
Delivery conditions
To the address of the receiver

Request

Method address: https://api.dellin.ru/v1/public/request_conditions.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "blocks":[
      "day_to_day"
   ],
   "derivalPoint":"7700000000000000000000000",
   "arrivalPoint":"7800000000000000000000000",
   "volume":"3",
   "weight":"10",
   "deliveryType":1,
   "derivalDoor":true,
   "arrivalDoor":true
}

Method address: https://api.dellin.ru/v1/public/request_conditions.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <blocks>day_to_day</blocks>
   <derivalPoint>7700000000000000000000000</derivalPoint>
   <arrivalPoint>7800000000000000000000000</arrivalPoint>
   <volume>3</volume>
   <weight>10</weight>
   <deliveryType>1</deliveryType>
   <derivalDoor>true</derivalDoor>
   <arrivalDoor>true</arrivalDoor>
</request>

Response

{
   "day_to_day":{
      "same_day_pickup_allowed":true,
      "minimal_pickup_period":4,
      "minimal_same_day_pickup_period":2,
      "same_day_pickup_ends_at":"16:00:00",
      "terminal_id":36
   }
}
<response>
   <day_to_day>
      <same_day_pickup_allowed>true</same_day_pickup_allowed>
      <minimal_pickup_period>4</minimal_pickup_period>
      <minimal_same_day_pickup_period>2</minimal_same_day_pickup_period>
      <same_day_pickup_ends_at>16:00:00</same_day_pickup_ends_at>
      <terminal_id>36</terminal_id>
   </day_to_day>
</response>

Example 2

ServiceTo hand over the cargo to the forwarding driver at the sender's address on the day of order
FromAnapa
ToKrasnodar
Transportation typeBy truck
Dispatch conditionsFrom the address of the sender
Delivery conditions
To the terminal of the receiver

Request

Method address: https://api.dellin.ru/v1/public/request_conditions.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "blocks":[
      "day_to_day"
   ],
   "derivalPoint":"2300300100000000000000000",
   "arrivalPoint":"2300000100000000000000000",
   "volume":"5",
   "weight":"20",
   "arrivalTerminalID":93,
   "deliveryType":1,
   "derivalDoor":true,
   "arrivalDoor":false
}

Method address: https://api.dellin.ru/v1/public/request_conditions.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <blocks>day_to_day</blocks>
   <derivalPoint>2300300100000000000000000</derivalPoint>
   <arrivalPoint>2300000100000000000000000</arrivalPoint>
   <volume>5</volume>
   <weight>20</weight>
   <arrivalTerminalID>93</arrivalTerminalID>
   <deliveryType>1</deliveryType>
   <derivalDoor>true</derivalDoor>
   <arrivalDoor>false</arrivalDoor>
</request>

Response

{
   "day_to_day":{
      "same_day_pickup_allowed":true,
      "minimal_pickup_period":0,
      "minimal_same_day_pickup_period":4,
      "same_day_pickup_ends_at":"18:00:00",
      "terminal_id":84
   }
}
<response>
   <day_to_day>
      <same_day_pickup_allowed>true</same_day_pickup_allowed>
      <minimal_pickup_period>0</minimal_pickup_period>
      <minimal_same_day_pickup_period>4</minimal_same_day_pickup_period>
      <same_day_pickup_ends_at>18:00:00</same_day_pickup_ends_at>
      <terminal_id>84</terminal_id>
   </day_to_day>
</response>

Example 3

Service

Packaging for the cargo:

  • cargo volume - 20 m3;
  • cargo weight - 45 kg
FromMoscow
ToSt. Petersburg
Transportation typeAir transportation
Dispatch conditionsFrom the terminal of the sender
Delivery conditions
To the terminal of the receiver

Request

Method address: https://api.dellin.ru/v1/public/request_conditions.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "blocks":[
      "packages"
   ],
   "derivalPoint":"7700000000000000000000000",
   "arrivalPoint":"7800000000000000000000000",
   "volume":"20",
   "weight":"45",
   "derivalTerminalID":119,
   "arrivalTerminalID":32,
   "deliveryType":6,
   "derivalDoor":false,
   "arrivalDoor":false
}

Method address: https://api.dellin.ru/v1/public/request_conditions.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <blocks>packages</blocks>
   <derivalPoint>7700000000000000000000000</derivalPoint>
   <arrivalPoint>7800000000000000000000000</arrivalPoint>
   <volume>20</volume>
   <weight>45</weight>
   <derivalTerminalID>119</derivalTerminalID>
   <arrivalTerminalID>32</arrivalTerminalID>
   <deliveryType>6</deliveryType>
   <derivalDoor>false</derivalDoor>
   <arrivalDoor>false</arrivalDoor>
</request>

Response

{
   "packages":[
      {
         "uid":"0x8783b183e825d40d4eb5c21ef63fbbfb",
         "incompatible_uids":[
            "0x838fc70baeb49b564426b45b1d216c15"
         ]
      },
      {
         "uid":"0x951783203a254a05473c43733c20fe72",
         "incompatible_uids":[

         ]
      },
      {
         "uid":"0x9a7f11408f4957d7494570820fcf4549",
         "incompatible_uids":[
            "0x84f7578779ae4a444e3dfc8b96d80e08"
         ]
      },
      {
         "uid":"0x9dd8901b0ecef10c11e8ed001199bf6e",
         "incompatible_uids":[
            "0x9dd8901b0ecef10c11e8ed001199bf71",
            "0xb9f594d27a2d31b440a647d19547543c"
         ]
      },
      {
         "uid":"0x9dd8901b0ecef10c11e8ed001199bf70",
         "incompatible_uids":[
            "0x9dd8901b0ecef10c11e8ed001199bf6f"
         ]
      },
      {
         "uid":"0xa8b42ac5ec921a4d43c0b702c3f1c109",
         "incompatible_uids":[

         ]
      },
      {
         "uid":"0xad22189d098fb9b84eec0043196370d6",
         "incompatible_uids":[

         ]
      }
   ]
}
<response>
   <packages>
      <uid>0x8783b183e825d40d4eb5c21ef63fbbfb</uid>
      <incompatible_uids>0x838fc70baeb49b564426b45b1d216c15</incompatible_uids>
   </packages>
   <packages>
      <uid>0x951783203a254a05473c43733c20fe72</uid>
   </packages>
   <packages>
      <uid>0x9a7f11408f4957d7494570820fcf4549</uid>
      <incompatible_uids>0x84f7578779ae4a444e3dfc8b96d80e08</incompatible_uids>
   </packages>
   <packages>
      <uid>0x9dd8901b0ecef10c11e8ed001199bf6e</uid>
      <incompatible_uids>0x9dd8901b0ecef10c11e8ed001199bf71</incompatible_uids>
      <incompatible_uids>0xb9f594d27a2d31b440a647d19547543c</incompatible_uids>
   </packages>
   <packages>
      <uid>0x9dd8901b0ecef10c11e8ed001199bf70</uid>
      <incompatible_uids>0x9dd8901b0ecef10c11e8ed001199bf6f</incompatible_uids>
   </packages>
   <packages>
      <uid>0xa8b42ac5ec921a4d43c0b702c3f1c109</uid>
   </packages>
   <packages>
      <uid>0xad22189d098fb9b84eec0043196370d6</uid>
   </packages>
</response>

Example 4

Service

Handling:

  • cargo volume - 19 m3;
  • cargo weight - 80 kg
FromMoscow
ToSt. Petersburg
Transportation typeBy truck
Dispatch conditionsFrom the address of the sender
Delivery conditions
To the address of the receiver

Request

Method address: https://api.dellin.ru/v1/public/request_conditions.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "blocks":[
      "loadings"
   ],
   "derivalPoint":"7700000000000000000000000",
   "arrivalPoint":"7800000000000000000000000",
   "volume":"19",
   "weight":"80",
   "deliveryType":1,
   "derivalDoor":true,
   "arrivalDoor":true
}

Method address: https://api.dellin.ru/v1/public/request_conditions.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <blocks>loadings</blocks>
   <derivalPoint>7700000000000000000000000</derivalPoint>
   <arrivalPoint>7800000000000000000000000</arrivalPoint>
   <volume>19</volume>
   <weight>80</weight>
   <deliveryType>1</deliveryType>
   <derivalDoor>true</derivalDoor>
   <arrivalDoor>true</arrivalDoor>
</request>

Response

{
   "loadings":{
      "sender":[
         "0xb83b7589658a3851440a853325d1bf69",
         "0xabb9c63c596b08f94c3664c930e77778",
         "0x92fce2284f000b0241dad7c2e88b1655",
         "0x88f93a2c37f106d94ff9f7ada8efe886",
         "0x9951e0ff97188f6b4b1b153dfde3cfec",
         "0x818e8ff1eda1abc349318a478659af08"
      ],
      "receiver":[
         "0xb83b7589658a3851440a853325d1bf69",
         "0xabb9c63c596b08f94c3664c930e77778",
         "0x92fce2284f000b0241dad7c2e88b1655",
         "0x88f93a2c37f106d94ff9f7ada8efe886",
         "0x9951e0ff97188f6b4b1b153dfde3cfec",
         "0x818e8ff1eda1abc349318a478659af08"
      ]
   }
}
<response>
   <loadings>
      <sender>0xb83b7589658a3851440a853325d1bf69</sender>
      <sender>0xabb9c63c596b08f94c3664c930e77778</sender>
      <sender>0x92fce2284f000b0241dad7c2e88b1655</sender>
      <sender>0x88f93a2c37f106d94ff9f7ada8efe886</sender>
      <sender>0x9951e0ff97188f6b4b1b153dfde3cfec</sender>
      <sender>0x818e8ff1eda1abc349318a478659af08</sender>
      <receiver>0xb83b7589658a3851440a853325d1bf69</receiver>
      <receiver>0xabb9c63c596b08f94c3664c930e77778</receiver>
      <receiver>0x92fce2284f000b0241dad7c2e88b1655</receiver>
      <receiver>0x88f93a2c37f106d94ff9f7ada8efe886</receiver>
      <receiver>0x9951e0ff97188f6b4b1b153dfde3cfec</receiver>
      <receiver>0x818e8ff1eda1abc349318a478659af08</receiver>
   </loadings>
</response>

Example 5

ServiceDelivery date insurance
FromMoscow
ToSt. Petersburg
Transportation typeBy truck
Dispatch conditionsFrom the address of the sender
Delivery conditions
To the address of the receiver

Request

Method address: https://api.dellin.ru/v1/public/request_conditions.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "blocks":[
      "insurance"
   ],
   "derivalPoint":"7700000000000000000000000",
   "arrivalPoint":"7800000000000000000000000",
   "volume":"5",
   "weight":"2",
   "deliveryType":1,
   "derivalDoor":true,
   "arrivalDoor":true
}

Method address: https://api.dellin.ru/v1/public/request_conditions.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <blocks>insurance</blocks>
   <derivalPoint>7700000000000000000000000</derivalPoint>
   <arrivalPoint>7800000000000000000000000</arrivalPoint>
   <volume>5</volume>
   <weight>2</weight>
   <deliveryType>1</deliveryType>
   <derivalDoor>true</derivalDoor>
   <arrivalDoor>true</arrivalDoor>
</request>

Response

{
   "insurance":{
      "term_insurance_available":3
   }
}
<response>
   <insurance>
      <term_insurance_available>3</term_insurance_available>
   </insurance>
</response>

Example 6

Service

To hand over the cargo to the forwarding driver at the sender's address on the day of order

Delivery date insurance

Handling:

  • cargo volume - 10 m3;
  • cargo weight - 5 kg
FromMoscow
ToSt. Petersburg
Transportation typeExpress transportation
Dispatch conditionsFrom the address of the sender
Delivery conditions
To the address of the receiver

Request

Method address: https://api.dellin.ru/v1/public/request_conditions.json 

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "blocks":[
      "day_to_day",
      "loadings",
      "insurance"
   ],
   "derivalPoint":"7700000000000000000000000",
   "arrivalPoint":"7800000000000000000000000",
   "volume":"10",
   "weight":"5",
   "deliveryType":4,
   "derivalDoor":true,
   "arrivalDoor":true
}

Method address: https://api.dellin.ru/v1/public/request_conditions.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <blocks>day_to_day</blocks>
   <blocks>loadings</blocks>
   <blocks>insurance</blocks>
   <derivalPoint>7700000000000000000000000</derivalPoint>
   <arrivalPoint>7800000000000000000000000</arrivalPoint>
   <volume>10</volume>
   <weight>5</weight>
   <deliveryType>4</deliveryType>
   <derivalDoor>true</derivalDoor>
   <arrivalDoor>true</arrivalDoor>
</request>

Response

{
   "loadings":{
      "sender":[
         "0xb83b7589658a3851440a853325d1bf69",
         "0xabb9c63c596b08f94c3664c930e77778",
         "0x92fce2284f000b0241dad7c2e88b1655",
         "0x88f93a2c37f106d94ff9f7ada8efe886",
         "0x9951e0ff97188f6b4b1b153dfde3cfec",
         "0x818e8ff1eda1abc349318a478659af08"
      ],
      "receiver":[
         "0xb83b7589658a3851440a853325d1bf69",
         "0xabb9c63c596b08f94c3664c930e77778",
         "0x92fce2284f000b0241dad7c2e88b1655",
         "0x88f93a2c37f106d94ff9f7ada8efe886",
         "0x9951e0ff97188f6b4b1b153dfde3cfec",
         "0x818e8ff1eda1abc349318a478659af08"
      ]
   },
   "day_to_day":{
      "same_day_pickup_allowed":true,
      "minimal_pickup_period":4,
      "minimal_same_day_pickup_period":2,
      "same_day_pickup_ends_at":"23:00:00",
      "terminal_id":36
   },
   "insurance":{
      "term_insurance_available":2
   }
}
<response>
   <loadings>
      <sender>0xb83b7589658a3851440a853325d1bf69</sender>
      <sender>0xabb9c63c596b08f94c3664c930e77778</sender>
      <sender>0x92fce2284f000b0241dad7c2e88b1655</sender>
      <sender>0x88f93a2c37f106d94ff9f7ada8efe886</sender>
      <sender>0x9951e0ff97188f6b4b1b153dfde3cfec</sender>
      <sender>0x818e8ff1eda1abc349318a478659af08</sender>
      <receiver>0xb83b7589658a3851440a853325d1bf69</receiver>
      <receiver>0xabb9c63c596b08f94c3664c930e77778</receiver>
      <receiver>0x92fce2284f000b0241dad7c2e88b1655</receiver>
      <receiver>0x88f93a2c37f106d94ff9f7ada8efe886</receiver>
      <receiver>0x9951e0ff97188f6b4b1b153dfde3cfec</receiver>
      <receiver>0x818e8ff1eda1abc349318a478659af08</receiver>
   </loadings>
   <day_to_day>
      <same_day_pickup_allowed>true</same_day_pickup_allowed>
      <minimal_pickup_period>4</minimal_pickup_period>
      <minimal_same_day_pickup_period>2</minimal_same_day_pickup_period>
      <same_day_pickup_ends_at>23:00:00</same_day_pickup_ends_at>
      <terminal_id>36</terminal_id>
   </day_to_day>
   <insurance>
      <term_insurance_available>2</term_insurance_available>
   </insurance>
</response>