# Подтвердите промокод Определяет, является ли код промокодом или купоном и может ли пользователь его применить. Endpoint: GET /v2/project/{project_id}/promotion/code/{code}/verify Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) ID проекта. Вы можете найти этот параметр в Личном кабинете рядом с названием проекта. Example: 44056 - `code` (string, required) Уникальный код, чувствительный к регистру. Содержит буквы и цифры. Example: "WINTER2021" ## Response 200 fields (application/json): - `code` (string) Уникальный код, чувствительный к регистру. Содержит буквы и цифры. Example: "WINTER2021" - `rewards` (any) - `type` (string) Тип кода: promocode/coupon. ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1501 - `errorMessage` (string) Example: "[0401-1501]: Authorization failed: Provide authorization" - `statusCode` (integer) Example: 401 ## Response 403 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) Example: "Authorization header not sent." - `statusCode` (integer) Example: 403 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 404 fields (application/json): - `errorCode` (integer) Example: 9811 - `errorMessage` (string) Example: "[0401-9811]: Code not found." - `statusCode` (integer) Example: 404 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 422 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) - `statusCode` (integer)