---
title: "Run an action on a remittance file"
---

> 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.

# Run an action on a remittance file

Path: Nicer API › Commerce

`POST /commerce/remittance-batches/{batchId}/actions`

URL: `https://api.nicer.travel/commerce/remittance-batches/{batchId}/actions`

Runs one action on a remittance file under review: APPLY_MAPPING (reads the file again), SAVE_PRESET, EDIT_LINE, EXCLUDE_LINE, INCLUDE_LINE, SET_MATCH (the items a line pays and how much), RESET_MATCHES, RERUN_MATCHING, RECONCILE (posts the money and allocates every chosen match as a resumable job), UNDO_RECONCILE (reverses every allocation and voids the remittances) and DISCARD (before reconciling). Jobs answer at once with `jobId`; poll the file (status COMMITTING while the reconcile runs, then COMMITTED; a reconcile that failed resumes when asked again). A file reconciled once cannot be reconciled again. Agency admins and finance staff; UNDO_RECONCILE Nicer staff only.

## Authentication

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

## Path parameters

- `batchId` (`commerce.remittanceBatches.actions.create.path.batchId`; string, required)

## Header parameters

- `Idempotency-Key` (`commerce.remittanceBatches.actions.create.header.Idempotency-Key`; string, required) — Unique key (8–255 chars) per request; replays return the original result.
- `x-nicer-company` (`commerce.remittanceBatches.actions.create.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Request body

_Required._

Every option has:

- `type` (`<option>.type`; string, required)

One of the following, each adding:

- `object` (`commerce.remittanceBatches.actions.create.1`)
  - `mapping` (`commerce.remittanceBatches.actions.create.1.mapping`; object, required)
    - `columns` (`commerce.remittanceBatches.actions.create.1.mapping.columns`; map of string, required)
    - `defaults` (`commerce.remittanceBatches.actions.create.1.mapping.defaults`; map of string, required)
    - `dateFormat` (`commerce.remittanceBatches.actions.create.1.mapping.dateFormat`; string, required)
      - one of `"ISO"`, `"US"`, `"EU"`
    - `decimalSeparator` (`commerce.remittanceBatches.actions.create.1.mapping.decimalSeparator`; string, required)
      - one of `"."`, `","`
    - `headerRow` (`commerce.remittanceBatches.actions.create.1.mapping.headerRow`; integer, required)
      - maximum: `50` · minimum: `1`
    - `sheet` (`commerce.remittanceBatches.actions.create.1.mapping.sheet`; any of, required)
      - any of the following: `string`, `null`
- `object` (`commerce.remittanceBatches.actions.create.2`)
  - `name` (`commerce.remittanceBatches.actions.create.2.name`; string, required)
    - maxLength: `100` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.3`)
  - `changes` (`commerce.remittanceBatches.actions.create.3.changes`; object, required)
    - `amountMinor` (`commerce.remittanceBatches.actions.create.3.changes.amountMinor`; integer, optional)
      - maximum: `9007199254740991` · minimum: `-9007199254740991`
    - `checkIn` (`commerce.remittanceBatches.actions.create.3.changes.checkIn`; any of, optional)
      - any of the following: `string`, `null`
    - `checkOut` (`commerce.remittanceBatches.actions.create.3.changes.checkOut`; any of, optional)
      - any of the following: `string`, `null`
    - `clientName` (`commerce.remittanceBatches.actions.create.3.changes.clientName`; any of, optional)
      - any of the following: `string`, `null`
    - `confirmationNumber` (`commerce.remittanceBatches.actions.create.3.changes.confirmationNumber`; any of, optional)
      - any of the following: `string`, `null`
    - `identifierNumber` (`commerce.remittanceBatches.actions.create.3.changes.identifierNumber`; any of, optional)
      - any of the following: `string`, `null`
    - `supplierName` (`commerce.remittanceBatches.actions.create.3.changes.supplierName`; any of, optional)
      - any of the following: `string`, `null`
  - `remittanceLineId` (`commerce.remittanceBatches.actions.create.3.remittanceLineId`; string, required)
    - maxLength: `255` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.4`)
  - `reason` (`commerce.remittanceBatches.actions.create.4.reason`; string, required)
    - one of `"DUPLICATE"`, `"NOT_COMMISSION"`, `"OTHER_COMPANY"`, `"OTHER"`
  - `remittanceLineId` (`commerce.remittanceBatches.actions.create.4.remittanceLineId`; string, required)
    - maxLength: `255` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.5`)
  - `remittanceLineId` (`commerce.remittanceBatches.actions.create.5.remittanceLineId`; string, required)
    - maxLength: `255` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.6`)
  - `allocations` (`commerce.remittanceBatches.actions.create.6.allocations`; array of object, required)
    - `amountMinor` (`commerce.remittanceBatches.actions.create.6.allocations.amountMinor`; integer, required)
      - maximum: `9007199254740991`
    - `commissionItemId` (`commerce.remittanceBatches.actions.create.6.allocations.commissionItemId`; string, required)
      - maxLength: `255` · minLength: `1`
  - `remittanceLineId` (`commerce.remittanceBatches.actions.create.6.remittanceLineId`; string, required)
    - maxLength: `255` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.7`)
  - `remittanceLineId` (`commerce.remittanceBatches.actions.create.7.remittanceLineId`; string, optional)
    - maxLength: `255` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.8`)
- `object` (`commerce.remittanceBatches.actions.create.9`)
- `object` (`commerce.remittanceBatches.actions.create.10`)
  - `reason` (`commerce.remittanceBatches.actions.create.10.reason`; string, required)
    - maxLength: `500` · minLength: `1`
- `object` (`commerce.remittanceBatches.actions.create.11`)
  - `reason` (`commerce.remittanceBatches.actions.create.11.reason`; string, optional)
    - maxLength: `500` · minLength: `1`

## Example request

```json
{
  "mapping": {
    "columns": {
      "property1": "string",
      "property2": "string"
    },
    "defaults": {
      "property1": "string",
      "property2": "string"
    },
    "dateFormat": "ISO",
    "decimalSeparator": ".",
    "headerRow": 1,
    "sheet": "string"
  },
  "type": "APPLY_MAPPING"
}
```

## Code samples

### JavaScript SDK

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

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

await nicer.commerce.remittanceBatches.actions.create({
  "batchId": "string",
  "mapping": {
    "columns": {
      "property1": "string",
      "property2": "string"
    },
    "defaults": {
      "property1": "string",
      "property2": "string"
    },
    "dateFormat": "ISO",
    "decimalSeparator": ".",
    "headerRow": 1,
    "sheet": "string"
  },
  "type": "APPLY_MAPPING"
});
```

