Confirmation code
The method returns a confirmation code at the current point (if the code is available).
Request
POST
b2b.taxi.yandex.net/b2b/cargo/integration/v2/claims/confirmation_code
Service URL
Headers
Name |
Description |
Accept-Language* |
Type: string Preferred response language. Examples: "en" — English |
Body
application/json
{
"claim_id": "741cedf82cd464fa6fa16d87155c636"
}
Name |
Description |
claim_id* |
Type: string Claim ID obtained at the claim creation stage Example: Min length: Max length: |
Responses
200 OK
OK
Body
application/json
{
"code": "2000",
"attempts": 1
}
Name |
Description |
attempts* |
Type: integer<int64> Number of remaining code entry attempts (int64) Example: |
code* |
Type: string Confirmation code Example: |
404 Not Found
Claim not found or issuing a confirmation code via the API is prohibited.
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: |