Skip to content
Navigation

Run an action on a remittance

POST
https://api.nicer.travel/commerce/remittances/{remittanceId}/actions

Runs one action on posted money: ALLOCATE a line's unallocated money to commission items, REVERSE_ALLOCATION (all or part; the earnings and journals reverse with it), MARK_DUPLICATE or VOID (every allocation is reversed and the deposit's journal mirrored), UNMARK_DUPLICATE, or APPROVE_CLAIM / REJECT_CLAIM a member's claim. Allocating answers 409 COMMISSION_ALLOCATION_EXCEEDS_LINE past the line and 409 COMMISSION_ALLOCATION_WRONG_RECEIVER for money owed to another company. Reversing, voiding and duplicates are finance staff only.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • remittanceId
    string
    required

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

One of the following:

  • object
    • allocations
      array of
      object
      required
      • amountMinor
        integer
        required
        maximum: 9007199254740991
      • commissionItemId
        string
        required
        maxLength: 255 · minLength: 1
    • remittanceLineId
      string
      required
      maxLength: 255 · minLength: 1
    • type
      string
      required
    • note
      optional
      string
      maxLength: 500 · minLength: 1
  • object
    • allocationId
      string
      required
      maxLength: 255 · minLength: 1
    • reason
      string
      required
      maxLength: 500 · minLength: 1
    • type
      string
      required
    • amountMinor
      optional
      integer
      maximum: 9007199254740991
  • object
    • duplicateOfRemittanceId
      string
      required
      maxLength: 255 · minLength: 1
    • reason
      string
      required
      maxLength: 500 · minLength: 1
    • type
      string
      required
  • object
    • reason
      string
      required
      maxLength: 500 · minLength: 1
    • type
      string
      required
  • object
    • reason
      string
      required
      maxLength: 500 · minLength: 1
    • type
      string
      required
  • object
    • claimId
      string
      required
      maxLength: 255 · minLength: 1
    • type
      string
      required
    • note
      optional
      string
      maxLength: 500 · minLength: 1
  • object
    • claimId
      string
      required
      maxLength: 255 · minLength: 1
    • reason
      string
      required
      maxLength: 500 · minLength: 1
    • type
      string
      required

Returns

200

OK

