# Получение кодов купонов Получает коды купонов. Endpoint: GET /v2/project/{project_id}/admin/coupon/{external_id}/code 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: - `limit` (integer) Лимит количества элементов на странице. Example: 50 - `offset` (integer) Номер элемента, с которого выполняется вывод на странице (нумерация ведется с 0). ## Response 200 fields (application/json): - `codes` (array) - `codes.code` (string) Уникальный код, чувствительный к регистру. Содержит буквы и цифры. Example: "WINTER2021" - `total_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) Example: 4001 - `errorMessage` (string) Example: "[0401-9802]: Coupon not found" - `statusCode` (integer) Example: 404 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x"