Skip to main content
POST
/
cabinet
/
gift
/
activate
Activate Gift By Code
curl --request POST \
  --url https://api.example.com/cabinet/gift/activate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
{
  "status": "<string>",
  "tariff_name": "<string>",
  "period_days": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
code
string
required
Required string length: 1 - 100

Response

Successful Response

status
string
required
tariff_name
string | null
period_days
integer | null