Skip to content
Navigation

List a traveler's timeline

GET
https://api.nicer.travel/crm/activity

Returns what happened to one traveler (travelerId), newest first: changes in the CRM, notes and tasks, trips, bookings, payments, invitations, emails and itineraries sent. Each entry has its type, a one-line summary and the ids it is about in data, never the values that changed. 50 a page unless limit says otherwise; send the answer's nextToken back to read the next page, until it is null. Errors: 400 ERROR_INVALID_QUERY for a missing travelerId, a limit out of range or a nextToken of another list; 404 ERROR_ITEM_NOT_FOUND for a traveler the caller may not see.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • travelerId
    string
    required

    The traveler (TRV…) whose timeline to list.

    maxLength: 64 · minLength: 1
  • limit
    optional
    integer

    How many entries a page holds, 1 to 100; 50 when left out.

    maximum: 100 · minimum: 1
  • nextToken
    optional
    string

    The nextToken of the page before, to read the next one; left out for the first page.

    minLength: 1

Header parameters

  • x-nicer-company
    string
    required

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

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The items of this page.

    • activityId
      string
      required

      The event's id; the same entry is never recorded twice.

    • actorUserId
      required

      The user id of who did it; null for the system and other domains' automations.

      Any of the following:

      • string
      • null
    • data
      map of
      unknown
      required

      Ids, section names and counts the entry is about, as the event of its type gives them.

    • occurredAt
      string
      required

      When it happened.

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

      One readable line, e.g. "Hotel booked" or "Passport updated".

    • travelerId
      required

      The traveler whose timeline holds the entry.

      Any of the following:

      • TravelerId
      • null
    • travelersTripId
      required

      The trip (TT…) the entry is about, when it is about one.

      Any of the following:

      • string
      • null
    • type
      string
      ·
      one of 19 values
      required

      The event the entry was written from.

      Allowed values: app.TravelersTrip.created, app.TravelersTrip.user.added, app.TripItinerary.Send, app.TripItinerary.approved, commerce.order-confirmation-requested.v1, commerce.order-projection-changed.v1, commerce.payment-receipt-requested.v1, crm.note-changed.v1, crm.task-changed.v1, crm.traveler-advisors-changed.v1, crm.traveler-created.v1, crm.traveler-documents-changed.v1, crm.traveler-invitation-requested.v1, crm.traveler-linked.v1, crm.traveler-unlinked.v1, crm.traveler-updated.v1, crm.travelers-merged.v1, crm.trip-updated.v1, notifications.traveler-email-sent.v1
  • 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