---
updatedAt: 2026-05-28T21:42:30.000Z
agentTools:
  projectIndex: https://hq.docs.netevia.com/llms.txt
---

# Transactions Export Data

Returns daily financial transaction data grouped by merchant and batch in XML format, including card type, masked PAN, transaction amount, terminal entry mode, and authorization details.

## Transactions Export Data

The Transactions export file provides detailed financial transaction data organized by merchant and batch. It covers all payment transactions processed on a given date and is the primary file for transaction-level reconciliation, interchange qualification analysis, and settlement verification. Amounts are expressed in cents throughout the file.

### Endpoint

`GET /download/YYYYMMDD/Transactions`

### Authentication

Basic HTTP Authentication required.
Encode `username:password` in Base64 and pass in the Authorization header:

```
Authorization: Basic {base64(username:password)}
```

### When to use

Use this file daily to reconcile settled transactions against batch totals, verify that `NetDepositAmount` at the batch level equals `SalesAmount` minus `RefundAmount` minus fees, and audit `TerminalEntryMode` values to ensure correct interchange qualification. Cross-reference `PS2000TransactionIdentifier` with the TransactionsExtendedData file when analyzing interchange costs by extended card type.

### Query Parameters

None. The file is identified by the date path segment (`YYYYMMDD`) and delivered via SFTP.

### Response

**200 OK** — Returns XML content with the following structure:

**XML Hierarchy:** `Merchant > Batches > Batch > Transactions > Transaction`

**`<Merchant>` fields:**

| Field | Type   | Description                                 |
| ----- | ------ | ------------------------------------------- |
| `MID` | string | Merchant identifier (unique account number) |

**`<Batch>` fields:**

| Field                                        | Type     | Description                                              |
| -------------------------------------------- | -------- | -------------------------------------------------------- |
| `InternalId`                                 | integer  | Internal system identifier for the batch                 |
| `BatchId`                                    | string   | External batch identifier                                |
| `PointOfSaleOrInteractionTerminalIdentifier` | string   | V-number: terminal ID where the batch originated         |
| `BatchDate`                                  | datetime | Date the batch was closed                                |
| `MerchantDepositDate`                        | datetime | Date funds are scheduled to be deposited to the merchant |
| `BatchNumber`                                | string   | Sequential batch number for the processing period        |
| `NetDepositAmount`                           | decimal  | Net amount deposited after fees and refunds (in cents)   |
| `TransactionsCount`                          | integer  | Total number of transactions in the batch                |
| `SalesAmount`                                | decimal  | Total sales volume in cents                              |
| `SalesCount`                                 | integer  | Number of sale transactions                              |
| `RefundAmount`                               | decimal  | Total refund amount in cents                             |
| `RefundCount`                                | integer  | Number of refund transactions                            |

**`<Transaction>` fields:**

| Field                                   | Type     | Description                                                                                              |
| --------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `CardType`                              | string   | Card network: `V` = Visa, `M` = Mastercard, `S` = Amex, `D` = Discover, `R` = Discover (proprietary BIN) |
| `CardholderAccountNumber`               | string   | Masked card PAN, e.g. `000000******0000`                                                                 |
| `TransactionDate`                       | datetime | Date and time the transaction occurred                                                                   |
| `TransactionAmount`                     | decimal  | Transaction amount in cents                                                                              |
| `TerminalEntryMode`                     | string   | Card capture method: `01` = manual, `02` = magnetic stripe, `05` = chip/EMV, `07` = contactless          |
| `AuthorizationCode`                     | string   | Approval code returned by the card issuer                                                                |
| `AuthorizationSourceCode`               | string   | Source of authorization response (empty for Mastercard)                                                  |
| `CardholderIdentificationMethod`        | string   | Cardholder ID: space = not specified, `1` = signature, `2` = PIN, `3` = unattended, `4` = MOTO           |
| `AuthorizationCharacteristicsIndicator` | string   | Interchange qualification indicator                                                                      |
| `PS2000TransactionIdentifier`           | string   | Unique network-level transaction reference identifier                                                    |
| `ValidationCode`                        | string   | Interchange validation code (empty for Mastercard)                                                       |
| `TransactionCode`                       | string   | Internal code classifying the transaction type                                                           |
| `AuthorizationResponseCode`             | string   | Issuer response code: `00` = approved                                                                    |
| `TransactionFee`                        | decimal  | Fee applied to the transaction in cents (`0` if none)                                                    |
| `TransactionFeeIndicator`               | string   | Fee type indicator (empty if none)                                                                       |

