Skip to content
Navigation

Save the commerce settlement

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

Nicer staff mutation on the company's Stripe settlement account, the account checkout collects into. Agency admins pass the route scope but are refused with 403 ERROR_DO_NOT_HAVE_PERMISSION. Uses expectedVersion for optimistic concurrency and returns the new version. Commission shares and the Smith markup are split plans, saved through POST /commerce/commission-settings/actions (CREATE_SPLIT_PLAN, ASSIGN_SPLIT_PLAN).

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • 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
    • enabled
      boolean
      required
    • expectedVersion
      required

      Any of the following:

      • string
      • null
    • processorAccountReference
      string
      required
      minLength: 1
    • settlementVersion
      string
      required
      minLength: 1
    • type
      string
      required

Returns

200

OK

JSON
  • resourceType
    string
    required
  • status
    string
    required
  • version
    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