JSON
  • allocatedMinor
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • batchId
    required

    Any of the following:

    • string
    • null
  • channel
    string
    ·
    one of 10 values
    required
    Allowed values: ARC, BSP, CHECK, ACH, WIRE, CARD, STRIPE, CASH, HOST_STATEMENT, OTHER
  • 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))$
  • currency
    string
    required
    pattern: ^[A-Z]{3}$
  • feeMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • grossMinor
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • lineCount
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • number
    string
    required
    minLength: 1
  • payableOn
    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])))$
  • payerKind
    SUPPLIER
    or
    HOST
    or
    CLIENT
    or
    OTHER
    required
  • payerName
    required

    Any of the following:

    • string
    • null
  • postedAt
    required

    Any of the following:

    • string
    • null
  • 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])))$
  • reference
    required

    Any of the following:

    • string
    • null
  • remittanceId
    string
    required
    minLength: 1
  • source
    MANUAL
    or
    FILE_IMPORT
    required
  • state
    DRAFT
    or
    POSTED
    or
    DUPLICATE
    or
    VOID
    required
  • supplierId
    required

    Any of the following:

    • string
    • null
  • unallocatedMinor
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • allowedActions
    array of
    string
    ·
    one of 7 values
    required
    Allowed values: ALLOCATE, REVERSE_ALLOCATION, MARK_DUPLICATE, UNMARK_DUPLICATE, VOID, APPROVE_CLAIM, REJECT_CLAIM
  • claims
    array of
    object
    required
    • amountMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • claimId
      string
      required
      minLength: 1
    • claimantCompanyName
      string
      required
      minLength: 1
    • claimantUserId
      string
      required
      minLength: 1
    • commissionItemId
      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))$
    • decidedAt
      required

      Any of the following:

      • string
      • null
    • decidedByUserId
      required

      Any of the following:

      • string
      • null
    • decisionReason
      required

      Any of the following:

      • string
      • null
    • itemCompanyName
      string
      required
      minLength: 1
    • itemNumber
      string
      required
      minLength: 1
    • note
      required

      Any of the following:

      • string
      • null
    • remittanceId
      string
      required
      minLength: 1
    • remittanceLineId
      string
      required
      minLength: 1
    • status
      PENDING
      or
      APPROVED
      or
      REJECTED
      required
  • createdByUserId
    required

    Any of the following:

    • string
    • null
  • duplicateOfRemittanceId
    required

    Any of the following:

    • string
    • null
  • lines
    array of
    object
    required
    • allocatedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • allocations
      array of
      object
      required
      • allocatedByUserId
        required

        Any of the following:

        • string
        • null
      • allocationId
        string
        required
        minLength: 1
      • amountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • commissionItemId
        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))$
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • entryType
        ALLOCATION
        or
        REVERSAL
        required
      • fxRate
        string
        required
        pattern: ^\d{1,10}\.\d{8}$
      • itemCompanyName
        string
        required
        minLength: 1
      • itemNumber
        string
        required
        minLength: 1
      • lineAmountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • matchScore
        required

        Any of the following:

        • number
        • null
      • method
        AUTO
        or
        SUGGESTED
        or
        MANUAL
        or
        CLAIM
        required
      • reason
        required

        Any of the following:

        • string
        • null
      • 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
        string
        required
        minLength: 1
      • reversedMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • reversesAllocationId
        required

        Any of the following:

        • string
        • null
      • split
        object
        required
        • advisorMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • agencyMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • feesMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • hostMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • houseMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • referrerMinor
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
    • amountMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • archivedAt
      required

      Any of the following:

      • string
      • null
    • batchId
      required

      Any of the following:

      • string
      • null
    • cells
      map of
      string
      required
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • duplicateOfLineId
      required

      Any of the following:

      • string
      • null
    • exclusionReason
      required

      Any of the following:

      • LineExclusionReason
      • null
    • feeMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • fxRate
      required

      Any of the following:

      • FxRate
      • null
    • lineNumber
      integer
      required
      maximum: 9007199254740991
    • matchState
      UNMATCHED
      or
      PROPOSED
      or
      PENDING_REVIEW
      or
      MATCHED
      or
      EXCLUDED
      or
      ZERO
      required
    • originalAmountMinor
      required

      Any of the following:

      • integer
      • null
    • originalCurrency
      required

      Any of the following:

      • CurrencyCode
      • null
    • proposals
      array of
      object
      required
      • autoEligible
        boolean
        required
      • balanceMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • clientName
        string
        required
        minLength: 1
      • commissionItemId
        string
        required
        minLength: 1
      • companyName
        string
        required
        minLength: 1
      • confirmationNumber
        required

        Any of the following:

        • string
        • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • features
        map of
        number
        required
      • itemNumber
        string
        required
        minLength: 1
      • method
        required

        Any of the following:

        • string
          AUTO
          or
          SUGGESTED
          or
          MANUAL
          or
          CLAIM
        • null
      • proposedAmountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • rank
        integer
        required
        maximum: 9007199254740991
      • score
        number
        required
        maximum: 100 · minimum: 0
      • selected
        boolean
        required
      • supplierName
        required

        Any of the following:

        • string
        • null
      • 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
        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
      object
      required
      • checkIn
        required

        Any of the following:

        • string
        • null
      • checkOut
        required

        Any of the following:

        • string
        • null
      • clientName
        required

        Any of the following:

        • string
        • null
      • confirmationNumber
        required

        Any of the following:

        • string
        • null
      • grossMinor
        required

        Any of the following:

        • integer
        • null
      • identifierNumber
        required

        Any of the following:

        • string
        • null
      • rateBps
        required

        Any of the following:

        • integer
        • null
      • supplierName
        required

        Any of the following:

        • string
        • null
    • remittanceId
      string
      required
      minLength: 1
    • remittanceLineId
      string
      required
      minLength: 1
    • unallocatedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • nextLineCursor
    required

    Any of the following:

    • string
    • null
  • notes
    array of
    object
    required
    • authorUserId
      string
      required
      minLength: 1
    • bodyMarkdown
      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))$
    • noteId
      string
      required
      minLength: 1
  • tags
    array of
    string
    required
    maxLength: 64 · minLength: 1
  • voidReason
    required

    Any of the following:

    • string
    • null

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