Skip to content
Navigation

List audit events

GET
https://api.nicer.travel/commerce/audit-events

The company's commission audit trail, newest first (25 by default, at most 100, keyset-paged by when each row was written): every write and every audited read, with who acted, from where, what changed (a personal field only as changed, never its value) and why. subjectKind and subjectId together answer one record's Activity tab; actorUserId, action, from and to narrow the staff audit search. Agency admins read their own company; finance staff read any, and each of their reads is audited.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • action
    optional
    string
    maxLength: 120 · minLength: 3
  • actorUserId
    optional
    string
    maxLength: 255 · minLength: 1
  • cursor
    optional
    string
    maxLength: 2048 · minLength: 1
  • from
    optional
    string
    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))$
  • limit
    optional
    integer
    maximum: 100 · minimum: 1
  • subjectId
    optional
    string
    maxLength: 255 · minLength: 1
  • subjectKind
    optional
    string
    ·
    one of 20 values
    Allowed values: AGENCY_IDENTIFIER, ALLOCATION, AUDIT_TRAIL, COMMISSION_FILE, COMMISSION_INVOICE, COMMISSION_ITEM, COMMISSION_SETTINGS, COMPANY, EXPORT, EXTERNAL_BOOKING, HOST_RELATIONSHIP, ORDER, PAYEE, PAYOUT, PAYOUT_RUN, REMITTANCE, REMITTANCE_LINE, SPLIT_PLAN, STATEMENT, SUPPLIER
  • to
    optional
    string
    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))$

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • items
    array of
    object
    required
    • action
      string
      required
      maxLength: 120 · minLength: 1
    • actingCompanyName
      required

      Any of the following:

      • string
      • null
    • actorKind
      USER
      or
      STAFF
      or
      SYSTEM
      or
      MIGRATION
      required
    • actorRole
      required

      Any of the following:

      • string
      • null
    • actorUserId
      required

      Any of the following:

      • string
      • null
    • auditEventId
      string
      required
      minLength: 1
    • changes
      required

      Any of the following:

      • map<unknown>
      • null
    • companyName
      string
      required
      minLength: 1
    • context
      required

      Any of the following:

      • map<unknown>
      • null
    • correlationId
      required

      Any of the following:

      • string
      • null
    • handlerName
      string
      required
      minLength: 1
    • occurredAt
      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))$
    • reason
      required

      Any of the following:

      • string
      • null
    • requestId
      required

      Any of the following:

      • string
      • null
    • source
      API
      or
      CRON
      or
      QUEUE
      or
      EVENT
      or
      WORKFLOW
      or
      MIGRATION
      required
    • subjectId
      string
      required
      minLength: 1
    • subjectKind
      string
      ·
      one of 20 values
      required
      Allowed values: AGENCY_IDENTIFIER, ALLOCATION, AUDIT_TRAIL, COMMISSION_FILE, COMMISSION_INVOICE, COMMISSION_ITEM, COMMISSION_SETTINGS, COMPANY, EXPORT, EXTERNAL_BOOKING, HOST_RELATIONSHIP, ORDER, PAYEE, PAYOUT, PAYOUT_RUN, REMITTANCE, REMITTANCE_LINE, SPLIT_PLAN, STATEMENT, SUPPLIER
  • nextCursor
    required

    Any of the following:

    • string
    • null

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