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: |
|
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. Example: |
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: |
|
phone |
Type: string Phone number Example: |
|
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: Example: |
|
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 Const: Example: |
|
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 Const: Example: |
|
message |
Type: string Error description Example: |
No longer supported, please use an alternative and newer version.