Skip to main content

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

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
includeInactivebooleanInclude inactive subscriptions (default false)No
firstIndexintPagination startNo
lastIndexintPagination endNo

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"