Бұл құжат қазір тек English тілінде қолжетімді. Аудармалар дайын болған кезде жарияланады.
Your prices
Read and write your own prices per plan and currency; how the price floor behaves.
You sell at your own prices. The one constraint is the agreed minimum per plan and currency.
Read
GET /api/v1/reseller/prices
{
"prices": [
{
"id": "3d0f...",
"reseller_id": "0f2c...",
"plan_code": "base",
"currency": "RUB",
"amount_cents": 34900,
"floor_cents": 29900,
"active": true,
"note": ""
}
]
}
Amounts are in minor units: 34900 in RUB is 349 ₽; 399 in USD is $3.99.
Plan codes: base, pro, dedicated. Currencies: RUB, USD.
Write
PUT /api/v1/reseller/prices
Content-Type: application/json
{
"plan_code": "base",
"currency": "RUB",
"amount_cents": 34900,
"note": "summer price"
}
The floor and the active flag are not writable through a partner key — that side is ours.
Below the floor
400 Bad Request
{
"error": "amount_cents must be >= floor_cents",
"code": "price_below_floor",
"details": { "floor_cents": 29900 }
}
details.floor_cents carries the minimum you need to raise to. The floor is not a punishment but the line below which a plan stops paying for the traffic it authorises; the reasoning is in Pricing.
Scopes: prices:read and prices:write. The same thing exists in the dashboard under "Prices".