Skip to main content
POST
Quote viewers upgrade
target_viewers is the new total viewer limit. To increase an order from 100 to 200 viewers, send 200. To apply the upgrade, call Upgrade viewers with the same target_viewers and the returned amount as max_amount. The final cost is recalculated when you apply the upgrade.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Language
enum<string>
default:en

The language of the response

Available options:
en,
ru

Path Parameters

orderId
integer<int64>
required

ID of the order to upgrade.

Required range: x >= 1

Body

application/json
target_viewers
integer
required

New total viewer limit. For example, send 200 to increase from 100 to 200 viewers. Must exceed the current limit and stay within the maximum allowed for the order.

Example:

200

Response

Estimated upgrade cost.

to_viewers
integer
required

New total viewer limit.

Example:

200

remaining_seconds
integer
required

Remaining order time in seconds.

Required range: x >= 0
Example:

3600

amount
number
required

Cost of the upgrade in the returned currency, including discounts.

Required range: x >= 0.01
Example:

12.5

currency
enum<string>
required
Available options:
usd,
rub
Example:

"usd"