Skip to content
Navigation

Get a member's settings

GET
https://api.nicer.travel/identity/company/{companyName}/member/{userId}

Returns a person's membership in an agency with the onboarding flags the portal reads: role, status, settings, documents, and whether they must still sign the current agreement, with its text. A person reads their own in the agency they act for; an admin or Nicer staff anyone's there.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • companyName
    string
    required
  • userId
    string
    required

Returns

200

OK

JSON
  • companyName
    string
    required

    The agency, from the path.

  • userId
    string
    required

    The member, from the path.

  • shouldSignAgreement
    boolean
    required

    Whether the person must still sign the agency's current published agreement: true only for an advisor who has not.

  • shouldUploadDocuments
    boolean
    required

    Whether the membership has no documents on file yet.

  • signAgreementContent
    required

    The text of the agency's current published agreement, shown before signing; null when there is none or the person is not an advisor.

    Any of the following:

    • string
    • null
  • signAgreementId
    required

    The id of the agency's current published agreement, signed or not; null when there is none or the person is not an advisor.

    Any of the following:

    • string
    • null
  • documents
    optional
    array of
    string
  • bookingAccessEnabled
    optional
    boolean
  • bookingPageEnabled
    optional
    boolean
  • hasAdvisorPortalAccess
    optional
    boolean
  • isTestUser
    optional
    boolean
  • joinedAt
    optional
    string
  • noLeads
    optional
    boolean
  • onboardingCompleted
    optional
    boolean
  • registrationSource
    optional
    string
  • joinRegistrationId
    optional
    string
    pattern: ^[a-f0-9]{64}$
  • lastModifiedBy
    optional
    string

    The user id of the admin or staff member who last changed the membership.

    minLength: 1
  • removedAt
    optional
    string

    When the membership was removed; set with status removed.

    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))$
  • removedBy
    optional
    string

    The user id of the admin or staff member who removed the membership.

    minLength: 1
  • role
    optional
    advisor
    or
    traveler
    or
    admin
    or
    superadmin
  • status
    optional
    active
    or
    invited
    or
    removed
  • type
    optional
    string
  • createdAt
    optional
    string

    When the membership was created.

  • updatedAt
    optional
    string

    When the membership last changed.

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