curl --request POST \
--url https://api.example.com/cabinet/subscription/tariff/switch/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tariff_id": 123,
"period_days": 1825,
"traffic_gb": 50000
}
'{}Preview tariff switch - shows cost calculation.
curl --request POST \
--url https://api.example.com/cabinet/subscription/tariff/switch/preview \
--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 Preview Tariff Switch Cabinet Subscription Tariff Switch Preview Post · object.