### Nicer CLI

```bash
nicer commerce remittance-batches actions create --batch-id 'string' --company "$NICER_COMPANY" --input - <<'JSON'
{
  "mapping": {
    "columns": {
      "property1": "string",
      "property2": "string"
    },
    "defaults": {
      "property1": "string",
      "property2": "string"
    },
    "dateFormat": "ISO",
    "decimalSeparator": ".",
    "headerRow": 1,
    "sheet": "string"
  },
  "type": "APPLY_MAPPING"
}
JSON
```

### cURL

```bash
curl --request POST \
  --url 'https://api.nicer.travel/commerce/remittance-batches/<batchId>/actions' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: string' \
  --header 'x-nicer-company: string' \
  --data '
{
  "mapping": {
    "columns": {
      "property1": "string",
      "property2": "string"
    },
    "defaults": {
      "property1": "string",
      "property2": "string"
    },
    "dateFormat": "ISO",
    "decimalSeparator": ".",
    "headerRow": 1,
    "sheet": "string"
  },
  "type": "APPLY_MAPPING"
}
'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/remittance-batches/<batchId>/actions';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Idempotency-Key': 'string',
    'x-nicer-company': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    mapping: {
      columns: {property1: 'string', property2: 'string'},
      defaults: {property1: 'string', property2: 'string'},
      dateFormat: 'ISO',
      decimalSeparator: '.',
      headerRow: 1,
      sheet: 'string'
    },
    type: 'APPLY_MAPPING'
  })
};

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/<batchId>/actions"

payload = {
    "mapping": {
        "columns": {
            "property1": "string",
            "property2": "string"
        },
        "defaults": {
            "property1": "string",
            "property2": "string"
        },
        "dateFormat": "ISO",
        "decimalSeparator": ".",
        "headerRow": 1,
        "sheet": "string"
    },
    "type": "APPLY_MAPPING"
}
headers = {
    "Content-Type": "application/json",
    "Idempotency-Key": "string",
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "batch": {
    "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": [
            {
              "code": "REQUIRED",
              "field": "amount"
            }
          ],
          "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"
  },
  "line": {
    "allocatedMinor": -9007199254740991,
    "allocations": [
      {
        "allocatedByUserId": "string",
        "allocationId": "string",
        "amountMinor": -9007199254740991,
        "commissionItemId": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "currency": "string",
        "entryType": "ALLOCATION",
        "fxRate": "string",
        "itemCompanyName": "string",
        "itemNumber": "string",
        "lineAmountMinor": -9007199254740991,
        "matchScore": 100,
        "method": "AUTO",
        "reason": "string",
        "receivedOn": "2019-08-24",
        "remittanceLineId": "string",
        "reversedMinor": 9007199254740991,
        "reversesAllocationId": "string",
        "split": {
          "advisorMinor": -9007199254740991,
          "agencyMinor": -9007199254740991,
          "feesMinor": -9007199254740991,
          "hostMinor": -9007199254740991,
          "houseMinor": -9007199254740991,
          "referrerMinor": -9007199254740991
        }
      }
    ],
    "amountMinor": -9007199254740991,
    "archivedAt": "2019-08-24T14:15:22Z",
    "batchId": "string",
    "cells": {
      "property1": "string",
      "property2": "string"
    },
    "currency": "string",
    "duplicateOfLineId": "string",
    "exclusionReason": "DUPLICATE",
    "feeMinor": 9007199254740991,
    "fxRate": "string",
    "lineNumber": 9007199254740991,
    "matchState": "UNMATCHED",
    "originalAmountMinor": -9007199254740991,
    "originalCurrency": "string",
    "proposals": [
      {
        "autoEligible": true,
        "balanceMinor": 9007199254740991,
        "clientName": "string",
        "commissionItemId": "string",
        "companyName": "string",
        "confirmationNumber": "string",
        "currency": "string",
        "features": {
          "property1": -100,
          "property2": -100
        },
        "itemNumber": "string",
        "method": "AUTO",
        "proposedAmountMinor": 9007199254740991,
        "rank": 9007199254740991,
        "score": 100,
        "selected": true,
        "supplierName": "string",
        "travelEnd": "2019-08-24",
        "travelStart": "2019-08-24"
      }
    ],
    "received": {
      "checkIn": "2019-08-24",
      "checkOut": "2019-08-24",
      "clientName": "string",
      "confirmationNumber": "string",
      "grossMinor": -9007199254740991,
      "identifierNumber": "string",
      "rateBps": 10000,
      "supplierName": "string"
    },
    "remittanceId": "string",
    "remittanceLineId": "string",
    "unallocatedMinor": -9007199254740991
  }
}
```

