I'm using the Ruby library to try and get the transaction history for either a customer or an ARB subscription.
I've tried using ARBGetSubscriptionRequest and GetTransactionListForCustomerRequest in both cases no transaction data is coming back.
I confirmed the Transaction Details API is enabled.
The transactions are reported in the UI:
Here's a code sample:
transaction = Transaction.new(api_login_id, transaction_key, gateway: 'sandbox') request = GetTransactionListForCustomerRequest.new request.customerProfileId = '1505270746' response = transaction.get_transaction_list_for_customer(request) response.transactions => nil ### request = ARBGetSubscriptionRequest.new request.subscriptionId = '5341988' response = transaction.arb_get_subscription_request(request) response.subscription.arbTransactions => nil
10-30-2018 11:02 PM
Are these transaction done as part of ARB ? If so you will not see the transaction in the GetTransactionListForCustomerRequest call, in the GetTransactionListForCustomerRequest you only see the transcations exclusively charged against the customer profile.
You will be able to get these transaction in the ARBGetSubscriptionRequest response. But as I cann see you are not getting these transaction, I believe you might have missed to set the flag includeTransactions as true, and hence you are not getting any transactions in response.
You need to add something like to your ARBGetSubscriptionRequest
request.includeTransactions = true
Happy Coding !
Kaushik
01-04-2019 02:30 AM
Is there a way to pull all the transactions for a customerProfileId or merchantCustomerId?
07-30-2019 03:37 PM