Skip to content
Navigation

Save commission settings

POST
https://api.nicer.travel/commerce/commission-settings/actions

Saves one section of the company's commission settings against the version the caller read (SAVE_TERMS, SAVE_ARCHIVE_RULES, SAVE_PAYOUTS — enabling payout transfers is staff work — and SAVE_GDS_IMPORT — whether the GDS reservation import records the commission of the reservations it finds, also staff work — and SAVE_TRACKING — whether the agency's members may use commission tracking at all, staff work too), creates, edits or removes an agency identifier (SAVE_IDENTIFIER, REMOVE_IDENTIFIER — a real IATA, ARC, CLIA, TIDS or TRUE number has one owner), for staff links a member company to a host's identifier from one day until another, the end exclusive, or ends or suspends the link by setting that end (SAVE_HOST_RELATIONSHIP), or manages split plans: CREATE_SPLIT_PLAN writes a plan with its rules, which never change (to change shares or the markup, create another plan and assign it from a day): SHARE rules split money received, a MARKUP rule sets the rate Nicer charges over a net-rate hotel's price (15 % when no plan sets one); ASSIGN_SPLIT_PLAN applies a plan, or none, from a date to the company itself, one advisor or, for staff, a member company the host hosts that day. An advisor's own plan answers before the company's, the markup and each share on their own. SAVE_EXPORT_PRESET keeps an export's columns under a name (replacing the company's preset of that name; an import preset is saved from a mapped file, with SAVE_PRESET on its import or remittance batch), REMOVE_IMPORT_PRESET and REMOVE_EXPORT_PRESET delete one of the company's own (built-in presets cannot be removed: 404). Returns the whole settings document. Admins and 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

One of the following:

  • object
    • defaultPaymentTermDays
      integer
      required
      maximum: 730 · minimum: 0
    • expectedVersion
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • paidToleranceMinor
      integer
      required
      maximum: 100000 · minimum: 0
    • type
      string
      required
  • object
    • expectedVersion
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • type
      string
      required
    • unclaimedArchiveDays
      optional

      Any of the following:

      • integer
      • null
  • object
    • isDefault
      boolean
      required
    • kind
      IATA
      or
      ARC
      or
      CLIA
      or
      TIDS
      or
      TRUE
      or
      INTERNAL
      required
    • number
      string
      required
      maxLength: 32 · minLength: 1
    • type
      string
      required
    • identifierId
      optional

      Any of the following:

      • string
      • null
    • label
      optional

      Any of the following:

      • string
      • null
    • paymentInstructions
      optional

      Any of the following:

      • PaymentInstructions
      • null
  • object
    • identifierId
      string
      required
      minLength: 1
    • type
      string
      required
  • object
    • effectiveFrom
      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])))$
    • identifierId
      string
      required
      minLength: 1
    • memberCompanyName
      string
      required
      minLength: 1
    • type
      string
      required
    • claimWindowDays
      optional

      Any of the following:

      • integer
      • null
    • effectiveTo
      optional

      Any of the following:

      • string
      • null
  • object
    • expectedVersion
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • stripeConnectEnabled
      boolean
      required
    • type
      string
      required
  • object
    • expectedVersion
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • gdsImportCommissionEnabled
      boolean
      required
    • type
      string
      required
  • object
    • expectedVersion
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • trackingEnabled
      boolean
      required
    • type
      string
      required
  • object
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • rules
      array of
      object
      required
      • basis
        required

        Any of the following:

        • string
          GROSS
          or
          NET_OF_FEES
          or
          NET_OF_HOST
        • null
      • beneficiaryId
        required

        Any of the following:

        • string
        • null
      • beneficiaryKind
        required

        Any of the following:

        • string
          HOST
          or
          AGENCY
          or
          ADVISOR
          or
          REFERRER
        • null
      • feeBearer
        required

        Any of the following:

        • string
          HOUSE
          or
          ADVISOR
          or
          PRO_RATA
        • null
      • priority
        integer
        required
        maximum: 1000 · minimum: 0
      • ruleId
        string
        required
        pattern: ^[A-Za-z0-9_-]{1,64}$
      • scopeKind
        ALL
        or
        CATEGORY
        or
        SUPPLIER
        or
        ITEM_KIND
        or
        IDENTIFIER
        required
      • scopeValue
        required

        Any of the following:

        • string
        • null
      • shareBps
        integer
        required
        maximum: 10000 · minimum: 0
      • kind
        optional
        SHARE
        or
        MARKUP
        default: "SHARE"
    • type
      string
      required
  • object
    • assigneeKind
      COMPANY
      or
      ADVISOR
      or
      MEMBER
      required
    • effectiveFrom
      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])))$
    • splitPlanId
      required

      Any of the following:

      • string
      • null
    • type
      string
      required
    • assigneeId
      optional

      Any of the following:

      • string
      • null
  • object
    • presetId
      string
      required
      maxLength: 255 · minLength: 1
    • type
      string
      required
  • object
    • columns
      array of
      string
      required
      pattern: ^[A-Z][A-Z0-9_]{0,63}$
    • format
      CSV
      or
      XLSX
      or
      PDF
      required
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • subject
      string
      ·
      one of 9 values
      required
      Allowed values: COMMISSION_ITEMS, PAYMENTS, REMITTANCES, STATEMENTS, SUPPLIERS, PAYEES, PAYOUTS, COMMISSION_INVOICES, EARNINGS
    • type
      string
      required
    • groupBy
      optional

      Any of the following:

      • ExportColumn
      • null
    • totalsOnly
      optional
      boolean
  • object
    • presetId
      string
      required
      maxLength: 255 · minLength: 1
    • type
      string
      required

