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

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

Example request: Order

Обновлено 24.04.2020
236 кб

General information

To place an order/preorder (see below) use https://api.dellin.ru/v2/request method. Using the method for authorized users see "Orders for shipping from the personal account", for unauthorized - see "Orders for shipping from the public part".

Examples 1-4 illustrate the use of the method for preordering (see below), examples 5-8 - for placing an order.

Pre-orderIf a client wants to bring the cargo to the company terminal, they may place an order online, print the paper and bring it to the terminal. Thus they will be able to save time since the clients who placed a pre-order are served out of turn. For more information see Delovye Linii company website.

Example 1

The user is authorizedYes
The user role in transportation processSender
Delivery termsFrom the terminal of the sender to the terminal of the receiver
Transportation typeLetter
Handling-
Additional transport requirements-
Number of cargo places-
Packaging-
Additional servicesNo
PayerSender
Additional requirements for receiving the cargo from the client/handing the cargo over to the clientNo

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"letter"
      },
      "derival":{
         "produceDate":"2019-12-23",
         "variant":"terminal",
         "terminalID":"119"
      },
      "arrival":{
         "variant":"terminal",
         "terminalID":"1"
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1939586,
         "contactPersons":[
            {
               "name":"Иван Иванович",
               "save":true
            },
            {
               "name":"Петр Петрович",
               "save":false
            }
         ],
         "phoneNumbers":[
            {
               "number":"78125556696",
               "ext":"0123",
               "save":true
            },
            {
               "number":"79112589696",
               "save":false
            }
         ]
      },
      "receiver":{
         "counteragentID":"1913137",
         "contactIDs":[
            "15637945"
         ],
         "phoneIDs":[
            "19501097"
         ]
      }
   },
   "cargo":{
      "freightName":"Письмо"
   },
   "payment":{
      "type":"cash",
      "primaryPayer":"sender"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <inOrder>true</inOrder>
   <delivery>
      <deliveryType>
         <type>letter</type>
      </deliveryType>
      <derival>
         <produceDate>2019-12-23</produceDate>
         <variant>terminal</variant>
         <terminalID>119</terminalID>
      </derival>
      <arrival>
         <variant>terminal</variant>
         <terminalID>1</terminalID>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>sender</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
      </requester>
      <sender>
         <counteragentID>1939586</counteragentID>
         <contactPersons>
            <name>Иван Иванович</name>
            <save>true</save>
         </contactPersons>
         <contactPersons>
            <name>Петр Петрович</name>
            <save>false</save>
         </contactPersons>
         <phoneNumbers>
            <number>78125556696</number>
            <ext>0123</ext>
            <save>true</save>
         </phoneNumbers>
         <phoneNumbers>
            <number>79112589696</number>
            <save>false</save>
         </phoneNumbers>
      </sender>
      <receiver>
         <counteragentID>1913137</counteragentID>
         <contactIDs>15637945</contactIDs>
         <phoneIDs>19501097</phoneIDs>
      </receiver>
   </members>
   <cargo>
      <freightName>Письмо</freightName>
   </cargo>
   <payment>
      <type>cash</type>
      <primaryPayer>sender</primaryPayer>
   </payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-23 12:23:30"
   },
   "data":{
      "state":"success",
      "requestID":39513160,
      "barcode":"41509460D09051D1600000019"
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-23 12:23:30</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513160</requestID>
      <barcode>41509460D09051D1600000019</barcode>
   </data>
</response>

Example 2

The user is authorizedYes
The user role in transportation processThird party
Delivery termsFrom the terminal of the sender to the address of the receiver
Transportation typeBy truck
HandlingNo
Additional transport requirementsNo
Number of cargo places1
PackagingCardboard box (1)
Additional servicesForwarding of the accompanying documents
PayerReceiver
Additional requirements for receiving the cargo from the client/handing the cargo over to the clientNo

Notes:

  1. See "Directory of additional services"

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"auto"
      },
      "packages":[
         {
            "uid":"0x82750921BC8128924D74F982DD961379",
            "payer":"receiver",
            "count":1
         }
      ],
      "accompanyingDocuments":[
         {
            "action":"send",
            "payer":"receiver"
         }
      ],
      "derival":{
         "produceDate":"2019-12-25",
         "variant":"terminal",
         "terminalID":"119"
      },
      "arrival":{
         "variant":"address",
         "address":{
            "street":"7800000000013290000000000",
            "house":"23",
            "flat":"29",
            "save":true
         },
         "time":{
            "worktimeStart":"12:00",
            "worktimeEnd":"21:00",
            "breakStart":"15:30",
            "breakEnd":"17:30",
            "exactTime":false
         }
      }
   },
   "members":{
      "requester":{
         "role":"third",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1946846,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0x8390b2048d37e0154b845fb22793e865",
            "isAnonym":false,
            "phone":"79555655656",
            "name":"Агроторг",
            "inn":"1234567890",
            "juridicalAddress":{
               "street":"7800000000012300000000000",
               "house":"89",
               "building":"2",
               "flat":"15"
            },
            "save":true
         },
         "contactPersons":[
            {
               "name":"Игорь Васильевич Пушкин",
               "save":true
            },
            {
               "name":"Юлия Петровна Крупская ",
               "save":false
            }
         ],
         "phoneNumbers":[
            {
               "number":"79112121212",
               "save":true
            }
         ]
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.5,
      "width":0.2,
      "height":0.3,
      "totalVolume":1.0,
      "totalWeight":6.0,
      "hazardClass":0,
      "freightName":"Предмет мебели"
   },
   "payment":{
      "type":"noncash",
      "primaryPayer":"receiver"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <inOrder>true</inOrder>
   <delivery>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <packages>
         <uid>0x82750921BC8128924D74F982DD961379</uid>
         <payer>receiver</payer>
         <count>1</count>
      </packages>
      <accompanyingDocuments>
         <action>send</action>
         <payer>receiver</payer>
      </accompanyingDocuments>
      <derival>
         <produceDate>2019-12-25</produceDate>
         <variant>terminal</variant>
         <terminalID>119</terminalID>
      </derival>
      <arrival>
         <variant>address</variant>
         <address>
            <street>7800000000013290000000000</street>
            <house>23</house>
            <flat>29</flat>
            <save>true</save>
         </address>
         <time>
            <worktimeStart>12:00</worktimeStart>
            <worktimeEnd>21:00</worktimeEnd>
            <breakStart>15:30</breakStart>
            <breakEnd>17:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>third</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
      </requester>
      <sender>
         <counteragentID>1946846</counteragentID>
         <contactIDs>15636448</contactIDs>
         <phoneIDs>19499468</phoneIDs>
      </sender>
      <receiver>
         <counteragent>
            <form>0x8390b2048d37e0154b845fb22793e865</form>
            <isAnonym>false</isAnonym>
            <phone>79555655656</phone>
            <name>Агроторг</name>
            <inn>1234567890</inn>
            <juridicalAddress>
               <street>7800000000012300000000000</street>
               <house>89</house>
               <building>2</building>
               <flat>15</flat>
            </juridicalAddress>
            <save>true</save>
         </counteragent>
         <contactPersons>
            <name>Игорь Васильевич Пушкин</name>
            <save>true</save>
         </contactPersons>
         <contactPersons>
            <name>Юлия Петровна Крупская </name>
            <save>false</save>
         </contactPersons>
         <phoneNumbers>
            <number>79112121212</number>
            <save>true</save>
         </phoneNumbers>
      </receiver>
   </members>
   <cargo>
      <quantity>1</quantity>
      <length>0.5</length>
      <width>0.2</width>
      <height>0.3</height>
      <totalVolume>1</totalVolume>
      <totalWeight>6</totalWeight>
      <hazardClass>0</hazardClass>
      <freightName>Предмет мебели</freightName>
   </cargo>
   <payment>
      <type>noncash</type>
      <primaryPayer>receiver</primaryPayer>
   </payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-24 15:55:36"
   },
   "data":{
      "state":"success",
      "requestID":39513174,
      "barcode":"41509460D09051D1740000019",
      "addressBook":{
         "receiver":{
            "counteragent":{
               "id":1967093,
               "state":"existing"
            },
            "addresses":[
               {
                  "id":6937047,
                  "state":"existing"
               }
            ],
            "phoneNumbers":[
               {
                  "id":19501333,
                  "state":"existing",
                  "value":"79112121212"
               }
            ],
            "contactPersons":[
               {
                  "id":15638173,
                  "state":"existing",
                  "value":"Игорь Васильевич Пушкин"
               }
            ]
         }
      }
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-24 15:55:36</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513174</requestID>
      <barcode>41509460D09051D1740000019</barcode>
      <addressBook>
         <receiver>
            <counteragent>
               <id>1967093</id>
               <state>existing</state>
            </counteragent>
            <addresses>
               <id>6937047</id>
               <state>existing</state>
            </addresses>
            <phoneNumbers>
               <id>19501333</id>
               <state>existing</state>
               <value>79112121212</value>
            </phoneNumbers>
            <contactPersons>
               <id>15638173</id>
               <state>existing</state>
               <value>Игорь Васильевич Пушкин</value>
            </contactPersons>
         </receiver>
      </addressBook>
   </data>
</response>

Example 3

The user is authorizedYes
The user role in transportation processSender
Delivery termsFrom the terminal of the sender to the terminal of the receiver
Transportation typeAir transportation
Handling-
Additional transport requirements-
Number of cargo places1
PackagingBubble wrap (1)
Additional servicesCargo insurance
PayerReceiver, cash on delivery
Additional requirements for receiving the cargo from the client/handing the cargo over to the clientNo

Notes:

  1. See "Directory of additional services"

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"avia"
      },
      "packages":[
         {
            "uid":"0xB5FF5BC18E642C354556B93D7FBCDE2F",
            "payer":"receiver"
         }
      ],
      "derival":{
         "produceDate":"2019-12-25",
         "variant":"terminal",
         "terminalID":"15"
      },
      "arrival":{
         "variant":"terminal",
         "terminalID":"89"
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1938161,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragentID":1913137,
         "contactPersons":[
            {
               "name":"Игорь Васильевич Пушкин",
               "save":true
            },
            {
               "name":"Юлия Петровна Крупская ",
               "save":false
            }
         ],
         "phoneNumbers":[
            {
               "number":"79112121212",
               "save":true
            }
         ]
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.5,
      "width":0.2,
      "height":0.3,
      "totalVolume":1.0,
      "totalWeight":6.0,
      "hazardClass":0,
      "insurance":{
         "statedValue":35000.00,
         "payer":"receiver",
         "term":false
      },
      "freightName":"Предмет мебели"
   },
   "payment":{
      "cashOnDelivery":[
         {
            "orderNumber":"858596",
            "orderDate":"2019-12-20",
            "paymentType":"cash",
            "products":[
               {
                  "productName":"Пуфик бархатный",
                  "productCode":"7564-2300",
                  "productAmount":"1",
                  "costWithVAT":"41000.00",
                  "VATRate":18
               }
            ]
         }
      ],
      "type":"noncash",
      "primaryPayer":"receiver"
   }
}

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

