Advisor

Create or update an advisor

Changed on

A licensed travel advisor should undergo Faye's training every year. When creating or updating an advisor, the partner declares that the advisor saw the training. AdvisorID should pass on every quote and purchase to relevant partners.

post/v1/advisor

Request

Headers

Authorizationstring

Bearer token

Request body

advisorIdstring required

The identity of the advisor is set by the partner.

firstNamestring required

First name. Mandatory for advisor creation

lastNamestring required

Last name. Mandatory for advisor creation

emailstring required

Advisor's email. Mandatory for advisor creation

websitestring

Advisor website

trainingDatestring date required

Last date the advisor has done the mandatory training

Example request

{
  "advisorId": "abcd1234",
  "firstName": "Jane",
  "lastName": "Foster",
  "email": "abcd@gmail.com",
  "website": "https://www.advisor-website.com",
  "trainingDate": "2023-04-18"
}

Response

Advisor has been successfully created or updated.

advisorIdstring required
trainingDatestring date required
emailstring required
lastNamestring required
firstNamestring required
websitestring required
statusstring required

Active or disabled.

Example response

{
  "trainingDate": "2023-04-18"
}

Changes

    • breaking

      the request property type changed from date to string, and format from no format to date

    • breaking

      the response's property type changed from Date to string, and format from no format to date for status

    • info

      api operation id generate removed and replaced with createOrUpdateAdvisor

    • breaking

      the request property type changed from string to date, and format from date to no format

    • breaking

      the response's property type changed from string to Date, and format from date to no format for status

    • info

      api operation id createOrUpdateAdvisor removed and replaced with generate

    • info

      added the new optional header request parameter Authorization