Confirm claim
The method confirms if the claim was successfully evaluated. After the claim is confirmed, its status changes to accepted, and the service starts the process of searching for an executor.
The pricing.offer is valid for a limited period of time (10 minutes).
After it expires, the order status changes to failed if an attempt is made to confirm the order.
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/accept
Service URL
Query parameters
Name |
Description |
claim_id* |
Type: string Claim ID received at the claim creation stage Min length: Max length: |
Headers
Name |
Description |
Accept-Language* |
Type: string Preferred response language. Examples: "en" — English |
Body
application/json
{
"version": 1
}
Name |
Description |
version* |
Type: integer<int64> Claim version. Changed after the claim was edited (int64) Example: |
Responses
200 OK
Claim confirmed
Body
application/json
{
"id": "741cedf82cd464fa6fa16d87155c636",
"status": "new",
"version": 1,
"user_request_revision": "string",
"skip_client_notify": false
}
Name |
Description |
id* |
Type: string Claim ID obtained at the claim creation stage Example: Min length: Max length: |
skip_client_notify* |
Type: boolean |
status* |
Type: ClaimStatus Claim status. To learn more, see Status model Example: Enum: |
user_request_revision* |
Type: string The current version of changes in the claim entered by the user |
version* |
Type: integer<int64> Claim version from the request (int64) Example: |
ClaimStatus
Claim status. To learn more, see Status model
Type |
Description |
Example: Enum: |
404 Not Found
Claim 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
Attempting to confirm the claim that wasn't evaluated
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: |
429 Too Many Requests
Too many requests
Body
application/json
{
"code": "too_many_requests",
"message": "Too many requests"
}
Name |
Description |
code* |
Type: string Error code Example: Enum: |
message* |
Type: string Error description Example: |