Account

Updates account profile

Changed on
post/account/update

Request

  • Base URL
    https://api.travelify.io
  • URL
    https://api.travelify.io/account/update
  • Auth
    none declared

Request body

title0 | 1 | 2 | 3 | 4 | 5 | 6 required

Enumerator defining traveller name titles:<br>0=Unspecified, 1=Mr, 2=Miss, 3=Mrs, 4=Ms, 5=Master, 6=Dr

firstnamestring required

Firstname

surnamestring required

Surname

acceptMarketingboolean

Accept or sign up for marketing

currencystring nullable

Optional account currency code (eg. GBP)

languagestring nullable

Optional account language code (eg. en)

additionalDataobject nullable

Optional additional data such as custom questions and answers

Example request

{
  "firstname": "Joe",
  "surname": "Bloggs",
  "telephones": [
    {
      "id": 1,
      "countryPrefix": "+44",
      "number": "0123456789",
      "isPrimary": true
    }
  ],
  "addresses": [
    {
      "id": 1,
      "name": "Home",
      "company": "Acme Company",
      "line1": "123 Any Road",
      "line2": "Any Area",
      "city": "Bournemouth",
      "state": "Dorset",
      "postalCode": "BH1 1AB",
      "countryCode": "GB",
      "isPrimary": true
    }
  ]
}

Response

OK

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property