# Process the Batch Response
source: https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/hosted-batch/integrate-hosted-batch/process-the-batch-response/index.md

After a batch has completed processing, you can request a response file that contains the result of each of the uploaded operations. You receive the response file in CSV format and in the same encoding as the batch upload request.

## Download the batch response {#download-the-batch-response}

You can download the batch response by sending an HTTPS GET request to:

`{{host}}/batch/version/<versionNum>/merchant/<merchantId>/batch/<batchName>/response`

Where:

* `<versionNum>` is the version of Batch
* `<merchantId>` is your Merchant identifier
* `<batchName>` is your unique name for the batch

The response file contains the same header and records as the original batch submission, with all fields overwritten with the results from the API request.

An extract of a sample batch response file in CSV format showing an "APPROVED" gateway Response Code is shown.

```csv
"apiOperation","order.id","transaction.id","order.amount","order.currency","sourceOfFunds.type","sourceOfFunds.provided.card.number","sourceOfFunds.provided.card.expiry.month","sourceOfFunds.provided.card.expiry.year","result","error.cause","error.explanation","response.gatewayCode"
"","921830104177","TXID1","30.00","AUD","CARD","512345xxxxxx2346","5","17","SUCCESS","","","APPROVED"
"","921830104178","TXID1","100.00","AUD","CARD","512345xxxxxx2346","5","17","SUCCESS","","","APPROVED"
"","921830104179","TXID1","50.00","AUD","CARD","498765xxxxxx8769","5","17","SUCCESS","","","APPROVED"
"","921830104180","TXID1","90.00","AUD","CARD","498765xxxxxx8769","5","17","SUCCESS","","","APPROVED"
"","921830104181","TXID1","45.00","AUD","CARD","345678xxxxx4564","5","17","SUCCESS","","","APPROVED"
"","921830104182","TXID1","75.00","AUD","CARD","345678xxxxx4564","5","17","SUCCESS","","","APPROVED"
```

## Using the batch response {#using-the-batch-response}

The information provided in the batch response is based on the parameters defined in the batch upload request. You may find it useful to include parameters such as [response.gatewayCode](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/v100/nvp/api-ops/index.md#transaction) and [error.cause](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/v100/nvp/api-ops/index.md#transaction) to be able to identify problems in processing operations.

Warning: It is good practice to validate whether the data you supplied for an operation is the same data used to process the operation. For example, you should check that the amount returned in the batch response for an operation matches the value you sent in the batch request for that operation.

<br />