<request>
	<appkey>00000000-0000-0000-0000-000000000000</appkey>
	<sessionID>00000000-0000-0000-0000-000000000000</sessionID>
	<inOrder>true</inOrder>
	<delivery>
		<deliveryType>
			<type>avia</type>
		</deliveryType>
		<packages>
			<uid>0xB5FF5BC18E642C354556B93D7FBCDE2F</uid>
			<payer>receiver</payer>
		</packages>
		<derival>
			<produceDate>2019-12-25</produceDate>
			<variant>terminal</variant>
			<terminalID>15</terminalID>
		</derival>
		<arrival>
			<variant>terminal</variant>
			<terminalID>89</terminalID>
		</arrival>
	</delivery>
	<members>
		<requester>
			<role>sender</role>
			<uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
		</requester>
		<sender>
			<counteragentID>1938161</counteragentID>
			<contactIDs>15636448</contactIDs>
			<phoneIDs>19499468</phoneIDs>
		</sender>
		<receiver>
			<counteragentID>1913137</counteragentID>
			<contactPersons>
				<name>Игорь Васильевич Пушкин</name>
				<save>true</save>
			</contactPersons>
			<contactPersons>
				<name>Юлия Петровна Крупская </name>
				<save>false</save>
			</contactPersons>
			<phoneNumbers>
				<number>79112121212</number>
				<save>true</save>
			</phoneNumbers>
		</receiver>
	</members>
	<cargo>
		<quantity>1</quantity>
		<length>0.5</length>
		<width>0.2</width>
		<height>0.3</height>
		<totalVolume>1</totalVolume>
		<totalWeight>6</totalWeight>
		<hazardClass>0</hazardClass>
		<insurance>
			<statedValue>35000</statedValue>
			<payer>receiver</payer>
			<term>false</term>
		</insurance>
		<freightName>Предмет мебели</freightName>
	</cargo>
	<payment>
		<cashOnDelivery>
			<orderNumber>858596</orderNumber>
			<orderDate>2019-12-20</orderDate>
			<paymentType>cash</paymentType>
			<products>
				<productName>Пуфик бархатный</productName>
				<productCode>7564-2300</productCode>
				<productAmount>1</productAmount>
				<costWithVAT>41000.00</costWithVAT>
				<VATRate>18</VATRate>
			</products>
		</cashOnDelivery>
		<type>noncash</type>
		<primaryPayer>receiver</primaryPayer>
	</payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-25 14:19:30"
   },
   "data":{
      "state":"success",
      "requestID":39513177,
      "barcode":"41509460D09051D1770000019"
   }
}
<response>
      <status>200</status>
      <generated_at>2019-12-25 14:19:30</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513177</requestID>
      <barcode>41509460D09051D1770000019</barcode>
