6.1. Get confirmation code
Returns the confirmation code at the current point (if possible)
HTTP Request
POST b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/confirmation_code
Header Parameters
Accept-Language * | string Preferred language of response. Examples: "ru" — Russian, "en" — English |
Accept-Language * | string Preferred language of response. Examples: "ru" — Russian, "en" — English |
* Required parameter
Request Body
{ "claim_id": string }
Copied to clipboard
Representation
Collapse all
Fields
claim_id * | string Claim ID, received upon creation of claim |
claim_id * | string Claim ID, received upon creation of claim |
* Required parameter
Responses
Code 200
OK
{ "attempts": integer, "code": string }
Copied to clipboard
Representation
Collapse all
Fields
attempts * | integer Number of remaining attempts to enter code (int64) |
code * | string Confirmation code |
* Required parameter
Code 404
Claim not found or confirmation code issuance via API prohibited.
{ "code": string, "message": string }
Copied to clipboard
Representation
Collapse all
Fields
code * | string String error code Allowed values
|
message * | string Human-readable error message |
* Required parameter
Example
Request:
curl -X POST "b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/confirmation_code" \ -H "Accept-Language: {string}" \ -d '{ "claim_id": "741cedf82cd464fa6fa16d87155c636" }'
Copied to clipboard
Responses:
{ "attempts": 1, "code": "2000" }
Copied to clipboard
{ "code": "not_found", "message": "Claim not found" }
Copied to clipboard