Skip to content
Navigation

Get a payout run

GET
https://api.nicer.travel/commerce/payout-runs/{payoutRunId}

One payout run with a page of its payouts (100 by default, at most 500): status, processor reference, failure reason, attempts; and the actions the caller may run. Another company's run answers 404. Agency admins and finance staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • payoutRunId
    string
    required

Query parameters

  • cursor
    optional
    string
    maxLength: 2048 · minLength: 1
  • limit
    optional
    integer
    maximum: 500 · minimum: 1

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

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