</response>

Example 4

The user is authorizedYes
The user role in transportation processSender
Delivery termsFrom the terminal of the sender to the terminal of the receiver
Transportation typeBy truck
Handling-
Additional transport requirements-
Number of cargo places1
PackagingBag (1)
Additional servicesNo
PayerReceiver
Additional requirements for receiving the cargo from the client/handing the cargo over to the clientSimplified shipping (2)

Notes:

  1. See "Directory of additional services".
  2. "members.receiver.counteragent.isAnonym" request parameter value is "true", see "Orders for shipping from the personal account". Delovye Linii company allows providing minimum information on the receiver - only name and phone number. In this case SMS with a code is sent to the phone number. The code is used to receive the goods

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"auto"
      },
      "packages":[
         {
            "uid":"0x947845D9BDC69EFA49630D8C080C4FBE",
            "payer":"receiver",
            "count":1
         }
      ],
      "derival":{
         "produceDate":"2019-12-25",
         "variant":"terminal",
         "terminalID":"15"
      },
      "arrival":{
         "variant":"terminal",
         "terminalID":"89"
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1938161,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0xab91feea04f6d4ad48df42161b6c2e7a",
            "isAnonym":true,
            "phone":"79998887766",
            "name":"Иван"
         }
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.5,
      "width":0.2,
      "height":0.3,
      "totalVolume":1.0,
      "totalWeight":6.0,
      "hazardClass":0,
      "freightName":"Предмет мебели"
   },
   "payment":{
      "type":"cash",
      "primaryPayer":"receiver"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <inOrder>true</inOrder>
   <delivery>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <packages>
         <uid>0x947845D9BDC69EFA49630D8C080C4FBE</uid>
         <payer>receiver</payer>
         <count>1</count>
      </packages>
      <derival>
         <produceDate>2019-12-25</produceDate>
         <variant>terminal</variant>
         <terminalID>15</terminalID>
      </derival>
      <arrival>
         <variant>terminal</variant>
         <terminalID>89</terminalID>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>sender</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
      </requester>
      <sender>
         <counteragentID>1938161</counteragentID>
         <contactIDs>15636448</contactIDs>
         <phoneIDs>19499468</phoneIDs>
      </sender>
      <receiver>
         <counteragent>
            <form>0xab91feea04f6d4ad48df42161b6c2e7a</form>
            <isAnonym>true</isAnonym>
            <phone>79998887766</phone>
            <name>Иван</name>
         </counteragent>
      </receiver>
   </members>
   <cargo>
      <quantity>1</quantity>
      <length>0.5</length>
      <width>0.2</width>
      <height>0.3</height>
      <totalVolume>1</totalVolume>
      <totalWeight>6</totalWeight>
      <hazardClass>0</hazardClass>
      <freightName>Предмет мебели</freightName>
   </cargo>
   <payment>
      <type>cash</type>
      <primaryPayer>receiver</primaryPayer>
   </payment>

</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-25 15:06:59"
   },
   "data":{
      "state":"success",
      "requestID":39513179,
      "barcode":"41509460D09051D1790000019"
   }
}
<response>
      <status>200</status>
      <generated_at>2019-12-25 15:06:59</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513179</requestID>
      <barcode>41509460D09051D1790000019</barcode>
</response>

Example 5

The user is authorizedYes
The user role in transportation processSender
Delivery termsFrom the address of the sender to the address of the receiver
Transportation typeAir transportation
HandlingYes
Additional transport requirementsTail lift (lifting platform) (1)
Number of cargo places1
PackagingWooden crate (2)
Additional servicesCargo insurance
PayerSender
Additional requirements for receiving the cargo from the client/handing the cargo over to the clientThe pass is required to enter the premises of the sender (3)