```xml
<Merchant>
  <MID>9180000000001234</MID>
  <Batches>
    <Batch>
      <InternalId>20275286</InternalId>
      <BatchId>00000124797</BatchId>
      <PointOfSaleOrInteractionTerminalIdentifier>79416045</PointOfSaleOrInteractionTerminalIdentifier>
      <BatchDate>2026-05-27T00:00:00</BatchDate>
      <MerchantDepositDate>2026-05-28T00:00:00</MerchantDepositDate>
      <BatchNumber>0193</BatchNumber>
      <NetDepositAmount>47500</NetDepositAmount>
      <TransactionsCount>2</TransactionsCount>
      <SalesAmount>47500</SalesAmount>
      <SalesCount>2</SalesCount>
      <RefundAmount>0</RefundAmount>
      <RefundCount>0</RefundCount>
      <Transactions>
        <Transaction>
          <CardType>V</CardType>
          <CardholderAccountNumber>414100******0555</CardholderAccountNumber>
          <TransactionDate>2026-05-27T14:22:00</TransactionDate>
          <TransactionAmount>25000</TransactionAmount>
          <TerminalEntryMode>07</TerminalEntryMode>
          <AuthorizationCode>412649</AuthorizationCode>
          <AuthorizationSourceCode>V</AuthorizationSourceCode>
          <CardholderIdentificationMethod>1</CardholderIdentificationMethod>
          <AuthorizationCharacteristicsIndicator>E</AuthorizationCharacteristicsIndicator>
          <PS2000TransactionIdentifier>346134553487245</PS2000TransactionIdentifier>
          <ValidationCode>ML6X</ValidationCode>
          <TransactionCode>0101</TransactionCode>
          <AuthorizationResponseCode>00</AuthorizationResponseCode>
          <TransactionFee>0</TransactionFee>
          <TransactionFeeIndicator />
        </Transaction>
        <Transaction>
          <CardType>M</CardType>
          <CardholderAccountNumber>536759******6473</CardholderAccountNumber>
          <TransactionDate>2026-05-27T15:10:00</TransactionDate>
          <TransactionAmount>22500</TransactionAmount>
          <TerminalEntryMode>05</TerminalEntryMode>
          <AuthorizationCode>072795</AuthorizationCode>
          <AuthorizationSourceCode />
          <CardholderIdentificationMethod>1</CardholderIdentificationMethod>
          <AuthorizationCharacteristicsIndicator>A</AuthorizationCharacteristicsIndicator>
          <PS2000TransactionIdentifier>MDJN4MFFJ</PS2000TransactionIdentifier>
          <ValidationCode />
          <TransactionCode>0101</TransactionCode>
          <AuthorizationResponseCode />
          <TransactionFee>0</TransactionFee>
          <TransactionFeeIndicator />
        </Transaction>
      </Transactions>
    </Batch>
  </Batches>
</Merchant>
```

### Error Codes

| Code | When it happens                                   |
| ---- | ------------------------------------------------- |
| 400  | Malformed date format in URL path                 |
| 401  | Invalid or missing Basic Auth credentials         |
| 403  | User does not have permission for this operation  |
| 404  | No Transactions file found for the specified date |
| 500  | Internal server error                             |

### Common Mistakes

* Not dividing amounts by 100 — `TransactionAmount: 25000` = $250.00; all amounts are in cents.
* Treating `NetDepositAmount` as the gross sales total — it is the net after refunds and fees at the batch level.
* Flagging empty `ValidationCode` and `AuthorizationResponseCode` for Mastercard as errors — these fields are intentionally blank for Mastercard.
* Using `TerminalEntryMode` incorrectly can result in interchange downgrades — validate that the reported entry mode matches the physical capture method at the terminal.
* Not masking `CardholderAccountNumber` in downstream storage — the file already delivers a masked PAN but parsers must not re-expose raw data in logs.

