Courier's estimated time of arrival
Returns a list of points and estimated time of arrival of the courier at the point.
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/points-eta
Service URL
Query parameters
Name |
Description |
claim_id* |
Type: string Claim ID received at the claim creation stage Min length: Max length: |
Headers
Name |
Description |
Accept-Language* |
Type: string Preferred response language. Examples: "en" — English |
Responses
200 OK
Estimating the courier's time of arrival at the points
Body
application/json
{
"id": "741cedf82cd464fa6fa16d87155c636",
"route_points": [
{
"id": 1,
"address": {
"fullname": "One Central Building 5, Trade Center Second, Dubai",
"shortname": "One Central Building 5, Trade Center Second",
"coordinates": [
0
],
"country": "UAE",
"city": "Dubai",
"building_name": "Dubai",
"street": "Trade Center Second",
"building": "building number",
"porch": "A",
"sfloor": "1",
"sflat": "1",
"door_code": "169",
"door_code_extra": "courtyard entrance code #1234, apartment code #4321",
"doorbell_name": "Magidovich",
"comment": "The intercom doesn't work",
"uri": "ymapsbm1://geo?ll=38.805%2C55.084",
"description": "Yango Dubai Office, One Central Building 5, Trade Center Second, Dubai"
},
"type": "source",
"visit_order": 1,
"visit_status": "pending",
"visited_at": {
"expected": "2022-12-29T18:02:01Z",
"expected_waiting_time_sec": 0,
"actual": "2022-12-29T18:02:01Z"
}
}
],
"performer_position": [
52.569089,
39.60258
]
}
Name |
Description |
id* |
Type: string Claim ID Example: Min length: Max length: |
route_points* |
Type: PointWithEta[] Route points with an estimated time of arrival of the courier. |
performer_position |
Type: number[] Courier location for which the ETA was calculated Example: Min items: Max items: |
PointWithEta
Name |
Description |
address* |
Type: CargoPointAddress Point address |
id* |
Type: integer<int64> Integer point ID (int64) Example: |
type* |
Type: PointType Point type:
Example: Enum: |
visit_order* |
Type: integer<int64> The order in which the points are visited (numbering starts with 1) (int64) Example: |
visit_status* |
Type: PointVisitStatus Point visit status:
Example: Enum: |
visited_at* |
Type: PointVisitTime Estimating the time of arrival |
CargoPointAddress
Point address
Name |
Description |
fullname* |
Type: string Full address with an indication of the city, street, and house number. Example: |
building |
Type: string Building Example: |
building_name |
Type: string Apartment building name Example: |
city |
Type: string City Example: |
comment |
Type: string Comment for the courier. Example: Max length: |
coordinates |
Type: number[] Coordinates of points in the form of an array of two real numbers: longitude and latitude — exactly in that order. Min items: Max items: |
country |
Type: string Country Example: |
description |
Type: string A geographic area that turns a short address into a global match Example: |
door_code |
Type: string Intercom code Example: |
door_code_extra |
Type: string Additional instructions for intercoms Example: |
doorbell_name |
Type: string Name on the doorbell Example: |
porch |
Type: string Entrance (may be A) Example: |
sflat |
Type: string Flat Example: |
sfloor |
Type: string Floor Example: |
shortname |
Type: string Short address within the city (like on a Taximeter) Example: |
street |
Type: string Street Example: |
uri |
Type: string URI of the geo object on maps Example: |
PointType
Point type:
- source: the point of departure where the courier picks up the item
- destination: destination points where the courier delivers the items
- return: item return point (added automatically and matches the point of departure by default, but a different point can also be selected)
Type |
Description |
Example: Enum: |
PointVisitStatus
Point visit status:
- pending — not yet visited.
- arrived — the courier arrived at the point.
- visited — the courier handed over/picked up the cargo at the point.
- skipped — skipped (if the item wasn't accepted).
Type |
Description |
Example: Enum: |
PointVisitTime
Information about the point visit time
Name |
Description |
actual |
Type: string<date-time> Actual point visit time. |
expected |
Type: string<date-time> Estimated time of arrival. Can be filled in only for unvisited points. |
expected_waiting_time_sec |
Type: integer<int64> Estimated waiting time at the point. (int64) |
404 Not Found
Claim not found
Body
application/json
{
"code": "not_found",
"message": "Claim not found"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |
409 Conflict
Possible reasons for the error:
— Claim is inactive.
— There's no executor yet.
— Couldn't detect the courier's location.
Body
application/json
{
"code": "inappropriate_status",
"message": "Invalid action regarding the claim"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |
429 Too Many Requests
Too many requests
Body
application/json
{
"code": "too_many_requests",
"message": "Too many requests"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |
No longer supported, please use an alternative and newer version.