Для AI-агентов: markdown этой страницы — /docs/api-op-listpromocodes.md · индекс документации — /llms.txt
listPromoCodes
Обновлено
GET /api/v1/promo-codes
listPromoCodes
#Авторизация и права
Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.
| Поле | Значение |
|---|
| security.0.hubApiKey | [] |
| security.1.hubBearer | [] |
| securitySchemes.hubApiKey.in | "header" |
| securitySchemes.hubApiKey.name | "X-Api-Key" |
| securitySchemes.hubApiKey.type | "apiKey" |
| securitySchemes.hubBearer.scheme | "bearer" |
| securitySchemes.hubBearer.type | "http" |
| x-required-scopes | ["pricing:write"] |
#Параметры запроса
| Поле | Значение |
|---|
| 0.in | "query" |
| 0.name | "after_id" |
| 0.required | false |
| 0.schema | 0.schema |
| 1.in | "query" |
| 1.name | "limit" |
| 1.required | false |
| 1.schema | 1.schema |
#Тело запроса
| Поле | Значение |
|---|
| Тело запроса | null |
#Ответы
| Поле | Значение |
|---|
| 200.content.application/json.schema | PromoCodesResult |
| 200.description | "Promo codes, paginated by after_id." |
#Ошибки
| Поле | Значение |
|---|
| 400.content.application/problem+json.schema | ProblemDetails |
| 400.description | "A strict body, path or query is rejected" |
| 401.content.application/problem+json.schema | ProblemDetails |
| 401.description | "Missing, invalid, expired or revoked authentication" |
| 403.content.application/problem+json.schema | ProblemDetails |
| 403.description | "Missing scope, or a credential that names no actor (FORBIDDEN)" |
| 404.content.application/problem+json.schema | ProblemDetails |
| 404.description | "The addressed object is not in this business" |
| 409.content.application/problem+json.schema | ProblemDetails |
| 409.description | "A conflict with the current state" |
| 422.content.application/problem+json.schema | ProblemDetails |
| 422.description | "A domain refusal with its own code" |
| 429.content.application/problem+json.schema | ProblemDetails |
| 429.description | "Per-tool rate limit exceeded" |
| 500.content.application/problem+json.schema | ProblemDetails |
| 500.description | "Unexpected failure" |
#Дополнительные условия
| Поле | Значение |
|---|
| description | "Promo codes, paginated by after_id." |
| operationId | "listPromoCodes" |
| tags | ["pricing"] |
| x-idempotency | "none" |