Is there any API to get a list of transactions for a given subscription id? Maybe I totally missed it, but I don't see and API to do this.
As an alternative, it looks like I can load the subscription to get the customerProfileId and payentProfileId, call getTransactionListForCustomerRequest(customerProfileId, paymentProfileId), loop over the transactions returned in the response, and evaluate if transaction.subscription.id is equal to the subsciptionId I am looking for. Furthermore, getTransactionListForCustomerRequest() uses paging, so I may need to call that API multiple times to get the collection of transactions for a subscription.
Seems like there should be an easier way to get the list of transactions for a subscription?
Thanks!
Solved! Go to Solution.
โ04-12-2017 08:52 AM
Hi @dnsBuffaloNY,
The way you described of retrieving the transactions by profile and then checking the subscription ID would currently be the only way.
I can definitely see the usefulness of being able to just specify a subscription ID. Some sort of getTransactionListForSubscription() call?
I'd encourage you to post this onto our Ideas Forum where others can take a look, contribute feedback, and vote for new features.
โ04-12-2017 12:11 PM
Hi @dnsBuffaloNY,
The way you described of retrieving the transactions by profile and then checking the subscription ID would currently be the only way.
I can definitely see the usefulness of being able to just specify a subscription ID. Some sort of getTransactionListForSubscription() call?
I'd encourage you to post this onto our Ideas Forum where others can take a look, contribute feedback, and vote for new features.
โ04-12-2017 12:11 PM
Thanks. Idea submitted:
https://community.developer.authorize.net/t5/Ideas/Subscription-Transactions/idi-p/57675
โ04-12-2017 01:18 PM
Hi Aaron. I'm working on implementing this same approach but I'm not getting the results I'm expecting. When I look at the Recurring Billing section on the sandbox, I can see 1 transaction completed for my subscription. The transaction detail has a status of "Settled Successfully" with an amount of $20. The issue is that when I get the results back from getTransactionListForCustomerRequest with the specified customer profile ID and customer payment profile ID, I get a transaction back but it does not have a subscription (null subscription property) and it has a status of "voided" with a settled amount of 0.
โ06-05-2017 12:48 PM
Hi @rmontoya12,
The getTransactionListForCustomerRequest call will only return the transactions that were performed by specifically charging a payment profile in a createTransactionRequest call, not subscription transactions. Although subscription transactions are also using customer profiles, the transactions would need to be retrieved through the subscription APIs.
โ06-05-2017 01:52 PM
Ok, I was simply following the process that dnsBuffaloNY mentioned in his post above that started this thread and I thought you had affirmed that was the way to do it.
Do you have a link to instructions on how to get a list of transactions that were processed for an ARB subscription?
Thanks!
โ06-05-2017 01:57 PM
No, you're absolutely right. I'm trying to get out the door to the airport, and my head was elsewhere. I was thinking of something completely different. Stay tuned, and I'll write an answer that makes more sense...
โ06-05-2017 02:03 PM - edited โ06-05-2017 02:03 PM
Hi Aaron. Any update on this?
โ07-05-2017 08:59 AM - edited โ07-05-2017 09:00 AM
I'd love to now more on this as well! - Rich
โ07-06-2017 08:04 AM
I'm trying to do this method (getting the customerProfileId from the subscription list and passing it to getTransactionListForCustomerRequest) but it always returns {"code":"I00004","text":"No records found."}
what am I missing? are subscription transactions included in the list of transactions by customer api call?
โ08-08-2017 09:19 PM