Activate License
Activate a license code for an existing user.
Endpoint: POST /activate_license
Headers:
x-api-key(required) - Your application’s API keyx-api-secret(required) - Your application’s API secret
Request Body:
{
"code": "ABC123XYZ789",
"username": "john_doe",
"password": "user_password"
}Response:
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"occurred_at": "2024-11-11T10:30:00Z",
"minutes": 43200,
"grants_lifetime_access": false,
"revokes_lifetime_access": false,
"license_id": "789e0123-e89b-12d3-a456-426614174000",
"type": "license"
}Fields:
minutes- Number of minutes added to the user’s membership (null if lifetime)grants_lifetime_access- True if this license grants lifetime accessrevokes_lifetime_access- True if this license revokes lifetime accessoccurred_at- When the license was activated
Errors:
401- Authentication failed (wrong username/password, invalid license code, or license already used)422- Validation error (missing required fields)
Notes:
- Each license code can only be used once
- License duration is added to the user’s existing membership
- Lifetime licenses provide permanent access
Last updated on