cancel
Showing results for 
Search instead for 
Did you mean: 

Authorize.net Unsettled Transaction List returning nothing, No error, No response

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()

 

SheikhImO
Member
1 REPLY 1

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".

marine2026
Trusted Contributor