Skip to content
Navigation

Upload a remittance file

POST
https://api.nicer.travel/commerce/remittance-batches

Registers a remittance file (CSV, TSV, TXT or XLSX, up to 100 MiB: a clearinghouse or chain statement, an EFT detail) and answers a presigned upload. Once S3 has the file, a worker reads it into draft remittances and lines and matches them (status PARSING, then READY); without a preset it stops at UPLOADED with the column names until APPLY_MAPPING. The same file twice answers 409 COMMISSION_FILE_ALREADY_IMPORTED. Poll GET /remittance-batches/{batchId}. Agency admins and finance staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • Idempotency-Key
    string
    required

    Unique key (8–255 chars) per request; replays return the original result.

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

Request body JSON required

  • channel
    string
    ·
    one of 10 values
    required
    Allowed values: ARC, BSP, CHECK, ACH, WIRE, CARD, STRIPE, CASH, HOST_STATEMENT, OTHER
  • fileName
    string
    required
    maxLength: 255 · minLength: 1
  • format
    CSV
    or
    TSV
    or
    TXT
    or
    XLSX
    required
  • sha256
    string
    required
    pattern: ^[0-9a-f]{64}$
  • sizeBytes
    integer
    required
    maximum: 104857600 · minimum: 1
  • presetId
    optional

    Any of the following:

    • string
    • null
  • source
    optional
    FILE_IMPORT

Returns

200

OK

JSON
  • batch
    object
    required
    • committedAt
      required

      Any of the following:

      • string
      • null
    • companyName
      string
      required
      minLength: 1
    • 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
      string
      required
      minLength: 1
    • errorCode
      required

      Any of the following:

      • string
      • null
    • fileName
      string
      required
      minLength: 1
    • format
      CSV
      or
      TSV
      or
      TXT
      or
      XLSX
      required
    • headers
      array of
      string
      required
    • jobId
      required

      Any of the following:

      • string
      • null
    • presetId
      required

      Any of the following:

      • string
      • null
    • sizeBytes
      integer
      required
      maximum: 9007199254740991
    • source
      FILE_IMPORT
      required
    • status
      string
      ·
      one of 9 values
      required
      Allowed values: AWAITING_UPLOAD, UPLOADED, PARSING, READY, COMMITTING, COMMITTED, UNDONE, DISCARDED, FAILED
    • 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
      array of
      string
      ·
      one of 11 values
      required
      Allowed values: APPLY_MAPPING, SAVE_PRESET, EDIT_LINE, EXCLUDE_LINE, INCLUDE_LINE, SET_MATCH, RESET_MATCHES, RERUN_MATCHING, RECONCILE, UNDO_RECONCILE, DISCARD
    • batchId
      string
      required
      minLength: 1
    • channel
      string
      ·
      one of 10 values
      required
      Allowed values: ARC, BSP, CHECK, ACH, WIRE, CARD, STRIPE, CASH, HOST_STATEMENT, OTHER
    • committedByUserId
      required

      Any of the following:

      • string
      • null
    • mapping
      required

      Any of the following:

      • RemittanceImportMapping
        • columns
          map of
          string
          required
        • defaults
          map of
          string
          required
        • dateFormat
          ISO
          or
          US
          or
          EU
          required
        • decimalSeparator
          .
          or
          ,
          required
        • headerRow
          integer
          required
          maximum: 50 · minimum: 1
        • sheet
          required

          Any of the following:

          • string
          • null
      • null
    • number
      string
      required
      minLength: 1
    • parsedAt
      required

      Any of the following:

      • string
      • null
    • stats
      object
      required
      • excluded
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • invalid
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • invalidRows
        array of
        object
        required
        • errors
          array of
          object
          required
          • code
            REQUIRED
            or
            INVALID_AMOUNT
            or
            INVALID_DATE
            or
            INVALID_RATE
            or
            INVALID_VALUE
            required
          • field
            string
            ·
            one of 18 values
            required
            Allowed values: amount, bookingGross, checkIn, checkOut, clientName, confirmationNumber, currency, fee, fxRate, identifierNumber, originalAmount, originalCurrency, payableOn, payerName, paymentReference, rate, receivedOn, supplierName
        • rowNumber
          integer
          required
          maximum: 9007199254740991
      • lines
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • matched
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • pendingReview
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • proposed
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • totals
        array of
        object
        required
        • amountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • currency
          string
          required
          pattern: ^[A-Z]{3}$
        • matchedMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
      • unmatched
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • zero
        integer
        required
        maximum: 9007199254740991 · minimum: 0
    • undoneAt
      required

      Any of the following:

      • string
      • null
  • upload
    object
    required
    • expiresAt
      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))$
    • headers
      map of
      string
      required
    • method
      string
      required
    • url
      string
      required
      format: uri

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close