Notes:

  1. See "Directory of special transport requirements".
  2. See "Directory of additional services".
  3. "derival.pickupParams.derivalDriverPass" parameter is passes in the request, see "Orders for shipping from the personal account"

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"avia"
      },
      "packages":[
         {
            "uid":"0xA6A7BD2BF950E67F4B2CF7CC3A97C111",
            "payer":"sender"
         }
      ],
      "derival":{
         "produceDate":"2019-12-27",
         "pickupParams":{
            "derivalDriverPass":1
         },
         "handling":{
            "freightLift":true,
            "toFloor":3,
            "carry":50
         },
         "requirements":[
            "0x92fce2284f000b0241dad7c2e88b1655"
         ],
         "variant":"address",
         "addressID":"6936680",
         "time":{
            "worktimeStart":"09:00",
            "worktimeEnd":"18:00",
            "breakStart":"12:30",
            "breakEnd":"13:30",
            "exactTime":false
         }
      },
      "arrival":{
         "variant":"address",
         "address":{
            "street":"7800000000013290000000000",
            "house":"23",
            "flat":"29",
            "save":true
         },
         "time":{
            "worktimeStart":"12:00",
            "worktimeEnd":"21:00",
            "breakStart":"15:30",
            "breakEnd":"17:30",
            "exactTime":false
         },
         "handling":{
            "freightLift":true,
            "toFloor":3,
            "carry":50
         },
         "requirements":[
            "0x92fce2284f000b0241dad7c2e88b1655"
         ]
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1938161,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0x8390b2048d37e0154b845fb22793e865",
            "isAnonym":false,
            "phone":"79555655656",
            "name":"Агроторг",
            "inn":"1234567890",
            "juridicalAddress":{
               "street":"7800000000012300000000000",
               "house":"89",
               "building":"2",
               "flat":"15"
            },
            "save":true
         },
         "contactPersons":[
            {
               "name":"Игорь Васильевич Пушкин",
               "save":true
            },
            {
               "name":"Юлия Петровна Крупская ",
               "save":false
            }
         ],
         "phoneNumbers":[
            {
               "number":"79112121212",
               "save":true
            }
         ]
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.5,
      "width":0.2,
      "height":0.3,
      "totalVolume":1.0,
      "totalWeight":6.0,
      "hazardClass":0,
      "insurance":{
         "statedValue":35000.00,
         "payer":"sender",
         "term":false
      },
      "freightName":"Предмет мебели"
   },
   "payment":{
      "type":"cash",
      "primaryPayer":"sender"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <inOrder>true</inOrder>
   <delivery>
      <deliveryType>
         <type>avia</type>
      </deliveryType>
      <packages>
         <uid>0xA6A7BD2BF950E67F4B2CF7CC3A97C111</uid>
         <payer>sender</payer>
      </packages>
      <derival>
         <produceDate>2019-12-27</produceDate>
         <pickupParams>
            <derivalDriverPass>1</derivalDriverPass>
         </pickupParams>
         <handling>
            <freightLift>true</freightLift>
            <toFloor>3</toFloor>
            <carry>50</carry>
         </handling>
         <requirements>0x92fce2284f000b0241dad7c2e88b1655</requirements>
         <variant>address</variant>
         <addressID>6936680</addressID>
         <time>
            <worktimeStart>09:00</worktimeStart>
            <worktimeEnd>18:00</worktimeEnd>
            <breakStart>12:30</breakStart>
            <breakEnd>13:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
      </derival>
      <arrival>
         <variant>address</variant>
         <address>
            <street>7800000000013290000000000</street>
            <house>23</house>
            <flat>29</flat>
            <save>true</save>
         </address>
         <time>
            <worktimeStart>12:00</worktimeStart>
            <worktimeEnd>21:00</worktimeEnd>
            <breakStart>15:30</breakStart>
            <breakEnd>17:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
         <handling>
            <freightLift>true</freightLift>
            <toFloor>3</toFloor>
            <carry>50</carry>
         </handling>
         <requirements>0x92fce2284f000b0241dad7c2e88b1655</requirements>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>sender</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
      </requester>
      <sender>
         <counteragentID>1938161</counteragentID>
         <contactIDs>15636448</contactIDs>
         <phoneIDs>19499468</phoneIDs>
      </sender>
      <receiver>
         <counteragent>
            <form>0x8390b2048d37e0154b845fb22793e865</form>
            <isAnonym>false</isAnonym>
            <phone>79555655656</phone>
            <name>Агроторг</name>
            <inn>1234567890</inn>
            <juridicalAddress>
               <street>7800000000012300000000000</street>
               <house>89</house>
               <building>2</building>
               <flat>15</flat>
            </juridicalAddress>
            <save>true</save>
         </counteragent>
         <contactPersons>
            <name>Игорь Васильевич Пушкин</name>
            <save>true</save>
         </contactPersons>
         <contactPersons>
            <name>Юлия Петровна Крупская </name>
            <save>false</save>
         </contactPersons>
         <phoneNumbers>
            <number>79112121212</number>
            <save>true</save>
         </phoneNumbers>
      </receiver>
   </members>
   <cargo>
      <quantity>1</quantity>
      <length>0.5</length>
      <width>0.2</width>
      <height>0.3</height>
      <totalVolume>1</totalVolume>
      <totalWeight>6</totalWeight>
      <hazardClass>0</hazardClass>
      <insurance>
         <statedValue>35000</statedValue>
         <payer>sender</payer>
         <term>false</term>
      </insurance>
      <freightName>Предмет мебели</freightName>
   </cargo>
   <payment>
      <type>cash</type>
      <primaryPayer>sender</primaryPayer>
   </payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-25 18:56:26"
   },
   "data":{
      "state":"success",
      "requestID":39513183,
      "addressBook":{
         "receiver":{
            "counteragent":{
               "id":1967093,
               "state":"existing"
            },
            "addresses":[
               {
                  "id":6937047,
                  "state":"existing"
               }
            ],
            "phoneNumbers":[
               {
                  "id":19501333,
                  "state":"existing",
                  "value":"79112121212"
               }
            ],
            "contactPersons":[
               {
                  "id":15638173,
                  "state":"existing",
                  "value":"Игорь Васильевич Пушкин"
               }
            ]
         }
      }
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-25 18:56:26</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513183</requestID>
      <addressBook>
         <receiver>
            <counteragent>
               <id>1967093</id>
               <state>existing</state>
            </counteragent>
            <addresses>
               <id>6937047</id>
               <state>existing</state>
            </addresses>
            <phoneNumbers>
               <id>19501333</id>
               <state>existing</state>
               <value>79112121212</value>
            </phoneNumbers>
            <contactPersons>
               <id>15638173</id>
               <state>existing</state>
               <value>Игорь Васильевич Пушкин</value>
            </contactPersons>
         </receiver>
      </addressBook>
   </data>
</response>

Example 6

The user is authorizedYes
The user role in transportation processThird party
Delivery termsFrom the address of the sender to the address of the receiver
Transportation typeSmall cargo transportation (1)
HandlingNo
Additional transport requirementsNo
Number of cargo places1
PackagingCardboard box (2)
Additional servicesNo
PayerReceiver
Additional requirements for receiving the cargo from the client/handing the cargo over to the client

It is necessary to give a sender a notify call an hour before the arrival of the forwarding driver (3)


To receive the goods from the sender the forwarding driver must indicate the shipment number (4)


To receive the goods from the sender the forwarding driver must show the passport (5)

Notes:

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

  2. See "Directory of additional services".
  3. "derival.pickupParams.priorCall" request parameter value is "true", see "Orders for shipping from the personal account".
  4. "derival.pickupParams.shipmentDerival" is passed in the request, see "Orders for shipping from the personal account".
  5. The UID of the passport (see "Documents for receipt of cargo" directory) is passed as the value of "Derval.pickupParams.documentsForReceive" request parameter (see "Orders for shipping from the personal account")

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"small"
      },
      "packages":[
         {
            "uid":"0x82750921BC8128924D74F982DD961379",
            "payer":"receiver",
            "count":1
         }
      ],
      "derival":{
         "produceDate":"2019-12-27",
         "pickupParams":{
            "shipmentDerival":"АБ1000222",
            "priorCall":true,
            "documentsForReceive":[
               "0xba3a669e1ea63f7443622bd0c9c83a80"
            ]
         },
         "variant":"address",
         "addressID":"6936680",
         "time":{
            "worktimeStart":"09:00",
            "worktimeEnd":"23:00",
            "breakStart":"12:30",
            "breakEnd":"13:30",
            "exactTime":false
         }
      },
      "arrival":{
         "variant":"address",
         "address":{
            "street":"7800000000013290000000000",
            "house":"23",
            "flat":"29",
            "save":true
         },
         "time":{
            "worktimeStart":"12:00",
            "worktimeEnd":"21:00",
            "breakStart":"15:30",
            "breakEnd":"17:30",
            "exactTime":false
         }
      }
   },
   "members":{
      "requester":{
         "role":"third",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1938161,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0x8390b2048d37e0154b845fb22793e865",
            "isAnonym":false,
            "phone":"79555655656",
            "name":"Агроторг",
            "inn":"1234567890",
            "juridicalAddress":{
               "street":"7800000000012300000000000",
               "house":"89",
               "building":"2",
               "flat":"15"
            },
            "save":true
         },
         "contactPersons":[
            {
               "name":"Игорь Васильевич Пушкин",
               "save":true
            },
            {
               "name":"Юлия Петровна Крупская ",
               "save":false
            }
         ],
         "phoneNumbers":[
            {
               "number":"79112121212",
               "save":true
            }
         ]
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.2,
      "width":0.1,
      "height":0.09,
      "totalVolume":0.1,
      "totalWeight":6.0,
      "hazardClass":0,
      "freightName":"Предмет мебели"
   },
   "payment":{
      "type":"cash",
      "primaryPayer":"receiver"
   }
}

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

