GetSubscriptionPayments
Lists subscription payment records with optional filtering by subscriber, provider, and service.
Request
GET /nxt?requestType=getSubscriptionPayments
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
subscriber | string | Subscriber account ID or SHAMWARI address | No |
provider | string | Provider account ID or SHAMWARI address | No |
serviceId | string | Subscription service ID | No |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
Response
{
"payments": [
{
"payment": "1234567890123456789",
"service": "9876543210123456789",
"subscriber": "1234567890123456789",
"subscriberRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"provider": "9876543210123456789",
"providerRS": "SHAMWARI-WXYZ-ABCD-EFGH-IJKLM",
"plan": "Basic",
"amountQNT": "100000000",
"timestamp": 1700000000
}
],
"errorCode": 0,
"errorDescription": ""
}
Example
curl "http://localhost:22024/nxt?requestType=getSubscriptionPayments&subscriber=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"