GetAccountSubscriptions
Lists all subscription subscriptions for a specific account, including active and inactive subscriptions.
Request
GET /nxt?requestType=getAccountSubscriptions
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
includeInactive | boolean | Include inactive subscriptions (default false) | No |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
Response
{
"subscriptions": [
{
"subscriber": "1234567890123456789",
"subscriberRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"service": "9876543210123456789",
"serviceName": "Premium Service",
"plan": "Basic",
"amountQNT": "100000000",
"lastPayment": 1700000000,
"nextPayment": 1700259200,
"active": true
}
],
"activeCount": 3,
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=getAccountSubscriptions&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"