You can use the Transaction Reporting feature of the Authorize.Net API to access transaction history and details.
Get Settled Batch List
For a range of dates:
{
"getSettledBatchListRequest": {
"merchantAuthentication": {
"name": "API_Login_ID",
"transactionKey": "Transaction_Key"
},
"firstSettlementDate": "2020-05-01T16:00:00Z",
"lastSettlementDate": "2020-05-31T16:00:00Z"
}
}
Get Transaction List
Use this function to return data for all transactions in a specified batch. The function will return data for up to 1000 of the most recent transactions in a single request. Paging options can be sent to limit the result set or to retrieve additional transactions beyond the 1000 transaction limit. No input parameters are required other than the authentication information and a batch ID. However, you can add the sorting and paging options shown below to customize the result set.
{
"getTransactionListRequest": {
"merchantAuthentication": {
"name": "API_Login_ID",
"transactionKey": "Transaction_Key"
},
"batchId" : "123XXX",
"sorting": {
"orderBy": "submitTimeUTC",
"orderDescending": "true"
},
"paging": {
"limit": "100",
"offset": "1"
}
}
}
Get Unsettled Transaction List
Use this function to get data for unsettled transactions. The function will return data for up to 1000 of the most recent transactions in a single request. Paging options can be sent to limit the result set or to retrieve additional transactions beyond the 1000 transaction limit. No input parameters are required other than the authentication information.
{
"getUnsettledTransactionListRequest": {
"merchantAuthentication": {
"name": "API_Login_ID",
"transactionKey": "Transaction_Key"
},
"sorting": {
"orderBy": "submitTimeUTC",
"orderDescending": true
},
"paging": {
"limit": "100",
"offset": "1"
}
}
}
If the refId is included in a request, this value is included in the response.