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: |
Responses
200 OK
OK
Body
application/json
{
"phone": "+97142773333",
"ext": "0163",
"ttl_seconds": 2088
}
Name |
Description |
ext* |
Type: string Extension number Example: |
phone* |
Type: string Phone number Example: |
ttl_seconds* |
Type: integer<int64> Time during which this phone number is operational (int64) Example: |
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: Enum: |
message* |
Type: string Error description Example: |
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: Enum: |
message* |
Type: string Error description Example: |
409 Conflict
Order completed
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: |