<request>
	<appkey>00000000-0000-0000-0000-000000000000</appkey>
	<sessionID>00000000-0000-0000-0000-000000000000</sessionID>
	<inOrder>true</inOrder>
	<delivery>
		<deliveryType>
			<type>small</type>
		</deliveryType>
		<packages>
			<uid>0x82750921BC8128924D74F982DD961379</uid>
			<payer>receiver</payer>
			<count>1</count>
		</packages>
		<derival>
			<produceDate>2019-12-27</produceDate>
			<pickupParams>
				<shipmentDerival>АБ1000222</shipmentDerival>
				<priorCall>true</priorCall>
				<documentsForReceive>0xba3a669e1ea63f7443622bd0c9c83a80</documentsForReceive>
			</pickupParams>
			<variant>address</variant>
			<addressID>6936680</addressID>
			<time>
				<worktimeStart>09:00</worktimeStart>
				<worktimeEnd>23:00</worktimeEnd>
				<breakStart>12:30</breakStart>
				<breakEnd>13:30</breakEnd>
				<exactTime>false</exactTime>
			</time>
		</derival>
		<arrival>
			<variant>address</variant>
			<address>
				<street>7800000000013290000000000</street>
				<house>23</house>
				<flat>29</flat>
				<save>true</save>
			</address>
			<time>
				<worktimeStart>12:00</worktimeStart>
				<worktimeEnd>21:00</worktimeEnd>
				<breakStart>15:30</breakStart>
				<breakEnd>17:30</breakEnd>
				<exactTime>false</exactTime>
			</time>
		</arrival>
	</delivery>
	<members>
		<requester>
			<role>third</role>
			<uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
		</requester>
		<sender>
			<counteragentID>1938161</counteragentID>
			<contactIDs>15636448</contactIDs>
			<phoneIDs>19499468</phoneIDs>
		</sender>
		<receiver>
			<counteragent>
				<form>0x8390b2048d37e0154b845fb22793e865</form>
				<isAnonym>false</isAnonym>
				<phone>79555655656</phone>
				<name>Агроторг</name>
				<inn>1234567890</inn>
				<juridicalAddress>
					<street>7800000000012300000000000</street>
					<house>89</house>
					<building>2</building>
					<flat>15</flat>
				</juridicalAddress>
				<save>true</save>
			</counteragent>
			<contactPersons>
				<name>Игорь Васильевич Пушкин</name>
				<save>true</save>
			</contactPersons>
			<contactPersons>
				<name>Юлия Петровна Крупская </name>
				<save>false</save>
			</contactPersons>
			<phoneNumbers>
				<number>79112121212</number>
				<save>true</save>
			</phoneNumbers>
		</receiver>
	</members>
	<cargo>
		<quantity>1</quantity>
		<length>0.2</length>
		<width>0.1</width>
		<height>0.09</height>
		<totalVolume>0.1</totalVolume>
		<totalWeight>6</totalWeight>
		<hazardClass>0</hazardClass>
		<freightName>Предмет мебели</freightName>
	</cargo>
	<payment>
		<type>cash</type>
		<primaryPayer>receiver</primaryPayer>
	</payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-27 11:45:20"
   },
   "data":{
      "state":"success",
      "requestID":39513185,
      "addressBook":{
         "receiver":{
            "counteragent":{
               "id":1967093,
               "state":"existing"
            },
            "addresses":[
               {
                  "id":6937047,
                  "state":"existing"
               }
            ],
            "phoneNumbers":[
               {
                  "id":19501333,
                  "state":"existing",
                  "value":"79112121212"
               }
            ],
            "contactPersons":[
               {
                  "id":15638173,
                  "state":"existing",
                  "value":"Игорь Васильевич Пушкин"
               }
            ]
         }
      }
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-27 11:45:20</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513185</requestID>
      <addressBook>
         <receiver>
            <counteragent>
               <id>1967093</id>
               <state>existing</state>
            </counteragent>
            <addresses>
               <id>6937047</id>
               <state>existing</state>
            </addresses>
            <phoneNumbers>
               <id>19501333</id>
               <state>existing</state>
               <value>79112121212</value>
            </phoneNumbers>
            <contactPersons>
               <id>15638173</id>
               <state>existing</state>
               <value>Игорь Васильевич Пушкин</value>
            </contactPersons>
         </receiver>
      </addressBook>
   </data>
</response>

Example 7

The user is authorizedNo
The user role in transportation processSender
Delivery termsFrom the address of the sender to the address of the receiver
Transportation typeBy truck
HandlingNo
Additional transport requirementsNo
Number of cargo places1
PackagingAdditional packaging (1)
Additional servicesNo
PayerReceiver
Additional requirements for receiving the cargo from the client/handing the cargo over to the client

The driver must visit two addresses while picking up the cargo

Notes:

  1. See "Directory of additional services"

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "delivery":{
      "deliveryType":{
         "type":"auto"
      },
      "packages":[
         {
            "uid":"0xAE2EEA993230333043E719D4965D5D31",
            "payer":"receiver",
            "count":1
         }
      ],
      "derival":{
         "produceDate":"2020-01-10",
         "variant":"address",
         "address":{
            "street":"7800000000028170000000000",
            "house":"4",
            "flat":"214а"
         },
         "additionalAddress":{
            "address":{
               "street":"7800000002900140000000000",
               "house":"15",
               "building":"3",
               "structure":"л. А",
               "flat":"85"
            }
         },
         "time":{
            "worktimeStart":"09:00",
            "worktimeEnd":"23:00",
            "breakStart":"12:30",
            "breakEnd":"13:30",
            "exactTime":false
         }
      },
      "arrival":{
         "variant":"terminal",
         "terminalID":"89"
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50",
         "email":"example@mail.ru"
      },
      "sender":{
         "counteragent":{
            "form":"0x8390b2048d37e0154b845fb22793e865",
            "isAnonym":false,
            "phone":"79856662323",
            "name":"Металпроект",
            "inn":"1234567890",
            "juridicalAddress":{
               "street":"7800000000013270000000000",
               "house":"59",
               "flat":"485"
            }
         },
         "contactPersons":[
            {
               "name":"Игорь Иванович Птушкин",
               "save":true
            }
         ],
         "phoneNumbers":[
            {
               "number":"79115855656",
               "save":true
            }
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0x8390b2048d37e0154b845fb22793e865",
            "isAnonym":false,
            "phone":"79555655656",
            "name":"Агроторг",
            "inn":"1234567890",
            "juridicalAddress":{
               "street":"7800000000012300000000000",
               "house":"89",
               "building":"2",
               "flat":"15"
            },
            "save":true
         },
         "contactPersons":[
            {
               "name":"Игорь Васильевич Пушкин",
               "save":true
            }
         ],
         "phoneNumbers":[
            {
               "number":"79112121212",
               "save":true
            }
         ]
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.5,
      "width":0.2,
      "height":0.3,
      "totalVolume":1.0,
      "totalWeight":6.0,
      "hazardClass":0,
      "freightName":"Предмет мебели"
   },
   "payment":{
      "type":"noncash",
      "primaryPayer":"receiver"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <delivery>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <packages>
         <uid>0xAE2EEA993230333043E719D4965D5D31</uid>
         <payer>receiver</payer>
         <count>1</count>
      </packages>
      <derival>
         <produceDate>2020-01-10</produceDate>
         <variant>address</variant>
         <address>
            <street>7800000000028170000000000</street>
            <house>4</house>
            <flat>214а</flat>
         </address>
         <additionalAddress>
            <address>
               <street>7800000002900140000000000</street>
               <house>15</house>
               <building>3</building>
               <structure>л. А</structure>
               <flat>85</flat>
            </address>
         </additionalAddress>
         <time>
            <worktimeStart>09:00</worktimeStart>
            <worktimeEnd>23:00</worktimeEnd>
            <breakStart>12:30</breakStart>
            <breakEnd>13:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
      </derival>
      <arrival>
         <variant>terminal</variant>
         <terminalID>89</terminalID>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>sender</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
         <email>example@mail.ru</email>
      </requester>
      <sender>
         <counteragent>
            <form>0x8390b2048d37e0154b845fb22793e865</form>
            <isAnonym>false</isAnonym>
            <phone>79856662323</phone>
            <name>Металпроект</name>
            <inn>1234567890</inn>
            <juridicalAddress>
               <street>7800000000013270000000000</street>
               <house>59</house>
               <flat>485</flat>
            </juridicalAddress>
         </counteragent>
         <contactPersons>
            <name>Игорь Иванович Птушкин</name>
            <save>true</save>
         </contactPersons>
         <phoneNumbers>
            <number>79115855656</number>
            <save>true</save>
         </phoneNumbers>
      </sender>
      <receiver>
         <counteragent>
            <form>0x8390b2048d37e0154b845fb22793e865</form>
            <isAnonym>false</isAnonym>
            <phone>79555655656</phone>
            <name>Агроторг</name>
            <inn>1234567890</inn>
            <juridicalAddress>
               <street>7800000000012300000000000</street>
               <house>89</house>
               <building>2</building>
               <flat>15</flat>
            </juridicalAddress>
            <save>true</save>
         </counteragent>
         <contactPersons>
            <name>Игорь Васильевич Пушкин</name>
            <save>true</save>
         </contactPersons>
         <phoneNumbers>
            <number>79112121212</number>
            <save>true</save>
         </phoneNumbers>
      </receiver>
   </members>
   <cargo>
      <quantity>1</quantity>
      <length>0.5</length>
      <width>0.2</width>
      <height>0.3</height>
      <totalVolume>1</totalVolume>
      <totalWeight>6</totalWeight>
      <hazardClass>0</hazardClass>
      <freightName>Предмет мебели</freightName>
   </cargo>
   <payment>
      <type>noncash</type>
      <primaryPayer>receiver</primaryPayer>
   </payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-31 11:49:59"
   },
   "data":{
      "state":"success",
      "requestID":39513201
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-31 11:49:59</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513201</requestID>
   </data>
</response>

Example 8

The user is authorizedYes
The user role in transportation processSender
Delivery termsFrom the address of the sender to the address of the receiver
Transportation typeExpress shipping
HandlingYes
Additional transport requirementsCrane (1)
Number of cargo places1
PackagingBag (2)
Additional servicesNo
PayerReceiver
Additional requirements for receiving the cargo from the client/handing the cargo over to the client

Simplified shipping (3)

Notes:

  1. See "Directory of special transport requirements".
  2. See "Directory of additional services".
  3. "members.receiver.counteragent.isAnonym" request parameter value is "true", see "Orders for shipping from the personal account". Delovye Linii company allows providing minimum information on the receiver - only name and phone number. In this case SMS with a code is sent to the phone number. The code is used to receive the goods

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"express"
      },
      "packages":[
         {
            "uid":"0x947845D9BDC69EFA49630D8C080C4FBE",
            "payer":"receiver",
            "count":1
         }
      ],
      "derival":{
         "produceDate":"2019-12-30",
         "pickupParams":{
            "shipmentDerival":"АБ1000222",
            "priorCall":true,
            "documentsForReceive":[
               "0xba3a669e1ea63f7443622bd0c9c83a80"
            ]
         },
         "variant":"address",
         "addressID":"6936680",
         "time":{
            "worktimeStart":"09:00",
            "worktimeEnd":"23:00",
            "breakStart":"12:30",
            "breakEnd":"13:30",
            "exactTime":false
         },
         "handling":{
            "freightLift":true,
            "toFloor":10,
            "carry":50
         },
         "requirements":[
            "0x88f93a2c37f106d94ff9f7ada8efe886"
         ]
      },
      "arrival":{
         "variant":"address",
         "address":{
            "street":"7800000000013290000000000",
            "house":"23",
            "flat":"29",
            "save":true
         },
         "time":{
            "worktimeStart":"12:00",
            "worktimeEnd":"21:00",
            "breakStart":"15:30",
            "breakEnd":"17:30",
            "exactTime":false
         },
         "handling":{
            "freightLift":true,
            "toFloor":10,
            "carry":50
         },
         "requirements":[
            "0x88f93a2c37f106d94ff9f7ada8efe886"
         ]
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1938161,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0xab91feea04f6d4ad48df42161b6c2e7a",
            "isAnonym":true,
            "phone":"79998887766",
            "name":"Иван"
         }
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.2,
      "width":0.1,
      "height":0.09,
      "totalVolume":0.1,
      "totalWeight":6.0,
      "hazardClass":0,
      "freightName":"Предмет мебели"
   },
   "payment":{
      "type":"cash",
      "primaryPayer":"receiver"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <inOrder>true</inOrder>
   <delivery>
      <deliveryType>
         <type>express</type>
      </deliveryType>
      <packages>
         <uid>0x947845D9BDC69EFA49630D8C080C4FBE</uid>
         <payer>receiver</payer>
         <count>1</count>
      </packages>
      <derival>
         <produceDate>2019-12-30</produceDate>
         <pickupParams>
            <shipmentDerival>АБ1000222</shipmentDerival>
            <priorCall>true</priorCall>
            <documentsForReceive>0xba3a669e1ea63f7443622bd0c9c83a80</documentsForReceive>
         </pickupParams>
         <variant>address</variant>
         <addressID>6936680</addressID>
         <time>
            <worktimeStart>09:00</worktimeStart>
            <worktimeEnd>23:00</worktimeEnd>
            <breakStart>12:30</breakStart>
            <breakEnd>13:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
         <handling>
            <freightLift>true</freightLift>
            <toFloor>10</toFloor>
            <carry>50</carry>
         </handling>
         <requirements>0x88f93a2c37f106d94ff9f7ada8efe886</requirements>
      </derival>
      <arrival>
         <variant>address</variant>
         <address>
            <street>7800000000013290000000000</street>
            <house>23</house>
            <flat>29</flat>
            <save>true</save>
         </address>
         <time>
            <worktimeStart>12:00</worktimeStart>
            <worktimeEnd>21:00</worktimeEnd>
            <breakStart>15:30</breakStart>
            <breakEnd>17:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
         <handling>
            <freightLift>true</freightLift>
            <toFloor>10</toFloor>
            <carry>50</carry>
         </handling>
         <requirements>0x88f93a2c37f106d94ff9f7ada8efe886</requirements>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>sender</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
      </requester>
      <sender>
         <counteragentID>1938161</counteragentID>
         <contactIDs>15636448</contactIDs>
         <phoneIDs>19499468</phoneIDs>
      </sender>
      <receiver>
         <counteragent>
            <form>0xab91feea04f6d4ad48df42161b6c2e7a</form>
            <isAnonym>true</isAnonym>
            <phone>79998887766</phone>
            <name>Иван</name>
         </counteragent>
      </receiver>
   </members>
   <cargo>
      <quantity>1</quantity>
      <length>0.2</length>
      <width>0.1</width>
      <height>0.09</height>
      <totalVolume>0.1</totalVolume>
      <totalWeight>6</totalWeight>
      <hazardClass>0</hazardClass>
      <freightName>Предмет мебели</freightName>
   </cargo>
   <payment>
      <type>cash</type>
      <primaryPayer>receiver</primaryPayer>
   </payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-27 19:24:25"
   },
   "data":{
      "state":"success",
      "requestID":39513189
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-27 19:24:25</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513189</requestID>
   </data>
</response>

Example 9

The user is authorizedYes
The user role in transportation processSender
Delivery terms

From the address of the sender to the terminal of the receiver

Transportation typeBy truck
HandlingYes
Additional transport requirementsCrane (1)
Number of cargo places1
PackagingCardboard box (2)
Additional services

No

PayerReceiver, cash on delivery
Additional requirements for receiving the cargo from the client/handing the cargo over to the client

No

Notes:

  1. See "Directory of special transport requirements".
  2. See "Directory of additional services"

Request

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

{
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "inOrder":true,
   "delivery":{
      "deliveryType":{
         "type":"auto"
      },
      "packages":[
         {
            "uid":"0x82750921BC8128924D74F982DD961379",
            "payer":"receiver",
            "count":1
         }
      ],
      "derival":{
         "produceDate":"2020-01-10",
         "variant":"address",
         "addressID":"6936680",
         "time":{
            "worktimeStart":"09:00",
            "worktimeEnd":"23:00",
            "breakStart":"12:30",
            "breakEnd":"13:30",
            "exactTime":false
         }
      },
      "arrival":{
         "variant":"terminal",
         "terminalID":"89"
      }
   },
   "members":{
      "requester":{
         "role":"sender",
         "uid":"786ed0ca-3c19-11e1-81e8-00215e563c50"
      },
      "sender":{
         "counteragentID":1938161,
         "contactIDs":[
            "15636448"
         ],
         "phoneIDs":[
            "19499468"
         ]
      },
      "receiver":{
         "counteragent":{
            "form":"0x8390b2048d37e0154b845fb22793e865",
            "isAnonym":false,
            "phone":"79555655656",
            "name":"Агроторг",
            "inn":"1234567890",
            "juridicalAddress":{
               "street":"7800000000012300000000000",
               "house":"89",
               "building":"2",
               "flat":"15"
            },
            "save":true
         },
         "contactPersons":[
            {
               "name":"Игорь Васильевич Пушкин",
               "save":true
            },
            {
               "name":"Юлия Петровна Крупская ",
               "save":false
            }
         ],
         "phoneNumbers":[
            {
               "number":"79112121212",
               "save":true
            }
         ]
      }
   },
   "cargo":{
      "quantity":1,
      "length":0.5,
      "width":0.2,
      "height":0.3,
      "totalVolume":1.0,
      "totalWeight":6.0,
      "hazardClass":0,
      "freightName":"Предмет мебели"
   },
   "payment":{
      "cashOnDelivery":[
         {
            "orderNumber":"858596",
            "orderDate":"2019-12-20",
            "paymentType":"cash",
            "products":[
               {
                  "productName":"Пуфик бархатный",
                  "productCode":"7564-2300",
                  "productAmount":"1",
                  "costWithVAT":"41000.00",
                  "VATRate":18
               }
            ]
         }
      ],
      "type":"noncash",
      "primaryPayer":"receiver"
   }
}

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

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionID>00000000-0000-0000-0000-000000000000</sessionID>
   <inOrder>true</inOrder>
   <delivery>
      <deliveryType>
         <type>auto</type>
      </deliveryType>
      <packages>
         <uid>0x82750921BC8128924D74F982DD961379</uid>
         <payer>receiver</payer>
         <count>1</count>
      </packages>
      <derival>
         <produceDate>2020-01-10</produceDate>
         <variant>address</variant>
         <addressID>6936680</addressID>
         <time>
            <worktimeStart>09:00</worktimeStart>
            <worktimeEnd>23:00</worktimeEnd>
            <breakStart>12:30</breakStart>
            <breakEnd>13:30</breakEnd>
            <exactTime>false</exactTime>
         </time>
      </derival>
      <arrival>
         <variant>terminal</variant>
         <terminalID>89</terminalID>
      </arrival>
   </delivery>
   <members>
      <requester>
         <role>sender</role>
         <uid>786ed0ca-3c19-11e1-81e8-00215e563c50</uid>
      </requester>
      <sender>
         <counteragentID>1938161</counteragentID>
         <contactIDs>15636448</contactIDs>
         <phoneIDs>19499468</phoneIDs>
      </sender>
      <receiver>
         <counteragent>
            <form>0x8390b2048d37e0154b845fb22793e865</form>
            <isAnonym>false</isAnonym>
            <phone>79555655656</phone>
            <name>Агроторг</name>
            <inn>1234567890</inn>
            <juridicalAddress>
               <street>7800000000012300000000000</street>
               <house>89</house>
               <building>2</building>
               <flat>15</flat>
            </juridicalAddress>
            <save>true</save>
         </counteragent>
         <contactPersons>
            <name>Игорь Васильевич Пушкин</name>
            <save>true</save>
         </contactPersons>
         <contactPersons>
            <name>Юлия Петровна Крупская </name>
            <save>false</save>
         </contactPersons>
         <phoneNumbers>
            <number>79112121212</number>
            <save>true</save>
         </phoneNumbers>
      </receiver>
   </members>
   <cargo>
      <quantity>1</quantity>
      <length>0.5</length>
      <width>0.2</width>
      <height>0.3</height>
      <totalVolume>1</totalVolume>
      <totalWeight>6</totalWeight>
      <hazardClass>0</hazardClass>
      <freightName>Предмет мебели</freightName>
   </cargo>
   <payment>
      <cashOnDelivery>
         <orderNumber>858596</orderNumber>
         <orderDate>2019-12-20</orderDate>
         <paymentType>cash</paymentType>
         <products>
            <productName>Пуфик бархатный</productName>
            <productCode>7564-2300</productCode>
            <productAmount>1</productAmount>
            <costWithVAT>41000.00</costWithVAT>
            <VATRate>18</VATRate>
         </products>
      </cashOnDelivery>
      <type>noncash</type>
      <primaryPayer>receiver</primaryPayer>
   </payment>
</request>

Response

{
   "metadata":{
      "status":200,
      "generated_at":"2019-12-30 17:31:10"
   },
   "data":{
      "state":"success",
      "requestID":39513200,
      "addressBook":{
         "receiver":{
            "counteragent":{
               "id":1967093,
               "state":"existing"
            }
         }
      }
   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2019-12-30 17:31:10</generated_at>
   </metadata>
   <data>
      <state>success</state>
      <requestID>39513200</requestID>
      <addressBook>
         <receiver>
            <counteragent>
               <id>1967093</id>
               <state>existing</state>
            </counteragent>
         </receiver>
      </addressBook>
   </data>
</response>