---
title: "List remittance files"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# List remittance files

Path: Nicer API › Commerce

`GET /commerce/remittance-batches`

URL: `https://api.nicer.travel/commerce/remittance-batches`

The company's remittance files, newest first (25 by default, at most 100, keyset-paged), each with its status and where its lines stand. Agency admins and finance staff.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `channel` (`commerce.remittanceBatches.list.query.channel`; string, optional)
  - minLength: `1`
- `cursor` (`commerce.remittanceBatches.list.query.cursor`; string, optional)
  - maxLength: `2048` · minLength: `1`
- `limit` (`commerce.remittanceBatches.list.query.limit`; integer, optional)
  - maximum: `100` · minimum: `1`
- `status` (`commerce.remittanceBatches.list.query.status`; string, optional)
  - minLength: `1`

## Header parameters

- `x-nicer-company` (`commerce.remittanceBatches.list.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.commerce.remittanceBatches.list();
```

### Nicer CLI

```bash
nicer commerce remittance-batches list --company "$NICER_COMPANY"
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/commerce/remittance-batches \
  --header 'Authorization: Bearer <token>' \
  --header 'x-nicer-company: string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/remittance-batches';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': 'string', Authorization: 'Bearer <token>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/commerce/remittance-batches"

headers = {
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "committedAt": "2019-08-24T14:15:22Z",
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "createdByUserId": "string",
      "errorCode": "string",
      "fileName": "string",
      "format": "CSV",
      "headers": [
        "string"
      ],
      "jobId": "string",
      "presetId": "string",
      "sizeBytes": 9007199254740991,
      "source": "FILE_IMPORT",
      "status": "AWAITING_UPLOAD",
      "updatedAt": "2019-08-24T14:15:22Z",
      "allowedActions": [
        "APPLY_MAPPING"
      ],
      "batchId": "string",
      "channel": "ARC",
      "committedByUserId": "string",
      "mapping": {
        "columns": {
          "property1": "string",
          "property2": "string"
        },
        "defaults": {
          "property1": "string",
          "property2": "string"
        },
        "dateFormat": "ISO",
        "decimalSeparator": ".",
        "headerRow": 1,
        "sheet": "string"
      },
      "number": "string",
      "parsedAt": "2019-08-24T14:15:22Z",
      "stats": {
        "excluded": 9007199254740991,
        "invalid": 9007199254740991,
        "invalidRows": [
          {
            "errors": [
              {}
            ],
            "rowNumber": 9007199254740991
          }
        ],
        "lines": 9007199254740991,
        "matched": 9007199254740991,
        "pendingReview": 9007199254740991,
        "proposed": 9007199254740991,
        "totals": [
          {
            "amountMinor": -9007199254740991,
            "currency": "string",
            "matchedMinor": -9007199254740991
          }
        ],
        "unmatched": 9007199254740991,
        "zero": 9007199254740991
      },
      "undoneAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string"
}
```

- `items` (`commerce.remittanceBatches.list.response.200.items`; array of object, required)
  - `committedAt` (`commerce.remittanceBatches.list.response.200.items.committedAt`; any of, required)
    - any of the following: `string`, `null`
  - `companyName` (`commerce.remittanceBatches.list.response.200.items.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.remittanceBatches.list.response.200.items.createdAt`; string, required)
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
  - `createdByUserId` (`commerce.remittanceBatches.list.response.200.items.createdByUserId`; string, required)
    - minLength: `1`
  - `errorCode` (`commerce.remittanceBatches.list.response.200.items.errorCode`; any of, required)
    - any of the following: `string`, `null`
  - `fileName` (`commerce.remittanceBatches.list.response.200.items.fileName`; string, required)
    - minLength: `1`
  - `format` (`commerce.remittanceBatches.list.response.200.items.format`; string, required)
    - one of `"CSV"`, `"TSV"`, `"TXT"`, `"XLSX"`
  - `headers` (`commerce.remittanceBatches.list.response.200.items.headers`; array of string, required)
  - `jobId` (`commerce.remittanceBatches.list.response.200.items.jobId`; any of, required)
    - any of the following: `string`, `null`
  - `presetId` (`commerce.remittanceBatches.list.response.200.items.presetId`; any of, required)
    - any of the following: `string`, `null`
  - `sizeBytes` (`commerce.remittanceBatches.list.response.200.items.sizeBytes`; integer, required)
    - maximum: `9007199254740991`
  - `source` (`commerce.remittanceBatches.list.response.200.items.source`; string, required)
    - one of `"FILE_IMPORT"`
  - `status` (`commerce.remittanceBatches.list.response.200.items.status`; string, required)
    - one of `"AWAITING_UPLOAD"`, `"UPLOADED"`, `"PARSING"`, `"READY"`, `"COMMITTING"`, `"COMMITTED"`, `"UNDONE"`, `"DISCARDED"`, `"FAILED"`
  - `updatedAt` (`commerce.remittanceBatches.list.response.200.items.updatedAt`; string, required)
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
  - `allowedActions` (`commerce.remittanceBatches.list.response.200.items.allowedActions`; array of string, required)
    - one of `"APPLY_MAPPING"`, `"SAVE_PRESET"`, `"EDIT_LINE"`, `"EXCLUDE_LINE"`, `"INCLUDE_LINE"`, `"SET_MATCH"`, `"RESET_MATCHES"`, `"RERUN_MATCHING"`, `"RECONCILE"`, `"UNDO_RECONCILE"`, `"DISCARD"`
  - `batchId` (`commerce.remittanceBatches.list.response.200.items.batchId`; string, required)
    - minLength: `1`
  - `channel` (`commerce.remittanceBatches.list.response.200.items.channel`; string, required)
    - one of `"ARC"`, `"BSP"`, `"CHECK"`, `"ACH"`, `"WIRE"`, `"CARD"`, `"STRIPE"`, `"CASH"`, `"HOST_STATEMENT"`, `"OTHER"`
  - `committedByUserId` (`commerce.remittanceBatches.list.response.200.items.committedByUserId`; any of, required)
    - any of the following: `string`, `null`
  - `mapping` (`commerce.remittanceBatches.list.response.200.items.mapping`; any of, required)
    - any of the following:
      - `RemittanceImportMapping`
        - `columns` (`RemittanceImportMapping.columns`; map of string, required)
        - `defaults` (`RemittanceImportMapping.defaults`; map of string, required)
        - `dateFormat` (`RemittanceImportMapping.dateFormat`; string, required)
          - one of `"ISO"`, `"US"`, `"EU"`
        - `decimalSeparator` (`RemittanceImportMapping.decimalSeparator`; string, required)
          - one of `"."`, `","`
        - `headerRow` (`RemittanceImportMapping.headerRow`; integer, required)
          - maximum: `50` · minimum: `1`
        - `sheet` (`RemittanceImportMapping.sheet`; any of, required)
          - any of the following: `string`, `null`
      - `null`
  - `number` (`commerce.remittanceBatches.list.response.200.items.number`; string, required)
    - minLength: `1`
  - `parsedAt` (`commerce.remittanceBatches.list.response.200.items.parsedAt`; any of, required)
    - any of the following: `string`, `null`
  - `stats` (`commerce.remittanceBatches.list.response.200.items.stats`; object, required)
    - `excluded` (`commerce.remittanceBatches.list.response.200.items.stats.excluded`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `invalid` (`commerce.remittanceBatches.list.response.200.items.stats.invalid`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `invalidRows` (`commerce.remittanceBatches.list.response.200.items.stats.invalidRows`; array of object, required)
      - `errors` (`commerce.remittanceBatches.list.response.200.items.stats.invalidRows.errors`; array of object, required)
        - `code` (`commerce.remittanceBatches.list.response.200.items.stats.invalidRows.errors.code`; string, required)
          - one of `"REQUIRED"`, `"INVALID_AMOUNT"`, `"INVALID_DATE"`, `"INVALID_RATE"`, `"INVALID_VALUE"`
        - `field` (`commerce.remittanceBatches.list.response.200.items.stats.invalidRows.errors.field`; string, required)
          - one of `"amount"`, `"bookingGross"`, `"checkIn"`, `"checkOut"`, `"clientName"`, `"confirmationNumber"`, `"currency"`, `"fee"`, `"fxRate"`, `"identifierNumber"`, `"originalAmount"`, `"originalCurrency"`, `"payableOn"`, `"payerName"`, `"paymentReference"`, `"rate"`, `"receivedOn"`, `"supplierName"`
      - `rowNumber` (`commerce.remittanceBatches.list.response.200.items.stats.invalidRows.rowNumber`; integer, required)
        - maximum: `9007199254740991`
    - `lines` (`commerce.remittanceBatches.list.response.200.items.stats.lines`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `matched` (`commerce.remittanceBatches.list.response.200.items.stats.matched`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `pendingReview` (`commerce.remittanceBatches.list.response.200.items.stats.pendingReview`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `proposed` (`commerce.remittanceBatches.list.response.200.items.stats.proposed`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `totals` (`commerce.remittanceBatches.list.response.200.items.stats.totals`; array of object, required)
      - `amountMinor` (`commerce.remittanceBatches.list.response.200.items.stats.totals.amountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `currency` (`commerce.remittanceBatches.list.response.200.items.stats.totals.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
      - `matchedMinor` (`commerce.remittanceBatches.list.response.200.items.stats.totals.matchedMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
    - `unmatched` (`commerce.remittanceBatches.list.response.200.items.stats.unmatched`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `zero` (`commerce.remittanceBatches.list.response.200.items.stats.zero`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
  - `undoneAt` (`commerce.remittanceBatches.list.response.200.items.undoneAt`; any of, required)
    - any of the following: `string`, `null`
- `nextCursor` (`commerce.remittanceBatches.list.response.200.nextCursor`; any of, required)
  - any of the following: `string`, `null`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.remittanceBatches.list.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.remittanceBatches.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.remittanceBatches.list.response.401.errorCode`; string, required)
- `errorMessage` (`commerce.remittanceBatches.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.remittanceBatches.list.response.403.errorCode`; string, required)
- `errorMessage` (`commerce.remittanceBatches.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Commerce/commerce.remittanceBatches.list/index.md
