Skip to content
Navigation

Create a payout run

POST
https://api.nicer.travel/commerce/payout-runs

Pays approved statements of payees paid by Stripe Connect: one payout per statement, then a job sends each as a Stripe Connect transfer from the platform balance (when the company has transfers enabled and the payee finished onboarding). A statement paid by check or by hand is recorded with MARK_PAID on the statement instead; a payee with another payout method answers 422 COMMISSION_PAYOUT_NOT_READY. Every payee needs a legal name and a tax form on file. A statement already in a live payout answers 409 COMMISSION_STATEMENT_ALREADY_PAID. Finance staff only. Poll GET /payout-runs/{payoutRunId}.

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

  • statementIds
    array of
    string
    required
    maxLength: 255 · minLength: 1

Returns

200

OK

JSON
  • companyName
    string
    required
    minLength: 1
  • completedAt
    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))$
  • createdByUserId
    string
    required
    minLength: 1
  • jobId
    required

    Any of the following:

    • string
    • null
  • number
    string
    required
    minLength: 1
  • payoutCount
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • payoutRunId
    string
    required
    minLength: 1
  • status
    SUBMITTED
    or
    PARTIALLY_FAILED
    or
    COMPLETED
    required
  • submittedAt
    required

    Any of the following:

    • string
    • null
  • totals
    array of
    object
    required
    • amountMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • failedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • paidMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
  • 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
    RETRY
    or
    CANCEL
    required
  • nextCursor
    required

    Any of the following:

    • string
    • null
  • payouts
    array of
    object
    required
    • amountMinor
      integer
      required
      maximum: 9007199254740991
    • attempts
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • 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}$
    • failureReason
      required

      Any of the following:

      • string
      • null
    • method
      STRIPE_CONNECT
      or
      CHECK
      or
      MANUAL
      required
    • paidAt
      required

      Any of the following:

      • string
      • null
    • payeeId
      string
      required
      minLength: 1
    • payeeKind
      ADVISOR
      or
      COMPANY
      required
    • payoutId
      string
      required
      minLength: 1
    • payoutRunId
      string
      required
      minLength: 1
    • processorReference
      required

      Any of the following:

      • string
      • null
    • statementId
      string
      required
      minLength: 1
    • statementNumber
      string
      required
      minLength: 1
    • status
      PENDING
      or
      PAID
      or
      FAILED
      or
      CANCELLED
      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))$

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