### Related Endpoints

* `GET /download/YYYYMMDD/SimplifiedFormat` — simplified multi-merchant consolidated format
* `GET /download/YYYYMMDD/TransactionsExtendedData` — extended card type and network identifier per transaction
* `GET /download/YYYYMMDD/TransAuth` — authorization records for each transaction attempt
* `GET /download/YYYYMMDD/ACH` — ACH deposit records that settle the batches in this file

### Example

```bash
curl -X GET "https://hq.staging.netevia.dev/download/20260528/Transactions" \
  -H "Authorization: Basic $(echo -n 'username:password' | base64)"
```

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "download",
    "title": "Netevia HQ | Export Data Documentation",
    "description": "Netevia HQ | Export Data Documentation"
  },
  "paths": {
    "/download/YYYYMMDD/Transactions": {
      "get": {
        "tags": [
          "ExportData"
        ],
        "operationId": "ExportData_Transactions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWithBatchesAndTransactonsShortData"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWithBatchesAndTransactonsShortData"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWithBatchesAndTransactonsShortData"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWithBatchesAndTransactonsShortData"
                }
              },
              "mid": {
                "examples": {
                  "response": {
                    "value": "9180000000004242"
                  }
                }
              },
              "batches": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "transactions": [
                          {
                            "cardType": "M",
                            "cardholderAccountNumber": "514219******6659",
                            "transactionDate": "2019-01-14T00:00:00",
                            "transactionAmount": 859,
                            "authorizationCode": "951377",
                            "authorizationSourceCode": "4",
                            "pS2000TransactionIdentifier": "MDS4V9L85",
                            "validationCode": "6LQJ",
                            "transactionCode": "0330",
                            "authorizationResponseCode": "00",
                            "transactionFee": 0
                          }
                        ],
                        "internalId": 0,
                        "pointOfSaleOrInteractionTerminalIdentifier": "79430197",
                        "merchantDepositDate": "2019-01-15T00:00:00",
                        "batchNumber": "248",
                        "netDepositAmount": 75992,
                        "transactionsCount": 3,
                        "salesAmount": 39942,
                        "salesCount": 3,
                        "refundAmount": 0,
                        "refundCount": 0
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "summary": "Transactions Export Data",
        "description": "Returns daily financial transaction data grouped by merchant and batch in XML format, including card type, masked PAN, transaction amount, terminal entry mode, and authorization details."
      }
    }
  },
  "security": [
    {
      "Basic": []
    }
  ],
  "servers": [
    {
      "url": "https://hq.staging.netevia.dev"
    }
  ],
  "components": {
    "securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Basic HTTP Authentication",
        "scheme": "basic"
      }
    },
    "schemas": {
      "MerchantWithBatchesAndTransactonsShortData": {
        "type": "object",
        "properties": {
          "mid": {
            "description": "Merchant ID",
            "type": "string"
          },
          "batches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantBatchAndShortTransactonsData"
            }
          }
        }
      },
      "MerchantBatchAndShortTransactonsData": {
        "type": "object",
        "properties": {
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantTransactionShortData"
            }
          },
          "internalId": {
            "format": "int32",
            "type": "integer"
          },
          "batchId": {
            "type": "string"
          },
          "pointOfSaleOrInteractionTerminalIdentifier": {
            "description": "V-Number",
            "type": "string"
          },
          "batchDate": {
            "format": "date-time",
            "type": "string"
          },
          "merchantDepositDate": {
            "format": "date-time",
            "type": "string"
          },
          "batchNumber": {
            "description": "This field must contain the batch number assigned by the client or the client’s data capture vendor.",
            "type": "string"
          },
          "netDepositAmount": {
            "format": "int64",
            "description": "In cents",
            "type": "integer"
          },
          "transactionsCount": {
            "format": "int32",
            "type": "integer"
          },
          "salesAmount": {
            "format": "int64",
            "description": "In cents",
            "type": "integer"
          },
          "salesCount": {
            "format": "int64",
            "type": "integer"
          },
          "refundAmount": {
            "format": "int64",
            "description": "In cents",
            "type": "integer"
          },
          "refundCount": {
            "format": "int64",
            "type": "integer"
          }
        }
      },
      "MerchantTransactionShortData": {
        "type": "object",
        "properties": {
          "cardType": {
            "description": "Possible values:\r\n* M - Mastercard\r\n* L - Private Label\r\n* R - Discover\r\n* P - Paypal\r\n* V - Visa\r\n* S - AMEX\r\n* O - Other",
            "type": "string"
          },
          "cardholderAccountNumber": {
            "description": "Masked Card Number",
            "type": "string"
          },
          "transactionDate": {
            "format": "date-time",
            "type": "string"
          },
          "transactionAmount": {
            "format": "int64",
            "description": "In cents",
            "type": "integer"
          },
          "terminalEntryMode": {
            "description": "Possible values:\r\n* 00 - Unknown or terminal not used\r\n* 01 - Manual(Key entry)\r\n* 02 - For Visa: Magnetic stripe read;\r\n\r\nCVV checking may not be possible.\r\n\r\nFor Mastercard: Magnetic stripe read - track data is not required\r\n\r\nor the acquirer is not qualified to use a value of 90,\r\n\r\nso Mastercard replaced the 90 or 91 with the value of 2.\r\n\r\n* 03 - Bar code/Payment code read\r\n* 04 - OCR coding read (POS Check)\r\n* 05 - Integrated circuit card read; CVV data reliable\r\n* 06 - Track One read(Visa only)\r\n* 07 - Account number auto-entry via contactless chip\r\n* 10 - Credential on file\r\n* 79 - Acquirer generated transaction due to a chip card failure of a hybrid terminal(MC only)\r\n* 80 - Terminal defaulted to read the magnetic stripe after a chip card failure(MC Only)\r\n* 81 - Electronic Commerce transaction (MC Only)\r\n* 82 - PAN Auto Entry via Server(Issuer, Acquirer, Third Party Vendor System)\r\n* 90 - Magnetic stripe read and exact content of track one or two included\r\n* 91 - Account number auto-entry via contactless magnetic stripe\r\n* 95 - Integrated circuit card; CVV data may be unreliable(Visa only)\r\n* 96 - Stored Value from Pre-Registered Checkout service",
            "type": "string"
          },
          "authorizationCode": {
            "type": "string"
          },
          "authNetworkIdentifier": {
            "type": "string"
          },
          "authorizationSourceCode": {
            "description": "Possible values:\r\n* 6 - Offline approval; POS - device generated\r\n* 7 - Acquirer approval: BASE I unavailable\r\n* 8 - Acquirer approval: referral\r\n* 9 - No authorization source code; non - authorized transactions\r\n* B - Response provided by STIP;\r\n* transaction met Visa transaction advisor service criteria\r\n* D - Referral: authorization code manually entered\r\n* E - Offline approval: auth\r\n* F - CAFIS Interface Off Line Post-Auth(currently in use by Japan Acquirer Services, JAS)\r\n* G - Issuer Approval, Post-Auth Space – Issuer Generated Response(Visa only)\r\n\r\nSpace - Default value, if acquirer cannot define it",
            "type": "string"
          },
          "cardholderIdentificationMethod": {
            "description": "Possible values:\r\n\r\nSpace - Not specified\r\n* 1 - Signature\r\n* 2 - PIN\r\n* 3 - Unattended\r\n* 4 - MOTO",
            "type": "string"
          },
          "authorizationCharacteristicsIndicator": {
            "type": "string"
          },
          "pS2000TransactionIdentifier": {
            "type": "string"
          },
          "validationCode": {
            "type": "string"
          },
          "transactionCode": {
            "type": "string"
          },
          "authorizationResponseCode": {
            "description": "Visa: Authorization Response Code\r\n\r\nDiscover: Response Code\r\n\r\nAmex: Approval Code",
            "type": "string"
          },
          "transactionFee": {
            "format": "int64",
            "type": "integer"
          },
          "transactionFeeIndicator": {
            "type": "string"
          }
        }
      }
    }
  }
}
```