Console
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 token

Request body

FieldTypeRequiredDescription
tokenstringrequiredUser session token
itemKeystringrequiredSubscription plan key to check

Success response 200

{
  "success": true,
  "active": true,
  "subscription": {
    "itemKey": "plan-pro",
    "status": "active",
    "current_period_end": "2025-06-10 14:32:00"
  }
}