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": "string",
    "point_id": 372036854775807
}

Name

Description

claim_id*

Type: string

Claim ID received at the claim creation stage

point_id

Type: integer<int64>

ID of the point the contact person wants to call from

Example: 372036854775807

Responses

200 OK

OK

Body

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

Name

Description

ext*

Type: string

Extension number

Example: 0163

phone*

Type: string

Phone number

Example: +97142773333

ttl_seconds*

Type: integer<int64>

Time during which this phone number is operational (int64)

Example: 2088

400 Bad Request

Incorrect phone number

Body

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

Name

Description

code*

Type: string

Error code

Example: invalid_point_phone

Enum: 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

Example: not_found

Enum: 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

Example: inappropriate_status

Enum: inappropriate_status

message*

Type: string

Error description

Example: Invalid action regarding the claim