# REST: pricing

Source: <https://telegafirst.com/docs/api-pricing>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: c382d1a13192e3fb0a13eda645e73db0f2c2a0d70aece182022c07e7ff04c5ad
Version: 2

# REST: pricing

Выберите операцию: полный контракт доступен по ссылке. Scopes: ALL; auth alternatives: OR.

## listPromoCodes

`GET /api/v1/promo-codes` — listPromoCodes

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-listpromocodes)

## createPromoCode

`POST /api/v1/promo-codes` — createPromoCode

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-createpromocode)

## deletePromoCode

`DELETE /api/v1/promo-codes/{id}` — deletePromoCode

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-deletepromocode)

## updatePromoCode

`PATCH /api/v1/promo-codes/{id}` — updatePromoCode

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-updatepromocode)

## pausePromoCode

`PUT /api/v1/promo-codes/{id}/paused` — pausePromoCode

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-pausepromocode)

## restorePromoCodeVersion

`POST /api/v1/promo-codes/{id}/restore` — restorePromoCodeVersion

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-restorepromocodeversion)

## getPromoCodeUsage

`GET /api/v1/promo-codes/{id}/usage` — getPromoCodeUsage

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-getpromocodeusage)

## listPromoCodeVersions

`GET /api/v1/promo-codes/{id}/versions` — listPromoCodeVersions

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-listpromocodeversions)

## setBuyerRecommendations

`PUT /api/v1/users/{user_id}/recommendations` — setBuyerRecommendations

Scopes (ALL): \["pricing:write"]. Auth (OR): \[{"hubApiKey":\[]},{"hubBearer":\[]}].

[Параметры, ответы и права](https://telegafirst.com/docs/api-op-setbuyerrecommendations)
