Skip to content
Navigation

List a person's referrals

GET
https://api.nicer.travel/identity/{userId}/referrals

Lists the people someone referred to the agency the request acts for: those they invited who joined (type User) and their invitations not accepted yet (type Invite), each with its date and name. Pages with limit and nextToken. Advisors and admins read their own; an admin also those of an active member of the agency, and Nicer staff anyone's. Errors: 400 ERROR_UNAUTHORIZED for someone else's referrals the caller may not read.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • userId
    string
    required

Query parameters

  • limit
    optional
    string

    How many rows a page reads: 1000 when absent. The agency and where apply after the read, so a page can hold fewer.

  • nextToken
    optional
    string

    Where the page starts: the nextToken of the previous page.

  • orderBy
    optional
    string

    ASC, the default, reads the rows in ascending order; any other value in descending order.

  • where
    optional
    string

    Which rows to keep, on top of the agency the request acts for. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: type:eq:User.

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The items of this page.

    • createdAt
      string
      required
    • type
      Invite
      or
      User
      required
    • userId
      string
      required
    • fullName
      optional

      Any of the following:

      • string
      • null
  • 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