Courier's phone number

Returns the courier's phone number, who is currently fulfilling the claim.

Request

POST

b2b.taxi.yandex.net/b2b/cargo/integration/v2/driver-voiceforwarding

Service URL

Body

application/json
{
  "claim_id": "example",
  "point_id": 372036854775807
}

Name

Description

claim_id

Type: string

Claim ID received at the claim creation stage

Example: example

point_id

Type: ClaimPointId

ID of the point the contact person wants to call from

Integer point ID (int64) generated on the Yandex Delivery side.
It is in the route_points[].id field. Applicable to source, destination, and return points.

Example: 372036854775807

ClaimPointId

Integer point ID (int64) generated on the Yandex Delivery side.
It is in the route_points[].id field. Applicable to source, destination, and return points.

Type: integer

Responses

200 OK

OK

Body

application/json
{
  "phone": "+79099999998",
  "ext": "0163",
  "ttl_seconds": 2088
}

Name

Description

ext

Type: string

Extension number

Example: 0163

phone

Type: string

Phone number

Example: +79099999998

ttl_seconds

Type: integer

Time during which this phone number is operational (int64)

400 Bad Request

Incorrect phone number

Body

application/json
{
  "code": "invalid_point_phone",
  "message": "Incorrect phone number"
}

Name

Description

code

Type: string

Error code

Const: invalid_point_phone

Example: invalid_point_phone

message

Type: string

Error description

Example: Incorrect phone number

404 Not Found

Claim or order executor not found

Body

application/json
{
  "code": "not_found",
  "message": "Claim not found"
}

Name

Description

code

Type: string

Error code

Const: not_found

Example: not_found

message

Type: string

Error description

Example: Claim not found

409 Conflict

Order completed

Body

application/json
{
  "code": "inappropriate_status",
  "message": "Invalid action regarding the claim"
}

Name

Description

code

Type: string

Error code

Const: inappropriate_status

Example: inappropriate_status

message

Type: string

Error description

Example: Invalid action regarding the claim

No longer supported, please use an alternative and newer version.