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: Example: `` |
Headers
|
Name |
Description |
|
Accept-Language |
Type: string Preferred response language. Examples: "en" ā English Example: |
Responses
200 OK
Estimating the courier's time of arrival at the points
Body
application/json
{
"id": "741cedf82cd464fa6fa16d87155c636",
"route_points": [
{
"id": 1,
"address": {
"fullname": "Saint Petersburg, Bol'shaya Monetnaya Street, 1f1A",
"shortname": "Bol'shaya Monetnaya Street, 1f1A",
"coordinates": [
0.5,
0.5
],
"country": "Russia",
"city": "Saint Petersburg",
"building_name": "BC of Bol'shaya Monetnaya",
"street": "Bol'shaya Monetnaya street",
"building": "23f1A",
"porch": "A",
"floor": 1,
"flat": 1,
"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": "Saint Petersburg, Russia"
},
"type": "source",
"visit_order": 1,
"visit_status": "pending",
"visited_at": {
"expected": "2025-01-01T00:00:00Z",
"expected_waiting_time_sec": 0,
"actual": "2025-01-01T00:00:00Z"
}
}
],
"performer_position": [
52.569089,
39.60258
]
}
|
Name |
Description |
|
id |
Type: ClaimId Claim ID Claim ID obtained at the claim creation stage Min length: Max length: Example: |
|
route_points |
Type: PointWithEta[] Route points with an estimated time of arrival of the courier. Example
|
|
performer_position |
Type: PointsEtaPerformerPosition Courier location for which the ETA was calculated Min items: Max items: Example
|
ClaimId
Claim ID obtained at the claim creation stage
Type: string
Min length: 32
Max length: 64
Example: 741cedf82cd464fa6fa16d87155c636
AddressFullname
Full address with an indication of the city, street, and house number.
You don't need to specify the flat, the entrance number, or the floor.
Type: string
Example: Saint Petersburg, Bol'shaya Monetnaya Street, 1f1A
CargoPointAddress
Point address
|
Name |
Description |
|
fullname |
Type: AddressFullname 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. Max length: Example: |
|
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: Example
|
|
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: |
Example
{
"fullname": "Saint Petersburg, Bol'shaya Monetnaya Street, 1f1A",
"shortname": "Bol'shaya Monetnaya Street, 1f1A",
"coordinates": [
0.5,
0.5
],
"country": "Russia",
"city": "Saint Petersburg",
"building_name": "BC of Bol'shaya Monetnaya",
"street": "Bol'shaya Monetnaya street",
"building": "23f1A",
"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": "Saint Petersburg, Russia"
}
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: string
Enum: source, destination, return
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: string
Enum: pending, arrived, visited, skipped
PointVisitTime
Information about the point visit time
|
Name |
Description |
|
actual |
Type: string<date-time> Actual point visit time. Example: |
|
expected |
Type: string<date-time> Estimated time of arrival. Can be filled in only for unvisited points. Example: |
|
expected_waiting_time_sec |
Type: integer Estimated waiting time at the point. (int64) |
Example
{
"expected": "2025-01-01T00:00:00Z",
"expected_waiting_time_sec": 0,
"actual": "2025-01-01T00:00:00Z"
}
PointWithEta
|
Name |
Description |
|
address |
Type: CargoPointAddress Point address Example
|
|
id |
Type: integer Integer point ID (int64) |
|
type |
Type: PointType Point type:
Enum: |
|
visit_order |
Type: integer The order in which the points are visited (numbering starts with 1) (int64) |
|
visit_status |
Type: PointVisitStatus Point visit status:
Enum: |
|
visited_at |
Type: PointVisitTime Estimating the time of arrival Information about the point visit time Example
|
Example
{
"id": 1,
"address": {
"fullname": "Saint Petersburg, Bol'shaya Monetnaya Street, 1f1A",
"shortname": "Bol'shaya Monetnaya Street, 1f1A",
"coordinates": [
0.5,
0.5
],
"country": "Russia",
"city": "Saint Petersburg",
"building_name": "BC of Bol'shaya Monetnaya",
"street": "Bol'shaya Monetnaya street",
"building": "23f1A",
"porch": "A",
"floor": 1,
"flat": 1,
"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": "Saint Petersburg, Russia"
},
"type": "source",
"visit_order": 1,
"visit_status": "pending",
"visited_at": {
"expected": "2025-01-01T00:00:00Z",
"expected_waiting_time_sec": 0,
"actual": "2025-01-01T00:00:00Z"
}
}
PointsEtaPerformerPosition
Type: number[]
Min items: 2
Max items: 2
Example
[
52.569089,
39.60258
]
404 Not Found
Claim not found
Body
application/json
{
"code": "not_found",
"message": "Claim not found"
}
|
Name |
Description |
|
code |
Type: string Error code Const: Example: |
|
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 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 Const: Example: |
|
message |
Type: string Error description Example: |
No longer supported, please use an alternative and newer version.