I have copy pasted this code from Authorize.net no errors are raised by the code, and the Authorize.net response is empty. There are no entries in the transaction list, and there are no errors either. Just empty response
This my code:-
def get_unsettled_transaction_list(location, limit=20, offset=1):
"""get unsettled transaction list"""
locationAuth = AuthorizeDotNetServices._get_location_auth(location)
# set sorting parameters
sorting = apicontractsv1.TransactionListSorting()
sorting.orderBy = apicontractsv1.TransactionListOrderFieldEnum.id
sorting.orderDescending = True
# set paging and offset parameters
paging = apicontractsv1.Paging()
# Paging limit can be up to 1000 for this request
paging.limit = limit
paging.offset = offset
transactionrequest = apicontractsv1.getUnsettledTransactionListRequest()
transactionrequest.merchantAuthentication = locationAuth
transactionrequest.refId = "Sample"
transactionrequest.sorting = sorting
transactionrequest.paging = paging
unsettledTransactionListController = getUnsettledTransactionListController(transactionrequest)
unsettledTransactionListController.execute()
# Work on the response
response = unsettledTransactionListController.getresponse()
10-28-2023 07:16 AM
When I think of getting an unsettled transaction list I go here:
https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-unsettled-transac...
You can test it using the virtual terminal and your credentials below "API Endpoints and Authentication".
11-01-2023 09:36 AM