curl --request POST \
--url https://api.example.com/cabinet/subscription/purchase-tariff \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tariff_id": 123,
"period_days": 1825,
"traffic_gb": 50000
}
'{}Purchase a tariff (for tariffs mode).
curl --request POST \
--url https://api.example.com/cabinet/subscription/purchase-tariff \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tariff_id": 123,
"period_days": 1825,
"traffic_gb": 50000
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
The response is of type Response Purchase Tariff Cabinet Subscription Purchase Tariff Post · object.