Skip to content
Navigation

Claim a booking-site referral

POST
https://api.nicer.travel/identity/referral/claim

Links the signed-in traveler to the referring advisor of a booking site when the traveler has no deliberate advisor yet; a traveler who already has one is never moved. result says what happened, and companyChanged that the session must be refreshed before the next call. Any signed-in person, for themself.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • host
    string
    required
    maxLength: 253 · minLength: 1
  • ref
    optional
    string
    maxLength: 64

Returns

200

OK

JSON
  • companyChanged
    boolean
    required
  • result
    ATTACHED
    or
    UNCHANGED
    or
    IGNORED_OWNED
    or
    IGNORED_FOREIGN
    or
    IGNORED_INVALID
    required
  • ownerSiteUrl
    optional
    string

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