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

Example: en

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: 741cedf82cd464fa6fa16d87155c636

Min length: 32

Max length: 64

claim_point_id*

Type: integer<int64>

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

Example: 372036854775807

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

id*

Type: string<uuid>

Unique photo ID.

status*

Type: UploadStatusType

Upload status

Enum: initiated, uploaded, mds_failed, validated, validation_failed

external_id

Type: string

external ID

url

Type: string

URL for uploading photos

UploadStatusType

Upload status

Type

Description

UploadStatusType

Enum: initiated, uploaded, mds_failed, validated, validation_failed

400 Bad Request

Out-of-claim point

Body

application/json
{
    "code": "inappropriate_point",
    "message": "string"
}

Name

Description

code*

Type: string

Error code

Example: inappropriate_point

Enum: inappropriate_point

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

Enum: claim_point_not_ready, not_found, photos_not_found

message*

Type: string

Error description