Skip to main content
POST
/
cabinet
/
subscription
/
purchase-tariff
Purchase Tariff
curl --request POST \
  --url http://localhost:8080/cabinet/subscription/purchase-tariff \
  --header 'Content-Type: application/json' \
  --data '
{
  "tariff_id": 123,
  "period_days": 1825,
  "traffic_gb": 50000
}
'
{}

Body

application/json

Request to purchase a tariff.

tariff_id
integer
required

Tariff ID to purchase

period_days
integer
required

Period in days

Required range: 1 <= x <= 3650
traffic_gb
integer | null

Custom traffic in GB (for custom_traffic_enabled tariffs)

Required range: 0 <= x <= 100000

Response

Successful Response

The response is of type Response Purchase Tariff Cabinet Subscription Purchase Tariff Post · object.