New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the option of obtaining past-payments from a specific subscription. #719
Comments
We will have a new endpoint called getSubscriptionPayments for this. |
So now getSubscriptionPayments return the list of transactions for all payments of a given subscription. If one wants all subscription payments of a given account, then use getAccountTransactions with type=21 and subtype=5. |
@jjos2372 I had to re-open this ticket because there is an pagination issue on this request, let me explain: As you can see on this request, there are more than 65 transaction(Payments) But the issue is happening when i try to make the request with pagination: You will discover the following on the response:
{
"transactions": [
{
"type": 21,
"subtype": 5,
"timestamp": 271864410,
"deadline": 1440,
"senderPublicKey": "04d794aa453a5bbdb8d580f1d9a76b6d7a25cde0ed38c098550ea0f784d9317a",
"amountNQT": "1250000000",
"feeNQT": "1000000",
"fullHash": "8e26c06fafdcc500bfc4089372ff1129e7dc132ed0220f8a19fb71472d6390a9",
"transaction": "55693216464250510",
"attachment": {
"version.SubscriptionPayment": 1,
"subscriptionId": "10129084965209757306"
},
"attachmentBytes": "017ad613131cbd918c",
"sender": "13112229684715917355",
"senderRS": "TS-863D-FNXF-WVPM-DZZXD",
"height": 527736,
"version": 1,
"ecBlockId": "0",
"ecBlockHeight": 0,
"cashBackId": "0",
"block": "2048945161248419226",
"confirmations": 3,
"blockTimestamp": 271864629
}
],
"nextIndex": 6,
"requestProcessingTime": 19
} |
That is the reason we have the |
@jjos2372 Is an issue, because you can see on the request that firstIndex is equal to The issue is: The amount of Note: This subscription has more than 60 This is the response {
"transactions": [
{
"type": 21,
"subtype": 5,
"timestamp": 271868730,
"deadline": 1440,
"senderPublicKey": "04d794aa453a5bbdb8d580f1d9a76b6d7a25cde0ed38c098550ea0f784d9317a",
"amountNQT": "1250000000",
"feeNQT": "1000000",
"fullHash": "2235620d09a48bdf66474f99056e603c24b76605e52ab19ff0d094e4046bc48e",
"transaction": "16108148851006911778",
"attachment": {
"version.SubscriptionPayment": 1,
"subscriptionId": "10129084965209757306"
},
"attachmentBytes": "017ad613131cbd918c",
"sender": "13112229684715917355",
"senderRS": "TS-863D-FNXF-WVPM-DZZXD",
"height": 527752,
"version": 1,
"ecBlockId": "0",
"ecBlockHeight": 0,
"cashBackId": "0",
"block": "10398869759887365253",
"confirmations": 2,
"blockTimestamp": 271868846
}
],
"nextIndex": 6,
"requestProcessingTime": 88
} |
As the title says, we should have a way of getting the previous payments from a specific subscription.
As crypto automatic payments are getting more relevant, this is a necessary feature on any subscription-platform.
The text was updated successfully, but these errors were encountered: