# プロモーションコードを検証する コードがプロモーションコードであるかクーポンコードであるか、およびユーザーがそれを適用できるかどうかを決定します。 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)