- `batch` (`commerce.remittanceBatches.actions.create.response.200.batch`; object, required)
  - `committedAt` (`commerce.remittanceBatches.actions.create.response.200.batch.committedAt`; any of, required)
    - any of the following: `string`, `null`
  - `companyName` (`commerce.remittanceBatches.actions.create.response.200.batch.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.remittanceBatches.actions.create.response.200.batch.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.actions.create.response.200.batch.createdByUserId`; string, required)
    - minLength: `1`
  - `errorCode` (`commerce.remittanceBatches.actions.create.response.200.batch.errorCode`; any of, required)
    - any of the following: `string`, `null`
  - `fileName` (`commerce.remittanceBatches.actions.create.response.200.batch.fileName`; string, required)
    - minLength: `1`
  - `format` (`commerce.remittanceBatches.actions.create.response.200.batch.format`; string, required)
    - one of `"CSV"`, `"TSV"`, `"TXT"`, `"XLSX"`
  - `headers` (`commerce.remittanceBatches.actions.create.response.200.batch.headers`; array of string, required)
  - `jobId` (`commerce.remittanceBatches.actions.create.response.200.batch.jobId`; any of, required)
    - any of the following: `string`, `null`
  - `presetId` (`commerce.remittanceBatches.actions.create.response.200.batch.presetId`; any of, required)
    - any of the following: `string`, `null`
  - `sizeBytes` (`commerce.remittanceBatches.actions.create.response.200.batch.sizeBytes`; integer, required)
    - maximum: `9007199254740991`
  - `source` (`commerce.remittanceBatches.actions.create.response.200.batch.source`; string, required)
    - one of `"FILE_IMPORT"`
  - `status` (`commerce.remittanceBatches.actions.create.response.200.batch.status`; string, required)
    - one of `"AWAITING_UPLOAD"`, `"UPLOADED"`, `"PARSING"`, `"READY"`, `"COMMITTING"`, `"COMMITTED"`, `"UNDONE"`, `"DISCARDED"`, `"FAILED"`
  - `updatedAt` (`commerce.remittanceBatches.actions.create.response.200.batch.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.actions.create.response.200.batch.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.actions.create.response.200.batch.batchId`; string, required)
    - minLength: `1`
  - `channel` (`commerce.remittanceBatches.actions.create.response.200.batch.channel`; string, required)
    - one of `"ARC"`, `"BSP"`, `"CHECK"`, `"ACH"`, `"WIRE"`, `"CARD"`, `"STRIPE"`, `"CASH"`, `"HOST_STATEMENT"`, `"OTHER"`
  - `committedByUserId` (`commerce.remittanceBatches.actions.create.response.200.batch.committedByUserId`; any of, required)
    - any of the following: `string`, `null`
  - `mapping` (`commerce.remittanceBatches.actions.create.response.200.batch.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.actions.create.response.200.batch.number`; string, required)
    - minLength: `1`
  - `parsedAt` (`commerce.remittanceBatches.actions.create.response.200.batch.parsedAt`; any of, required)
    - any of the following: `string`, `null`
  - `stats` (`commerce.remittanceBatches.actions.create.response.200.batch.stats`; object, required)
    - `excluded` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.excluded`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `invalid` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.invalid`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `invalidRows` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.invalidRows`; array of object, required)
      - `errors` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.invalidRows.errors`; array of object, required)
        - `code` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.invalidRows.errors.code`; string, required)
          - one of `"REQUIRED"`, `"INVALID_AMOUNT"`, `"INVALID_DATE"`, `"INVALID_RATE"`, `"INVALID_VALUE"`
        - `field` (`commerce.remittanceBatches.actions.create.response.200.batch.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.actions.create.response.200.batch.stats.invalidRows.rowNumber`; integer, required)
        - maximum: `9007199254740991`
    - `lines` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.lines`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `matched` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.matched`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `pendingReview` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.pendingReview`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `proposed` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.proposed`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `totals` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.totals`; array of object, required)
      - `amountMinor` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.totals.amountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `currency` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.totals.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
      - `matchedMinor` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.totals.matchedMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
    - `unmatched` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.unmatched`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
    - `zero` (`commerce.remittanceBatches.actions.create.response.200.batch.stats.zero`; integer, required)
      - maximum: `9007199254740991` · minimum: `0`
  - `undoneAt` (`commerce.remittanceBatches.actions.create.response.200.batch.undoneAt`; any of, required)
    - any of the following: `string`, `null`
- `line` (`commerce.remittanceBatches.actions.create.response.200.line`; any of, required)
  - any of the following:
    - `RemittanceLine`
      - `allocatedMinor` (`RemittanceLine.allocatedMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `allocations` (`RemittanceLine.allocations`; array of object, required)
        - `allocatedByUserId` (`RemittanceLine.allocations.allocatedByUserId`; any of, required)
          - any of the following: `string`, `null`
        - `allocationId` (`RemittanceLine.allocations.allocationId`; string, required)
          - minLength: `1`
        - `amountMinor` (`RemittanceLine.allocations.amountMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `-9007199254740991`
        - `commissionItemId` (`RemittanceLine.allocations.commissionItemId`; string, required)
          - minLength: `1`
        - `createdAt` (`RemittanceLine.allocations.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))$`
        - `currency` (`RemittanceLine.allocations.currency`; string, required)
          - pattern: `^[A-Z]{3}$`
        - `entryType` (`RemittanceLine.allocations.entryType`; string, required)
          - one of `"ALLOCATION"`, `"REVERSAL"`
        - `fxRate` (`RemittanceLine.allocations.fxRate`; string, required)
          - pattern: `^\d{1,10}\.\d{8}$`
        - `itemCompanyName` (`RemittanceLine.allocations.itemCompanyName`; string, required)
          - minLength: `1`
        - `itemNumber` (`RemittanceLine.allocations.itemNumber`; string, required)
          - minLength: `1`
        - `lineAmountMinor` (`RemittanceLine.allocations.lineAmountMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `-9007199254740991`
        - `matchScore` (`RemittanceLine.allocations.matchScore`; any of, required)
          - any of the following: `number`, `null`
        - `method` (`RemittanceLine.allocations.method`; string, required)
          - one of `"AUTO"`, `"SUGGESTED"`, `"MANUAL"`, `"CLAIM"`
        - `reason` (`RemittanceLine.allocations.reason`; any of, required)
          - any of the following: `string`, `null`
        - `receivedOn` (`RemittanceLine.allocations.receivedOn`; string, required)
          - format: `date` · 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])))$`
        - `remittanceLineId` (`RemittanceLine.allocations.remittanceLineId`; string, required)
          - minLength: `1`
        - `reversedMinor` (`RemittanceLine.allocations.reversedMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `reversesAllocationId` (`RemittanceLine.allocations.reversesAllocationId`; any of, required)
          - any of the following: `string`, `null`
        - `split` (`RemittanceLine.allocations.split`; object, required)
          - `advisorMinor` (`RemittanceLine.allocations.split.advisorMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `agencyMinor` (`RemittanceLine.allocations.split.agencyMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `feesMinor` (`RemittanceLine.allocations.split.feesMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `hostMinor` (`RemittanceLine.allocations.split.hostMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `houseMinor` (`RemittanceLine.allocations.split.houseMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `referrerMinor` (`RemittanceLine.allocations.split.referrerMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `amountMinor` (`RemittanceLine.amountMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `archivedAt` (`RemittanceLine.archivedAt`; any of, required)
        - any of the following: `string`, `null`
      - `batchId` (`RemittanceLine.batchId`; any of, required)
        - any of the following: `string`, `null`
      - `cells` (`RemittanceLine.cells`; map of string, required)
      - `currency` (`RemittanceLine.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
      - `duplicateOfLineId` (`RemittanceLine.duplicateOfLineId`; any of, required)
        - any of the following: `string`, `null`
      - `exclusionReason` (`RemittanceLine.exclusionReason`; any of, required)
        - any of the following: `LineExclusionReason`, `null`
      - `feeMinor` (`RemittanceLine.feeMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
      - `fxRate` (`RemittanceLine.fxRate`; any of, required)
        - any of the following: `FxRate`, `null`
      - `lineNumber` (`RemittanceLine.lineNumber`; integer, required)
        - maximum: `9007199254740991`
      - `matchState` (`RemittanceLine.matchState`; string, required)
        - one of `"UNMATCHED"`, `"PROPOSED"`, `"PENDING_REVIEW"`, `"MATCHED"`, `"EXCLUDED"`, `"ZERO"`
      - `originalAmountMinor` (`RemittanceLine.originalAmountMinor`; any of, required)
        - any of the following: `integer`, `null`
      - `originalCurrency` (`RemittanceLine.originalCurrency`; any of, required)
        - any of the following: `CurrencyCode`, `null`
      - `proposals` (`RemittanceLine.proposals`; array of object, required)
        - `autoEligible` (`RemittanceLine.proposals.autoEligible`; boolean, required)
        - `balanceMinor` (`RemittanceLine.proposals.balanceMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `clientName` (`RemittanceLine.proposals.clientName`; string, required)
          - minLength: `1`
        - `commissionItemId` (`RemittanceLine.proposals.commissionItemId`; string, required)
          - minLength: `1`
        - `companyName` (`RemittanceLine.proposals.companyName`; string, required)
          - minLength: `1`
        - `confirmationNumber` (`RemittanceLine.proposals.confirmationNumber`; any of, required)
          - any of the following: `string`, `null`
        - `currency` (`RemittanceLine.proposals.currency`; string, required)
          - pattern: `^[A-Z]{3}$`
        - `features` (`RemittanceLine.proposals.features`; map of number, required)
        - `itemNumber` (`RemittanceLine.proposals.itemNumber`; string, required)
          - minLength: `1`
        - `method` (`RemittanceLine.proposals.method`; any of, required)
          - any of the following:
            - `string`: one of `"AUTO"`, `"SUGGESTED"`, `"MANUAL"`, `"CLAIM"`
            - `null`
        - `proposedAmountMinor` (`RemittanceLine.proposals.proposedAmountMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `rank` (`RemittanceLine.proposals.rank`; integer, required)
          - maximum: `9007199254740991`
        - `score` (`RemittanceLine.proposals.score`; number, required)
          - maximum: `100` · minimum: `0`
        - `selected` (`RemittanceLine.proposals.selected`; boolean, required)
        - `supplierName` (`RemittanceLine.proposals.supplierName`; any of, required)
          - any of the following: `string`, `null`
        - `travelEnd` (`RemittanceLine.proposals.travelEnd`; string, required)
          - format: `date` · 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])))$`
        - `travelStart` (`RemittanceLine.proposals.travelStart`; string, required)
          - format: `date` · 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])))$`
      - `received` (`RemittanceLine.received`; object, required)
        - `checkIn` (`RemittanceLine.received.checkIn`; any of, required)
          - any of the following: `string`, `null`
        - `checkOut` (`RemittanceLine.received.checkOut`; any of, required)
          - any of the following: `string`, `null`
        - `clientName` (`RemittanceLine.received.clientName`; any of, required)
          - any of the following: `string`, `null`
        - `confirmationNumber` (`RemittanceLine.received.confirmationNumber`; any of, required)
          - any of the following: `string`, `null`
        - `grossMinor` (`RemittanceLine.received.grossMinor`; any of, required)
          - any of the following: `integer`, `null`
        - `identifierNumber` (`RemittanceLine.received.identifierNumber`; any of, required)
          - any of the following: `string`, `null`
        - `rateBps` (`RemittanceLine.received.rateBps`; any of, required)
          - any of the following: `integer`, `null`
        - `supplierName` (`RemittanceLine.received.supplierName`; any of, required)
          - any of the following: `string`, `null`
      - `remittanceId` (`RemittanceLine.remittanceId`; string, required)
        - minLength: `1`
      - `remittanceLineId` (`RemittanceLine.remittanceLineId`; string, required)
        - minLength: `1`
      - `unallocatedMinor` (`RemittanceLine.unallocatedMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `-9007199254740991`
    - `null`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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