7.2. Order change log
Returns the history of changes to the claim. You can find out about order status changes and price. For terminal statuses, the resolution field is returned. Possible values are success, failed.
HTTP Request
POST b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/journal
Request Body
{ "cursor": string }
Copied to clipboard
Representation
Fields
cursor | string String with ID of last change received by client. If cursor is not passed, all changes will be issued for this client with a certain limit |
cursor | string String with ID of last change received by client. If cursor is not passed, all changes will be issued for this client with a certain limit |
* Required parameter
Responses
Code 200
OK
{ "cursor": string, "events": [ { "change_type": string, "claim_id": string, "claim_origin": string, "client_id": string, "current_point_id": integer, "new_currency": string, "new_price": string, "new_status": string, "operation_id": integer, "resolution": string, "revision": integer, "updated_ts": string } ] }
Copied to clipboard
Representation
Fields
cursor * | string ID of last change |
events[] * | array List of order changes |
events[]. | string Type of change. Possible values: status_changed — status change; price_changed — price change. |
events[]. | string Claim ID claim_id |
events[]. | string Values from ClaimOriginValue |
events[]. | string Client ID |
events[]. | integer The integer ID (int64) of the point generated by Delivery. source, destination, return |
events[]. | string Order currency code |
events[]. | string Order price |
events[]. | string Claim status Allowed values
|
events[]. | integer Operation ID (int64) |
events[]. | string Terminal status resolution Allowed values
|
events[]. | integer Version of the claim changes (int64) |
events[]. | string Event time in ISO 8601 format |
cursor * | string ID of last change |
events[] * | array List of order changes |
events[]. | string Type of change. Possible values: status_changed — status change; price_changed — price change. |
events[]. | string Claim ID claim_id |
events[]. | string Values from ClaimOriginValue |
events[]. | string Client ID |
events[]. | integer The integer ID (int64) of the point generated by Delivery. source, destination, return |
events[]. | string Order currency code |
events[]. | string Order price |
events[]. | string Claim status Allowed values
|
events[]. | integer Operation ID (int64) |
events[]. | string Terminal status resolution Allowed values
|
events[]. | integer Version of the claim changes (int64) |
events[]. | string Event time in ISO 8601 format |
* Required parameter
Code 400
BAD REQUEST
{ "code": string, "message": string }
Copied to clipboard
Representation
Fields
code * | string String error code Allowed values
|
message * | string Human-readable error message |
* Required parameter
Code 429
TOO MANY REQUESTS
{ "code": string, "message": string }
Copied to clipboard
Representation
Fields
code * | string String error code Allowed values
|
message * | string Human-readable error message |
* Required parameter
Example
Responses:
{ "events": [ { "change_type": "status_changed", "claim_id": "3b8d1af142664fde824626a7c19e2bd9", "client_id": "95d010b2471041499b8cb1bfa282692f", "current_point_id": 6987, "new_currency": "RUB", "new_price": "20.00", "new_status": "new", "operation_id": 1, "resolution": "success", "revision": 1, "updated_ts": "2020-01-01T00:00:00+00:00" } ] }
Copied to clipboard
{ "code": "invalid_cursor", "message": "Invalid cursor format" }
Copied to clipboard
{ "code": "too_many_requests", "message": "Too many requests" }
Copied to clipboard