Advisor

Create or update an advisor

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

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

Changed in 2 of the 3 revisions of this API.43

  • e016afb8fdb321See the full diff
    • the trainingDate request property type/format changed from date/ to string/date

      request-property-type-changed

    • the trainingDate response's property type/format changed from Date/ to string/date for status 200

      response-property-type-changed

    • api operation id generate removed and replaced with createOrUpdateAdvisor

      api-operation-id-removed

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the trainingDate request property type/format changed from string/date to date/

      request-property-type-changed

    • the trainingDate response's property type/format changed from string/date to Date/ for status 200

      response-property-type-changed

    • api operation id createOrUpdateAdvisor removed and replaced with generate

      api-operation-id-removed

    • added the new optional header request parameter Authorization

      new-optional-request-parameter