Confirm delivery

Returns the data confirming delivery.
The response may contain IDs of points on the route, photos taken by the courier at those points, and recipient names

Request

POST

b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/proof-of-delivery/info

Service URL

Query parameters

Name

Description

claim_id

Type: string

Claim ID received at the claim creation stage

Min length: 32

Max length: 64

Example: ``

Headers

Name

Description

Accept-Language

Type: string

Preferred response language. Examples: "en" — English

Example: en

Responses

200 OK

OK

Body

application/json
{
  "proof_of_delivery_info": [
    {
      "claim_point_id": 372036854775807,
      "photos": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "claim_point_id": null,
          "url": "example",
          "status": "initiated",
          "external_id": "example"
        }
      ],
      "recipient_info": {
        "recipient_name": "example",
        "recipient_type": "example",
        "document_id": "example"
      }
    }
  ]
}

Name

Description

proof_of_delivery_info

Type: ProofOfDeliveryInfo[]

Example
[
  {
    "claim_point_id": 372036854775807,
    "photos": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "claim_point_id": null,
        "url": "example",
        "status": "initiated",
        "external_id": "example"
      }
    ],
    "recipient_info": {
      "recipient_name": "example",
      "recipient_type": "example",
      "document_id": "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

UploadStatusType

Upload status

Type: string

Enum: initiated, uploaded, mds_failed, validated, validation_failed

Photo

Photos confirming the delivery

Name

Description

claim_point_id

Type: ClaimPointId

Indication of where the photo was taken

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.

Example: 372036854775807

id

Type: string<uuid>

Unique photo ID.

Example: 123e4567-e89b-12d3-a456-426614174000

status

Type: UploadStatusType

Upload status

Enum: initiated, uploaded, mds_failed, validated, validation_failed

external_id

Type: string

external ID

Example: example

url

Type: string

URL for uploading photos

Example: example

Example
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "claim_point_id": 372036854775807,
  "url": "example",
  "status": "initiated",
  "external_id": "example"
}

RecipientInfo

Information about the recipient of the item

Name

Description

recipient_name

Type: string

Name of the recipient

Example: example

recipient_type

Type: string

What's the relationship between the real recipient and the recipient specified in the claim

Example: example

document_id

Type: string

Number of the document confirming the delivery

Example: example

Example
{
  "recipient_name": "example",
  "recipient_type": "example",
  "document_id": "example"
}

ProofOfDeliveryInfo

Name

Description

claim_point_id

Type: 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.

Example: 372036854775807

photos

Type: Photo[]

Example
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "claim_point_id": 372036854775807,
    "url": "example",
    "status": "initiated",
    "external_id": "example"
  }
]

recipient_info

Type: RecipientInfo

Information about the recipient of the item

Example
{
  "recipient_name": "example",
  "recipient_type": "example",
  "document_id": "example"
}
Example
{
  "claim_point_id": 372036854775807,
  "photos": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "claim_point_id": null,
      "url": "example",
      "status": "initiated",
      "external_id": "example"
    }
  ],
  "recipient_info": {
    "recipient_name": "example",
    "recipient_type": "example",
    "document_id": "example"
  }
}

404 Not Found

Claim or claim information not found

Body

application/json
{
  "code": "not_found",
  "message": "Claim not found"
}

Name

Description

code

Type: string

Error code

Const: not_found

Example: not_found

message

Type: string

Error description

Example: Claim not found

No longer supported, please use an alternative and newer version.