Skip to main content
POST
/
v1
/
admin
/
subscriptions
/
{entity_type}
/
{entity_id}
/
grant
# Grant 30-day premium
curl -X POST https://hapi.7331.org/v1/admin/subscriptions/user/123456789012345678/grant \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"tier": 2, "duration_days": 30, "reason": "Contest winner"}'

# Grant lifetime
curl -X POST https://hapi.7331.org/v1/admin/subscriptions/user/123456789012345678/grant \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"tier": 3, "reason": "Early supporter"}'
{
  "message": "Subscription granted successfully"
}
Requires an active admin session cookie.
entity_type
string
required
Entity type. One of: user, guild.
entity_id
integer
required
Discord snowflake ID of the entity.
tier
integer
required
Subscription tier to grant. 1 = Trial, 2 = Premium, 3 = Lifetime.
duration_days
integer
Duration in days. Only used for Premium (2). Trial always forces 7 days. Lifetime ignores this field.
reason
string
Reason for granting.

Response

message
string
required
Action result message.
# Grant 30-day premium
curl -X POST https://hapi.7331.org/v1/admin/subscriptions/user/123456789012345678/grant \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"tier": 2, "duration_days": 30, "reason": "Contest winner"}'

# Grant lifetime
curl -X POST https://hapi.7331.org/v1/admin/subscriptions/user/123456789012345678/grant \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"tier": 3, "reason": "Early supporter"}'
{
  "message": "Subscription granted successfully"
}