I am building an application using C# SDK of authorize.net. here, i want to get list of ARB transactions based on customer profile id or subscription id.
My finding says, Authorize.net can provide subscriptions with paynum property with transaction list but doesn't provide any feature to get a list of completed transactions of ARB.
Please suggest to get ARB completed transaction list based on subscription or customer profile and if not possible for now, suggest me any possible alternet approach.
Looking forward for your quick response.
12-16-2017 02:24 AM
12-16-2017 07:14 AM
Dear kikmak42,
Thanks for your quick reply.
I think you missed what i asked.
Actually, when customer makes transactions over Authorize.net, I am keeping the data in my own database along with transaction id.
if customer creates ARB subscription for any amount($), how will i get a list of ARB transactions only(ignore other transactions list) of customer profile or payment profile.
12-18-2017 02:22 AM
If you want only the list of ARB transactions, we don't have an API right now which return that.
You are welcomed to post this in our Ideas Forum.
So coming to your requirment.
There are 2 API which returns the list of transactions one is getUnsettledTransactionListRequest and the other is getTransactionListRequest(for Settled trsanctions).
Both returns you a list of transactions which have a subscription information along with it if the transaction is of type ARB transaction, which you can leverage.
You can look into this sample code for GetUnsettledTransactionList, just add this
foreach (var item in response.transactions) { if(item.subscription != null ){ Console.WriteLine("Transaction Id: {0} was submitted for subscription id {1} and this payment number {2}.", item.transId, item.subscription.id, item.subscription.payNum); } }
for each item which you are getting in the response and you will be able to filter only the ARB transactions.
Hope this helps !
12-18-2017 11:03 AM
My bad, my knowledge was outdated, this was one of the highest rated ideas in our Ideas Forum.
I got to know that our team has been working on this and we have updated the ARBGetSubscriptionRequest API to return the lastest 20 transactions associated with the subscription.
You can now send <includeTransactions>true</includeTransactions> along with ARBGetSubscriptionRequest to get the last 20 transactions associated with a subscription.
We are still in the process of updating our documention, but you can get started using it with our latest dot-net sdk (1.9.4).
Hope this helps !
12-18-2017 11:28 AM - edited 12-18-2017 11:31 AM
Hi kikmak42,
Thank you for your prompt response.
I updated the C# SDK; Authorize.net 1.9.4 in my project but ARBGetSubscriptionRequest doesn't have <includeTransactions> propterty.
ARBGetSubscriptionRequest has following properties only:
1. searchType
2. paging
3. sorting
Please update the C# SDK and get back to me asap.
Looking forward for your quick response.
12-19-2017 03:36 AM
The ARBGetSubscriptionRequest has only 2 fields, subscriptionId and includeTransactions
You can check in GitHub : Here
You must have mistakenly checked the ARBGetSubscriptionListRequest which has the 3 properties as mentioned by you.
Thanks
Kaushik
12-20-2017 08:27 AM