Skip to content
Navigation

List the platform timeline in the back office

GET
https://api.nicer.travel/backoffice/timeline

Lists every commercial event of a period across orders, newest first: order actions, payment attempts, payment processor events, provider calls, issued documents, provider records, reservation reads, earnings and external payments, each as an order's timeline has it (GET /backoffice/orders/{orderId}), with the order and agency it belongs to. from and to are UTC days of when the event happened, both included, the last 90 days by default; kind narrows the list to one kind of event, and q searches the order id and the event's title. 100 events a page (limit, at most 500), paged with nextToken. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's events; with none, every agency's. Nicer staff only. Errors: 400 ERROR_INVALID_QUERY for a bad parameter or a from after to; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • from
    optional
    string

    The first UTC day of the events, included; 90 days before to by default.

    format: date · 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])))$ · example: "2026-08-12"
  • kind
    optional
    string
    ·
    one of 9 values

    Only the events of this kind.

    Allowed values: ACTION, PAYMENT, PAYMENT_EVENT, PROVIDER, FULFILLMENT, PROVIDER_RECORD, OBSERVATION, EARNING, EXTERNAL_PAYMENT
  • limit
    optional
    integer

    How many events a page holds, 1 to 500; 100 by default.

    maximum: 500 · minimum: 1 · default: 100
  • nextToken
    optional
    string

    The nextToken of the previous page, to read the next one. Send it with the same filters.

    minLength: 1
  • q
    optional
    string

    Free text, matched case-insensitively anywhere in the order id or the event's title.

    maxLength: 200 · minLength: 1 · example: "SABRE TICKET"
  • to
    optional
    string

    The last UTC day of the events, included; today by default.

    format: date · 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])))$ · example: "2026-11-10"

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The items of this page.

    • amountMinor
      required

      The amount involved, in minor units, for PAYMENT, EARNING and EXTERNAL_PAYMENT entries; null for the others.

      Any of the following:

      • integer
      • null
    • occurredAt
      string
      required

      When it happened: at the processor for a PAYMENT_EVENT, at issue for a FULFILLMENT, when Nicer recorded it for the others.

      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))$
    • companyName
      string
      required

      The agency whose books the entry is in.

      minLength: 1
    • currency
      required

      The currency of amountMinor; null when there is no amount.

      Any of the following:

      • CurrencyCode
      • null
    • detail
      required

      A second line for the entry, by kind; null when none.

      Any of the following:

      • string
      • null
    • kind
      string
      ·
      one of 9 values
      required

      What happened: ACTION (an order action was accepted; the title is its type), PAYMENT (a payment attempt; the title is its purpose and status, the detail the decline reason), PAYMENT_EVENT (an event from the payment processor; Nicer staff only), PROVIDER (a call to the provider; Nicer staff only), FULFILLMENT (a document was issued; the detail is its number), PROVIDER_RECORD (the provider's data was recorded), OBSERVATION (the reservation monitor read the booking; the detail is its error code), EARNING (an earning was booked; the title is its entry type, kind and beneficiary kind, the detail its status) or EXTERNAL_PAYMENT (a payment recorded outside Nicer; the title is its entry type and method, the detail its note).

      Allowed values: ACTION, PAYMENT, PAYMENT_EVENT, PROVIDER, FULFILLMENT, PROVIDER_RECORD, OBSERVATION, EARNING, EXTERNAL_PAYMENT
    • orderId
      string
      required

      The order the entry belongs to.

      minLength: 1
    • title
      string
      required

      What happened, in a few words.

      minLength: 1
  • nextToken
    required

    Send it back as nextToken to read the next page; null on the last page.

    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