Returns

200

OK

JSON
  • exportPresets
    array of
    object
    required
    • columns
      array of
      string
      required
      pattern: ^[A-Z][A-Z0-9_]{0,63}$
    • companyName
      required

      Any of the following:

      • string
      • null
    • 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))$
    • format
      CSV
      or
      XLSX
      or
      PDF
      required
    • groupBy
      required

      Any of the following:

      • ExportColumn
      • null
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • presetId
      string
      required
      minLength: 1
    • subject
      string
      ·
      one of 9 values
      required
      Allowed values: COMMISSION_ITEMS, PAYMENTS, REMITTANCES, STATEMENTS, SUPPLIERS, PAYEES, PAYOUTS, COMMISSION_INVOICES, EARNINGS
    • totalsOnly
      boolean
      required
    • 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))$
  • hostRelationships
    array of
    object
    required
    • claimWindowDays
      required

      Any of the following:

      • integer
      • null
    • effectiveFrom
      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])))$
    • effectiveTo
      required

      Any of the following:

      • string
      • null
    • hostCompanyName
      string
      required
      minLength: 1
    • identifierId
      string
      required
      minLength: 1
    • memberCompanyName
      string
      required
      minLength: 1
  • identifiers
    array of
    object
    required
    • companyName
      string
      required
      minLength: 1
    • identifierId
      string
      required
      minLength: 1
    • isDefault
      boolean
      required
    • kind
      IATA
      or
      ARC
      or
      CLIA
      or
      TIDS
      or
      TRUE
      or
      INTERNAL
      required
    • label
      required

      Any of the following:

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

      Any of the following:

      • PaymentInstructions
        • checkPayableTo
          required

          Any of the following:

          • string
          • null
        • mailingAddress
          required

          Any of the following:

          • string
          • null
        • notes
          required

          Any of the following:

          • string
          • null
      • null
  • importPresets
    array of
    ImportPreset
    required

    One of the following:

    • object
      • companyName
        required

        Any of the following:

        • string
        • null
      • 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))$
      • name
        string
        required
        minLength: 1
      • presetId
        string
        required
        minLength: 1
      • 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))$
      • channel
        null
        required
      • kind
        string
        required
      • mapping
        object
        required
        • 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
    • object
      • companyName
        required

        Any of the following:

        • string
        • null
      • 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))$
      • name
        string
        required
        minLength: 1
      • presetId
        string
        required
        minLength: 1
      • 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))$
      • channel
        required

        Any of the following:

        • CommissionChannel
        • null
      • kind
        string
        required
      • mapping
        object
        required
        • 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
  • settings
    object
    required
    • companyName
      string
      required
      minLength: 1
    • defaultPaymentTermDays
      integer
      required
      maximum: 730 · minimum: 0
    • gdsImportCommissionEnabled
      boolean
      required
    • paidToleranceMinor
      integer
      required
      maximum: 100000 · minimum: 0
    • payouts
      object
      required
      • stripeConnectEnabled
        boolean
        required
    • trackingEnabled
      boolean
      required
    • unclaimedArchiveDays
      required

      Any of the following:

      • integer
      • null
    • updatedAt
      required

      Any of the following:

      • string
      • null
    • version
      integer
      required
      maximum: 9007199254740991 · minimum: 0
  • splitPlanAssignments
    array of
    object
    required
    • assigneeId
      string
      required
      minLength: 1
    • assigneeKind
      COMPANY
      or
      ADVISOR
      or
      MEMBER
      required
    • companyName
      string
      required
      minLength: 1
    • effectiveFrom
      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])))$
    • effectiveTo
      required

      Any of the following:

      • string
      • null
    • splitPlanId
      string
      required
      minLength: 1
  • splitPlans
    array of
    object
    required
    • 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
      required

      Any of the following:

      • string
      • null
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • rules
      array of
      object
      required
      • basis
        required

        Any of the following:

        • string
          GROSS
          or
          NET_OF_FEES
          or
          NET_OF_HOST
        • null
      • beneficiaryId
        required

        Any of the following:

        • string
        • null
      • beneficiaryKind
        required

        Any of the following:

        • string
          HOST
          or
          AGENCY
          or
          ADVISOR
          or
          REFERRER
        • null
      • feeBearer
        required

        Any of the following:

        • string
          HOUSE
          or
          ADVISOR
          or
          PRO_RATA
        • null
      • kind
        SHARE
        or
        MARKUP
        required
      • priority
        integer
        required
        maximum: 1000 · minimum: 0
      • ruleId
        string
        required
        pattern: ^[A-Za-z0-9_-]{1,64}$
      • scopeKind
        ALL
        or
        CATEGORY
        or
        SUPPLIER
        or
        ITEM_KIND
        or
        IDENTIFIER
        required
      • scopeValue
        required

        Any of the following:

        • string
        • null
      • shareBps
        integer
        required
        maximum: 10000 · minimum: 0
    • splitPlanId
      string
      required
      minLength: 1

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