Cargo handover intervals
General information
The service allows getting information on available intervals of forwarding driver arrival to the sender/receiver in order to get/hand over the cargo. Unauthorized users can check the available intervals of handing the cargo at sender's address, meanwhile checking the delivere intervals is available only to authorized users.
Intervals of handing the cargo at the sender's address
Method request
Request structure
Method address: https://api.dellin.ru/v2/request/address/time_interval.json
{ "appkey":"00000000-0000-0000-0000-000000000000", "sessionID":"00000000-0000-0000-0000-000000000000", "delivery":{ "deliveryType":{ "type":"auto" }, "derival":{ "produceDate":"2020-06-03", "addressID":3357, "address":{ "search":"Омск, Ленина, 5", "street":"5500000100005970000000000", "house":"5", "building":"1", "structure":"4", "flat":"1" }, "city":"5500000100000000000000000" } } }
Method address: https://api.dellin.ru/v2/request/address/time_interval.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-06-03</produceDate> <addressID>3357</addressID> <address> <search>Омск, Ленина, 5</search> <street>5500000100005970000000000</street> <house>5</house> <building>1</building> <structure>4</structure> <flat>1</flat> </address> <city>5500000100000000000000000</city> </derival> </request>
Description of parameters
Request
Request | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | Application key. To get the key, register |
sessionID | No | string | To get the session ID, use the "User Authorization" method |
delivery | Yes | object | Information on delivery |
delivery.deliveryType | Yes | DeliveryType | Information on type of terminal-to-terminal shipping |
delivery.derival | Yes | Derival | Information on shipping from sender's the address |
DeliveryType
DeliveryType | |||
---|---|---|---|
Parameter | Required | Type | Description |
type | Yes | string | Shipping type. Possible values:
Small size cargo is the cargo with parameters that do not exceed the following values:
|
Derival
Derival | |||
---|---|---|---|
Parameter | Required | Type | Description |
produceDate | Yes | string | Date of handover of the cargo to the forwarding driver at the sender's address Format: YYYY-MM-DD |
addressID | No* | integer | Address ID from "Address book" *One of the excluding parameters is required: "addressID", "address" or "city" |
address | No* | Address | Address data *One of the excluding parameters is required: "addressID", "address" or "city" |
city | No* | string | City CLADR code. To get CLADR code use the services listed on "CLADR search" page *One of the excluding parameters is required: "addressID", "address" or "city" |
Address
Address | |||
---|---|---|---|
Parameter | Required | Type | Description |
search | No (1) | string | Address as a string. It is possible to pass address as text or as coordintaes. When passing address as a text along with the address it is necessary to pass the name of the city, the address elements should be separated by comma, for example "Омск, Ленина, 5". The coordinates should be separated by comma as well, the first number - latitude "59.924501, 30.241762". Minimum 2 symbols, maximum 1024 (2) |
street | No (1) | string | CLADR* code of the street (see. "CLADR search") (2). *CLADR - Classifier of Addresses of Russian Federation |
house | No (1) | string | House number, including the letter. For example, "13/A" (2). Maximum 7 characters |
building | No | string | Building (2). Maximum 5 characters |
structure | No | string | Structure (2). Maximum 7 characters |
flat | No | string | Apartment/office, including the letter. For example, "222 A" (2). Maximum 5 characters |
Notes:
|
Method response
Response structure
{ "metadata":{ "status":200, "generated_at":"2020-06-03 09:06:54" }, "data":{ "interval_from":"00:00:00", "interval_to":"23:59:00", "default_min_same_day_period":6, "min_same_day_period":2, "min_period":0, "same_day":false, "foundAddresses": [ { "field": "delivery.derival.address", "source": "Омск, Ленина, 5", "result": "Россия, Омская обл, г Омск, ул Ленина, д 5" } ] } }
<response> <metadata> <status>200</status> <generated_at>2020-06-30 06:33:53</generated_at> </metadata> <data> <interval_from>00:00:00</interval_from> <interval_to>23:59:00</interval_to> <default_min_same_day_period>6</default_min_same_day_period> <min_same_day_period>2</min_same_day_period> <min_period>0</min_period> <same_day>false</same_day> <foundAddresses> <field>delivery.derival.address</field> <source>Омск, Ленина, 5</source> <result>Россия, Омская обл, г Омск, ул Ленина, д 5</result> </foundAddresses> </data> </response>
Description of parameters
Response
Response | ||
---|---|---|
Parameter | Type | Description |
metadata | object | System information |
metadata.status | integer | Emulated status http-code. If successful, code 200 is returned |
metadata.generated_at | string | Server response date and time. Format: YYYY-MM-DD HH:MM:SS |
data | object | Data of the interval of cargo handover at the sender/receiver address (the client can indicate at what time the forwarding driver should arrive, the object contains information on the interval parameters) |
data.interval_from | string | Allowable interval start Format: HH:MM:SS |
data.interval_to | string | Allowable interval end Format: HH:MM:SS |
data.default_min_same_day_period | integer | Standard interval duration, in the case the arrival of the driver is scheduled on the day of placing the order, h |
data.min_same_day_period | integer | Minimum interval duration, in the case the arrival of the driver is scheduled on the day of placing the order, h |
data.min_period | integer | Minimum interval duration, h |
data.same_day | boolean | Flag indicating that the arrival of the driver can be scheduled on the day of placing the order |
data.foundAddresses | array of FoundAddresses | Data on found addresses. The parameter is present in the response if "search" parameter of the "Address" class was passed in the request |
FoundAddresses
FoundAddresses | ||
---|---|---|
Parameter | Type | Description |
field | string | The parent object that was used to pass the "search" parameter |
source | string | Entered value |
result | string | Address found |
Error handling
The common API errors are used with the method, for errors format description and errors list see Errors of API methods.
Intervals of handing the cargo at the receiver's address
Method request
Request structure
Method address: https://api.dellin.ru/v2/request_delivery/address/time_interval.json
{ "appkey":"00000000-0000-0000-0000-000000000000", "sessionID":"00000000-0000-0000-0000-000000000000", "docID":"2000085063763", "delivery":{ "arrival":{ "produceDate":"2020-06-03", "addressID":3357, "address":{ "search":"Омск, Ленина, 5", "street":"5500000100005970000000000", "house":"5", "building":"1", "structure":"4", "flat":"1" }, "city":"5500000100000000000000000" } } }
Method address: https://api.dellin.ru/v2/request_delivery/address/time_interval.xml
<request> <appkey>00000000-0000-0000-0000-000000000000</appkey> <sessionID>00000000-0000-0000-0000-000000000000</sessionID> <docID>2000085063763</docID> <delivery> <arrival> <produceDate>2020-06-03</produceDate> <addressID>3357</addressID> <address> <search>Омск, Ленина, 5</search> <street>5500000100005970000000000</street> <house>5</house> <building>1</building> <structure>4</structure> <flat>1</flat> </address> <city>5500000100000000000000000</city> </arrival> </delivery> </request>
Description of parameters
Request
Request | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | Application key. To get the key, register |
sessionID | Yes | string | To get the session ID, use the "User Authorization" method |
docID | Yes | string | Number of order, waybill or order for shipping for which it is necessary to receive the information on possible intervals of delivery to the receiver's address |
delivery | Yes | object | Information on delivery |
delivery.arrival | Yes | Arrival | Information on delivery to the receiver's address |
Arrival
Arrival | |||
---|---|---|---|
Parameter | Required | Type | Description |
produceDate | Yes | string | Date of handover of the cargo to the receiver at his address Format: YYYY-MM-DD |
addressID | No | integer | Address ID from "Address book" Allows getting information on available intervals in case of delivery to the address different from the one indicated in the waybill. Only one of the following parameters can be passed: "addressID", "address" or "city" |
address | No | Address | Address data Allows getting information on available intervals in case of delivery to the address different from the one indicated in the waybill. Only one of the following parameters can be passed: "addressID", "address" or "city" |
city | No | string | City CLADR code. To get CLADR code use the services listed on "CLADR search" page Allows getting information on available intervals in case of delivery to the city different from the one indicated in the waybill. Only one of the following parameters can be passed: "addressID", "address" or "city" |
Address
Address | |||
---|---|---|---|
Parameter | Required | Type | Description |
search | No (1) | string | Address as a string. It is possible to pass address as text or as coordintaes. When passing address as a text along with the address it is necessary to pass the name of the city, the address elements should be separated by comma, for example "Омск, Ленина, 5". The coordinates should be separated by comma as well, the first number - latitude "59.924501, 30.241762". Minimum 2 symbols, maximum 1024 (2) |
street | No (1) | string | CLADR* code of the street (see. "CLADR search") (2). *CLADR - Classifier of Addresses of Russian Federation |
house | No (1) | string | House number, including the letter. For example, "13/A" (2). Maximum 7 characters |
building | No | string | Building (2). Maximum 5 characters |
structure | No | string | Structure (2). Maximum 7 characters |
flat | No | string | Apartment/office, including the letter. For example, "222 A" (2). Maximum 5 characters |
Notes:
|
Method response
Error handling
The common API errors are used with the method, for errors format description and errors list see Errors of API methods.