Skip to content
Navigation

Run a payee action

POST
https://api.nicer.travel/commerce/payees/{payeeId}/actions

One action on a payee of the company (an advisor's user id, or the agency's company name). SAVE_SETTINGS (statement cycle — one to four days of the month, 31 for its last day —, statements on or off and from which date, minimum payout, payout method, legal name, tax form status) against the version read, agency admins and finance staff. START_STRIPE_ONBOARDING creates the payee's Stripe Connect Express account when it has none and answers a hosted onboarding link; REFRESH_STRIPE_ACCOUNT reads back whether Stripe lets it receive transfers. The payee runs these two for themselves; admins and staff for anyone. Returns the payee.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • payeeId
    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
    • payeeKind
      ADVISOR
      or
      COMPANY
      required
    • cycleDays
      array of
      integer
      required
      maximum: 31 · minimum: 1
    • expectedVersion
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • minimumPayoutMinor
      integer
      required
      maximum: 100000000 · minimum: 0
    • statementsEnabled
      boolean
      required
    • taxFormStatus
      MISSING
      or
      W9_ON_FILE
      or
      W8_ON_FILE
      required
    • type
      string
      required
    • legalName
      optional

      Any of the following:

      • string
      • null
    • payoutMethod
      optional

      Any of the following:

      • PayoutMethod
      • null
    • statementsStartOn
      optional

      Any of the following:

      • string
      • null
  • object
    • payeeKind
      ADVISOR
      or
      COMPANY
      required
    • type
      string
      required
  • object
    • payeeKind
      ADVISOR
      or
      COMPANY
      required
    • type
      string
      required

Returns

200

OK

JSON
  • onboardingUrl
    required

    Any of the following:

    • string
    • null
  • payee
    object
    required
    • companyName
      string
      required
      minLength: 1
    • cycleDays
      array of
      integer
      required
      maximum: 31 · minimum: 1
    • legalName
      required

      Any of the following:

      • string
      • null
    • minimumPayoutMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • nextCycleOn
      required

      Any of the following:

      • string
      • null
    • payeeId
      string
      required
      minLength: 1
    • payeeKind
      ADVISOR
      or
      COMPANY
      required
    • payoutMethod
      required

      Any of the following:

      • PayoutMethod
      • null
    • payoutReady
      boolean
      required
    • statementsEnabled
      boolean
      required
    • statementsStartOn
      required

      Any of the following:

      • string
      • null
    • stripeAccountId
      required

      Any of the following:

      • string
      • null
    • stripeTransfersEnabled
      boolean
      required
    • taxFormStatus
      MISSING
      or
      W9_ON_FILE
      or
      W8_ON_FILE
      required
    • unassigned
      array of
      object
      required
      • amountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
    • updatedAt
      required

      Any of the following:

      • string
      • null
    • version
      integer
      required
      maximum: 9007199254740991 · minimum: 0

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