Get the editing result after confirmation
The method returns a response about the status of changes requested via the method claims/apply-changes/request.
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/apply-changes/result
Service URL
Query parameters
|
Name |
Description |
|
claim_id |
Type: string Claim ID received at the claim creation stage Min length: Max length: Example: `` |
|
request_id |
Type: string Unique edit request ID (idempotency token) Min length: Max length: Example: `` |
Headers
|
Name |
Description |
|
Accept-Language |
Type: string Preferred response language. Examples: "en" — English Example: |
Responses
200 OK
OK
Body
application/json
{
"changes": [
{
"id": 0,
"kind": "example",
"status": "new",
"error": {
"code": "apply_change_error",
"message": "State mismatch error",
"details": "bad item at pos 2"
}
}
]
}
|
Name |
Description |
|
changes |
Type: ChangeResponse[] Example
|
ChangeStatus
Change processing status
Type: string
Enum: new, pending, applied, failed
ErrorWithDetails
Error information
|
Name |
Description |
|
code |
Type: string Error code Enum: |
|
message |
Type: string Error description Example: |
|
details |
Type: string Non-localized error message Example: |
Example
{
"code": "apply_change_error",
"message": "State mismatch error",
"details": "bad item at pos 2"
}
ChangeResponse
|
Name |
Description |
|
id |
Type: integer Unique change ID (int64) |
|
kind |
Type: string Change type Example: |
|
status |
Type: ChangeStatus Change processing status Enum: |
|
error |
Type: ErrorWithDetails Error description (for the failed status) Error information Example
|
Example
{
"id": 0,
"kind": "example",
"status": "new",
"error": {
"code": "apply_change_error",
"message": "State mismatch error",
"details": "bad item at pos 2"
}
}
404 Not Found
Change 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: |
No longer supported, please use an alternative and newer version.