AuthorizeNet / sample-code-ruby

This repository contains working code samples which demonstrate ruby integration with the Authorize.Net API
MIT License
24 stars 58 forks source link

What to give in batchId while sending a request for transaction detail #45

Closed shivamkayal closed 6 years ago

shivamkayal commented 6 years ago

In the API, Transaction Reporting, we have one option of getting transaction detail, in the specified parameter there is an option of sending batchID which is numeric and required field. What do we have to specify in that.

adavidw commented 6 years ago

HI @shivamkayal,

Each day, there's a batching process whereby all of the transactions that have been authorized and captured are sent to the merchant's bank for clearing and settlement. Transactions that have been settled are organized in batches on our end.

The getSettledBatchListRequest method will return a list of batch IDs for batches matching the specified parameters. Those batchIds could then be used in the getTransactionListRequest to return the transaction IDs contained within that batch, or used in the getBatchStatisticsRequest method to get more information about that batch.