Photos from points on the route
Use the method to get temporary links to photos from points on the route.
The method works only for active claims if the points specified in the request correspond to the claim route.
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/photos_by_point
Service URL
Headers
Name |
Description |
Accept-Language* |
Type: string Preferred response language. Examples: "en" — English |
Body
application/json
{
"claim_id": "741cedf82cd464fa6fa16d87155c636",
"claim_point_id": 372036854775807
}
Name |
Description |
claim_id* |
Type: string Claim ID obtained at the claim creation stage Example: Min length: Max length: |
claim_point_id* |
Type: integer<int64> Integer point ID (int64) generated Example: |
Responses
200 OK
Photos at the point
Body
application/json
{
"photos": [
{
"id": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
"claim_point_id": 372036854775807,
"url": "string",
"status": "initiated",
"external_id": "string"
}
]
}
Name |
Description |
photos* |
Type: Photo[] Photos confirming the delivery |
Photo
Photos confirming the delivery
Name |
Description |
claim_point_id* |
Type: integer<int64> Indication of where the photo was taken Example: |
id* |
Type: string<uuid> Unique photo ID. |
status* |
Type: UploadStatusType Upload status Enum: |
external_id |
Type: string external ID |
url |
Type: string URL for uploading photos |
UploadStatusType
Upload status
Type |
Description |
Enum: |
400 Bad Request
Out-of-claim point
Body
application/json
{
"code": "inappropriate_point",
"message": "string"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description |
404 Not Found
Claim or photos not found
Body
application/json
{
"code": "photos_not_found",
"message": "string"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description |