# コードのプロモーションコード制限を取得する コードの残り使用可能回数を取得します。コードのフィルタリングには、codesクエリパラメータを使用します。 コードの上限を設定するには、管理セクションに移動します: * プロモーションコード Endpoint: GET /v2/project/{project_id}/admin/code/limit/promocode/external_id/{external_id} Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横にあります。 Example: 44056 - `external_id` (integer, required) プロモーションexternal ID。プロジェクト内での一意のプロモーション識別子。 Example: "coupon_44056_1" ## Query parameters: - `codes[]` (array) 大文字と小文字を区別する一意のコード。文字と数字のみを含めてください。 - `limit` (integer) ページでの要素数の制限。 Example: 50 - `offset` (integer) リストが生成される要素番号(カウントは0から始まります)。 ## Response 200 fields (application/json): - `has_more` (boolean) コードを含む別のページが存在する場合。 - `items` (array) - `items.code` (string) 大文字と小文字を区別する一意のコードです。文字と数字が含まれます。 Example: "WINTER2021" - `items.per_code` (object) - `items.per_code.available` (integer) プロモーションコードの残り使用可能回数。 - `items.per_code.reserved` (integer) プロモーションコードの予約回数。 - `items.per_code.total` (integer) プロモーションコードの最大使用回数。 - `items.per_code.used` (integer) プロモーションコードの使用回数。 - `promotion_id` (integer) プロモーションID。プロジェクト内での一意のプロモーション識別子。 - `total_items_count` (number) コードの総数。 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 404 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) - `statusCode` (integer) - `transactionId` (string) ## Response 422 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) - `errorMessageExtended` (array) - `statusCode` (integer)