Pay
Check Subscription
Check if a user has an active subscription for a given plan key.
POST
/api/pay/check_subscription.php
Requires
Authorization: AppID:AppKey + user tokenRequest body
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | required | User session token |
| itemKey | string | required | Subscription plan key to check |
Test this endpoint
Headers
Body
Success response 200
{
"success": true,
"active": true,
"subscription": {
"itemKey": "plan-pro",
"status": "active",
"current_period_end": "2025-06-10 14:32:00"
}
}