Download OpenAPI specification:Download
This endpoint is used to create user profiles in Spotnana. This is typically used by partner companies to onboard user profiles of their customer organizations.
Created
Unauthorized
Forbidden
{- "personalInfo": {
- "addresses": [
- {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}
], - "dob": {
- "iso8601": "2017-07-21"
}, - "email": "example@email.com",
- "emergencyContactInfo": {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}, - "gender": "FEMALE",
- "identityDocs": [
- {
- "passport": {
- "docId": "PASSPORTID",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "issueCountry": "IN",
- "issuedDate": {
- "iso8601": "2017-07-21"
}, - "nationalityCountry": "IN",
- "type": "REGULAR"
}
}, - {
- "ktn": {
- "number": "123456",
- "issueCountry": "US"
}
}
], - "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "profilePicture": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "nationality": "Indian",
- "title": "MR",
- "preferredLanguage": "en-US",
- "preferredPronoun": "SHE_HER_HERS",
- "travelerName": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}
}, - "businessInfo": {
- "departmentRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "designation": "MANAGER",
- "email": "user@business.com",
- "employeeId": "101",
- "gradeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "legalEntityRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "managerRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "officeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "organizationRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "costCenterRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "countryCode": "USA",
- "workerType": "EMPLOYEE",
- "accountingCode": "123",
- "companySpecifiedAttributes": [
- {
- "fixedColumnName": "contingentType",
- "value": "FSTV"
}
], - "designatedApproverRefs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "authorizerEmail": "example@email.com"
}, - "persona": "EMPLOYEE",
- "isActive": true,
- "relativeOf": {
- "userRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "relation": "SPOUSE"
}, - "billingCurrency": "INR",
- "tier": "SEAT1A",
- "externalId": "string",
- "travelPreferences": {
- "preferences": {
- "airPref": {
- "airlinePrefs": [
- {
- "airlines": [
- "Indigo"
], - "flightType": "DOMESTIC"
}
], - "alliancePref": {
- "alliances": [
- "STAR_ALLIANCE"
]
}, - "farePref": {
- "fareTypes": [
- "CHANGEABLE"
]
}, - "homeAirport": "NEW YORK",
- "mealPref": {
- "exclMealPrefs": [
- "VGML"
], - "inclMealPrefs": [
- "VGML"
], - "specialMealDescription": "Veg only meal"
}, - "numStopPref": {
- "numOfStops": 34
}, - "seatAmenityPref": {
- "seatAmenityTypes": [
- "WIFI"
]
}, - "seatLocationPrefs": [
- {
- "cabins": [
- "FIRST"
], - "isBulkHeadPref": false,
- "maxFlightDurationInHours": 3,
- "position": "WINDOW"
}
], - "preferredAirports": [
- {
- "airportName": "San Francisco International Airport",
- "airportCode": "SFO",
- "label": "HOME"
}
]
}, - "preferredCurrency": "USD",
- "railCards": [
- {
- "cardNumber": "string",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "name": "Veterans Railcard",
- "spotnanaCode": "VET",
- "vendor": "ATOC"
}
], - "railPref": {
- "preferredRailStations": [
- {
- "stationName": "Chicago Union Station",
- "stationCode": "CHI",
- "cityName": "Chicago",
- "countryCode": "string",
- "label": "HOME"
}
], - "seatPreference": {
- "hasAccessibility": false,
- "seatTypes": [
- "NORMAL"
], - "seatLocations": [
- "AISLE"
], - "deckLevels": [
- "UPPER_DECK"
], - "seatDirections": [
- "FORWARD"
]
}, - "travelClasses": [
- "FIRST"
], - "coachPreferences": [
- "NON_SMOKING"
], - "conditionalRates": [
- "AAA"
]
}, - "carPref": {
- "vendors": [
- {
- "code": "ZE",
- "name": "HERTZ",
- "isPresentInPreferredVendors": true
}
], - "carTypes": [
- "ECONOMY"
], - "engineTypes": [
- "PETROL"
], - "transmissionTypes": [
- "AUTOMATIC"
], - "conditionalRates": [
- "AAA"
]
}, - "hotelPref": {
- "hotelParentChains": [
- {
- "chainCode": "EM",
- "chainName": "Mariott"
}
], - "hotelBrands": [
- {
- "brandCode": "HY",
- "brandName": "Global Hytt Corp."
}
], - "hotelAmenityTypes": [
- "PARKING"
], - "roomPreference": {
- "isMobilityAccessible": false,
- "bedCount": "ONE_BED",
- "roomType": "SMOKING",
- "mostImportantFact": "BED_COUNT",
- "roomLocation": "HIGH_FLOOR",
- "pillowType": "FOAM",
- "roomAmenityPrefs": [
- "EXTRA_TOWELS"
]
}, - "conditionalRates": [
- "AAA"
]
}
}
}, - "membershipInfo": {
- "membershipInfos": [
- {
- "appliedTo": [
- "TAJ"
], - "id": "firstId",
- "issuedBy": "firstIssuedBy",
- "type": "AIR"
}
]
}, - "notificationPreferences": {
- "preferences": [
- {
- "notificationType": "FLIGHT_NOTIFICATION",
- "emailPreference": {
- "enabled": true,
- "ccEmails": [
- "user@example.com"
]
}
}
]
}, - "travelArrangers": {
- "travelArrangers": [
- {
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "email": "example@email.com",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "status": "PENDING"
}
]
}, - "adhocUserInfo": {
- "profileOwner": {
- "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}, - "isSaved": false
}, - "roles": [
- {
- "roleType": "COMPANY_ADMIN",
- "roleMetadata": {
- "travelArrangerMetadata": {
- "arrangerFor": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sendConfirmationEmail": false,
- "sendFlightStatsNotificationEmail": false
}
]
}
}, - "metadata": {
- "roleType": "TRAVEL_ARRANGER",
- "arrangerFor": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sendConfirmationEmail": false,
- "sendFlightStatsNotificationEmail": false
}
]
}
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint queries user of given company based on given identifier like email or external ID. In case includeInactive is true, inactive users are also included in the response.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "externalId": "user-1",
- "persona": "EMPLOYEE",
- "isActive": true
}
]
}
This endpoint gets user details for user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "personalInfo": {
- "addresses": [
- {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}
], - "dob": {
- "iso8601": "2017-07-21"
}, - "email": "example@email.com",
- "emergencyContactInfo": {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}, - "gender": "FEMALE",
- "identityDocs": [
- {
- "passport": {
- "docId": "PASSPORTID",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "issueCountry": "IN",
- "issuedDate": {
- "iso8601": "2017-07-21"
}, - "nationalityCountry": "IN",
- "type": "REGULAR"
}
}, - {
- "ktn": {
- "number": "123456",
- "issueCountry": "US"
}
}
], - "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "profilePicture": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "nationality": "Indian",
- "title": "MR",
- "preferredLanguage": "en-US",
- "preferredPronoun": "SHE_HER_HERS",
- "travelerName": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}
}, - "businessInfo": {
- "departmentRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "designation": "MANAGER",
- "email": "user@business.com",
- "employeeId": "101",
- "gradeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "legalEntityRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "managerRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "officeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "organizationRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "costCenterRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "countryCode": "USA",
- "workerType": "EMPLOYEE",
- "accountingCode": "123",
- "companySpecifiedAttributes": [
- {
- "fixedColumnName": "contingentType",
- "value": "FSTV"
}
], - "designatedApproverRefs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "authorizerEmail": "example@email.com"
}, - "persona": "EMPLOYEE",
- "isActive": true,
- "tier": "SEAT1A",
- "relativeOf": {
- "userRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "relation": "SPOUSE"
}, - "travelPreferences": {
- "preferences": {
- "airPref": {
- "airlinePrefs": [
- {
- "airlines": [
- "Indigo"
], - "flightType": "DOMESTIC"
}
], - "alliancePref": {
- "alliances": [
- "STAR_ALLIANCE"
]
}, - "farePref": {
- "fareTypes": [
- "CHANGEABLE"
]
}, - "homeAirport": "NEW YORK",
- "mealPref": {
- "exclMealPrefs": [
- "VGML"
], - "inclMealPrefs": [
- "VGML"
], - "specialMealDescription": "Veg only meal"
}, - "numStopPref": {
- "numOfStops": 34
}, - "seatAmenityPref": {
- "seatAmenityTypes": [
- "WIFI"
]
}, - "seatLocationPrefs": [
- {
- "cabins": [
- "FIRST"
], - "isBulkHeadPref": false,
- "maxFlightDurationInHours": 3,
- "position": "WINDOW"
}
], - "preferredAirports": [
- {
- "airportName": "San Francisco International Airport",
- "airportCode": "SFO",
- "label": "HOME"
}
]
}, - "preferredCurrency": "USD",
- "railCards": [
- {
- "cardNumber": "string",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "name": "Veterans Railcard",
- "spotnanaCode": "VET",
- "vendor": "ATOC"
}
], - "railPref": {
- "preferredRailStations": [
- {
- "stationName": "Chicago Union Station",
- "stationCode": "CHI",
- "cityName": "Chicago",
- "countryCode": "string",
- "label": "HOME"
}
], - "seatPreference": {
- "hasAccessibility": false,
- "seatTypes": [
- "NORMAL"
], - "seatLocations": [
- "AISLE"
], - "deckLevels": [
- "UPPER_DECK"
], - "seatDirections": [
- "FORWARD"
]
}, - "travelClasses": [
- "FIRST"
], - "coachPreferences": [
- "NON_SMOKING"
], - "conditionalRates": [
- "AAA"
]
}, - "carPref": {
- "vendors": [
- {
- "code": "ZE",
- "name": "HERTZ",
- "isPresentInPreferredVendors": true
}
], - "carTypes": [
- "ECONOMY"
], - "engineTypes": [
- "PETROL"
], - "transmissionTypes": [
- "AUTOMATIC"
], - "conditionalRates": [
- "AAA"
]
}, - "hotelPref": {
- "hotelParentChains": [
- {
- "chainCode": "EM",
- "chainName": "Mariott"
}
], - "hotelBrands": [
- {
- "brandCode": "HY",
- "brandName": "Global Hytt Corp."
}
], - "hotelAmenityTypes": [
- "PARKING"
], - "roomPreference": {
- "isMobilityAccessible": false,
- "bedCount": "ONE_BED",
- "roomType": "SMOKING",
- "mostImportantFact": "BED_COUNT",
- "roomLocation": "HIGH_FLOOR",
- "pillowType": "FOAM",
- "roomAmenityPrefs": [
- "EXTRA_TOWELS"
]
}, - "conditionalRates": [
- "AAA"
]
}
}
}, - "membershipInfo": {
- "membershipInfos": [
- {
- "appliedTo": [
- "TAJ"
], - "id": "firstId",
- "issuedBy": "firstIssuedBy",
- "type": "AIR"
}
]
}, - "notificationPreferences": {
- "preferences": [
- {
- "notificationType": "FLIGHT_NOTIFICATION",
- "emailPreference": {
- "enabled": true,
- "ccEmails": [
- "user@example.com"
]
}
}
]
}, - "travelArrangers": {
- "travelArrangers": [
- {
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "email": "example@email.com",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "status": "PENDING"
}
]
}, - "adhocUserInfo": {
- "profileOwner": {
- "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}, - "isSaved": false
}, - "externalId": "string"
}
This endpoint deletes a user by user ID.
No Content
Unauthorized
Forbidden
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
No Content
Unauthorized
Forbidden
The specified resource was not found.
{- "personalInfo": {
- "addresses": [
- {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}
], - "dob": {
- "iso8601": "2017-07-21"
}, - "email": "example@email.com",
- "emergencyContactInfo": {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}, - "gender": "FEMALE",
- "identityDocs": [
- {
- "passport": {
- "docId": "PASSPORTID",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "issueCountry": "IN",
- "issuedDate": {
- "iso8601": "2017-07-21"
}, - "nationalityCountry": "IN",
- "type": "REGULAR"
}
}, - {
- "ktn": {
- "number": "123456",
- "issueCountry": "US"
}
}
], - "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "profilePicture": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "nationality": "Indian",
- "title": "MR",
- "preferredLanguage": "en-US",
- "preferredPronoun": "SHE_HER_HERS",
- "travelerName": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}
}, - "businessInfo": {
- "departmentRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "designation": "MANAGER",
- "email": "user@business.com",
- "employeeId": "101",
- "gradeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "legalEntityRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "managerRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "officeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "organizationRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "costCenterRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "countryCode": "USA",
- "workerType": "EMPLOYEE",
- "accountingCode": "123",
- "companySpecifiedAttributes": [
- {
- "fixedColumnName": "contingentType",
- "value": "FSTV"
}
], - "designatedApproverRefs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "authorizerEmail": "example@email.com"
}, - "persona": "EMPLOYEE",
- "tier": "SEAT1A",
- "relativeOf": {
- "userRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "relation": "SPOUSE"
}, - "travelPreferences": {
- "preferences": {
- "airPref": {
- "airlinePrefs": [
- {
- "airlines": [
- "Indigo"
], - "flightType": "DOMESTIC"
}
], - "alliancePref": {
- "alliances": [
- "STAR_ALLIANCE"
]
}, - "farePref": {
- "fareTypes": [
- "CHANGEABLE"
]
}, - "homeAirport": "NEW YORK",
- "mealPref": {
- "exclMealPrefs": [
- "VGML"
], - "inclMealPrefs": [
- "VGML"
], - "specialMealDescription": "Veg only meal"
}, - "numStopPref": {
- "numOfStops": 34
}, - "seatAmenityPref": {
- "seatAmenityTypes": [
- "WIFI"
]
}, - "seatLocationPrefs": [
- {
- "cabins": [
- "FIRST"
], - "isBulkHeadPref": false,
- "maxFlightDurationInHours": 3,
- "position": "WINDOW"
}
], - "preferredAirports": [
- {
- "airportName": "San Francisco International Airport",
- "airportCode": "SFO",
- "label": "HOME"
}
]
}, - "preferredCurrency": "USD",
- "railCards": [
- {
- "cardNumber": "string",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "name": "Veterans Railcard",
- "spotnanaCode": "VET",
- "vendor": "ATOC"
}
], - "railPref": {
- "preferredRailStations": [
- {
- "stationName": "Chicago Union Station",
- "stationCode": "CHI",
- "cityName": "Chicago",
- "countryCode": "string",
- "label": "HOME"
}
], - "seatPreference": {
- "hasAccessibility": false,
- "seatTypes": [
- "NORMAL"
], - "seatLocations": [
- "AISLE"
], - "deckLevels": [
- "UPPER_DECK"
], - "seatDirections": [
- "FORWARD"
]
}, - "travelClasses": [
- "FIRST"
], - "coachPreferences": [
- "NON_SMOKING"
], - "conditionalRates": [
- "AAA"
]
}, - "carPref": {
- "vendors": [
- {
- "code": "ZE",
- "name": "HERTZ",
- "isPresentInPreferredVendors": true
}
], - "carTypes": [
- "ECONOMY"
], - "engineTypes": [
- "PETROL"
], - "transmissionTypes": [
- "AUTOMATIC"
], - "conditionalRates": [
- "AAA"
]
}, - "hotelPref": {
- "hotelParentChains": [
- {
- "chainCode": "EM",
- "chainName": "Mariott"
}
], - "hotelBrands": [
- {
- "brandCode": "HY",
- "brandName": "Global Hytt Corp."
}
], - "hotelAmenityTypes": [
- "PARKING"
], - "roomPreference": {
- "isMobilityAccessible": false,
- "bedCount": "ONE_BED",
- "roomType": "SMOKING",
- "mostImportantFact": "BED_COUNT",
- "roomLocation": "HIGH_FLOOR",
- "pillowType": "FOAM",
- "roomAmenityPrefs": [
- "EXTRA_TOWELS"
]
}, - "conditionalRates": [
- "AAA"
]
}
}
}, - "membershipInfo": {
- "membershipInfos": [
- {
- "appliedTo": [
- "TAJ"
], - "id": "firstId",
- "issuedBy": "firstIssuedBy",
- "type": "AIR"
}
]
}, - "notificationPreferences": {
- "preferences": [
- {
- "notificationType": "FLIGHT_NOTIFICATION",
- "emailPreference": {
- "enabled": true,
- "ccEmails": [
- "user@example.com"
]
}
}
]
}, - "adhocUserInfo": {
- "profileOwner": {
- "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}, - "isSaved": false
}, - "externalId": "string",
- "travelArrangers": {
- "travelArrangers": [
- {
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "email": "example@email.com",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "status": "PENDING"
}
]
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint gets user business info by user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "departmentRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "designation": "MANAGER",
- "email": "user@business.com",
- "employeeId": "101",
- "gradeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "legalEntityRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "managerRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "officeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "organizationRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "costCenterRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "countryCode": "USA",
- "workerType": "EMPLOYEE",
- "accountingCode": "123",
- "companySpecifiedAttributes": [
- {
- "fixedColumnName": "contingentType",
- "value": "FSTV"
}
], - "designatedApproverRefs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "authorizerEmail": "example@email.com"
}
This endpoint updates user business info by user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "departmentRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "designation": "MANAGER",
- "email": "user@business.com",
- "employeeId": "101",
- "gradeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "legalEntityRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "managerRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "officeRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "organizationRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "costCenterRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "countryCode": "USA",
- "workerType": "EMPLOYEE",
- "accountingCode": "123",
- "companySpecifiedAttributes": [
- {
- "fixedColumnName": "contingentType",
- "value": "FSTV"
}
], - "designatedApproverRefs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "authorizerEmail": "example@email.com"
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint gets user personal info by user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "addresses": [
- {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}
], - "dob": {
- "iso8601": "2017-07-21"
}, - "email": "example@email.com",
- "emergencyContactInfo": {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}
}
}
}
}, - "gender": "FEMALE",
- "identityDocs": [
- {
- "passport": {
- "docId": "PASSPORTID",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "issueCountry": "IN",
- "issuedDate": {
- "iso8601": "2017-07-21"
}, - "nationalityCountry": "IN",
- "type": "REGULAR"
}
}, - {
- "ktn": {
- "number": "123456",
- "issueCountry": "US"
}
}
], - "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "profilePicture": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "nationality": "Indian",
- "title": "MR",
- "preferredLanguage": "en-US",
- "preferredPronoun": "SHE_HER_HERS",
- "travelerName": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}
}
This endpoint updates user personal info by user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "addresses": [
- {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}
], - "dob": {
- "iso8601": "2017-07-21"
}, - "email": "example@email.com",
- "emergencyContactInfo": {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumber": {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}
}
}
}
}, - "gender": "FEMALE",
- "identityDocs": [
- {
- "passport": {
- "docId": "PASSPORTID",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "issueCountry": "IN",
- "issuedDate": {
- "iso8601": "2017-07-21"
}, - "nationalityCountry": "IN",
- "type": "REGULAR"
}
}, - {
- "ktn": {
- "number": "123456",
- "issueCountry": "US"
}
}
], - "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "profilePicture": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "nationality": "Indian",
- "title": "MR",
- "preferredLanguage": "en-US",
- "preferredPronoun": "SHE_HER_HERS",
- "travelerName": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "preferences": {
- "airPref": {
- "airlinePrefs": [
- {
- "airlines": [
- "Indigo"
], - "flightType": "DOMESTIC"
}
], - "alliancePref": {
- "alliances": [
- "STAR_ALLIANCE"
]
}, - "farePref": {
- "fareTypes": [
- "CHANGEABLE"
]
}, - "homeAirport": "NEW YORK",
- "mealPref": {
- "exclMealPrefs": [
- "VGML"
], - "inclMealPrefs": [
- "VGML"
], - "specialMealDescription": "Veg only meal"
}, - "numStopPref": {
- "numOfStops": 34
}, - "seatAmenityPref": {
- "seatAmenityTypes": [
- "WIFI"
]
}, - "seatLocationPrefs": [
- {
- "cabins": [
- "FIRST"
], - "isBulkHeadPref": false,
- "maxFlightDurationInHours": 3,
- "position": "WINDOW"
}
], - "preferredAirports": [
- {
- "airportName": "San Francisco International Airport",
- "airportCode": "SFO",
- "label": "HOME"
}
]
}, - "preferredCurrency": "USD",
- "railCards": [
- {
- "cardNumber": "string",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "name": "Veterans Railcard",
- "spotnanaCode": "VET",
- "vendor": "ATOC"
}
], - "railPref": {
- "preferredRailStations": [
- {
- "stationName": "Chicago Union Station",
- "stationCode": "CHI",
- "cityName": "Chicago",
- "countryCode": "string",
- "label": "HOME"
}
], - "seatPreference": {
- "hasAccessibility": false,
- "seatTypes": [
- "NORMAL"
], - "seatLocations": [
- "AISLE"
], - "deckLevels": [
- "UPPER_DECK"
], - "seatDirections": [
- "FORWARD"
]
}, - "travelClasses": [
- "FIRST"
], - "coachPreferences": [
- "NON_SMOKING"
], - "conditionalRates": [
- "AAA"
]
}, - "carPref": {
- "vendors": [
- {
- "code": "ZE",
- "name": "HERTZ",
- "isPresentInPreferredVendors": true
}
], - "carTypes": [
- "ECONOMY"
], - "engineTypes": [
- "PETROL"
], - "transmissionTypes": [
- "AUTOMATIC"
], - "conditionalRates": [
- "AAA"
]
}, - "hotelPref": {
- "hotelParentChains": [
- {
- "chainCode": "EM",
- "chainName": "Mariott"
}
], - "hotelBrands": [
- {
- "brandCode": "HY",
- "brandName": "Global Hytt Corp."
}
], - "hotelAmenityTypes": [
- "PARKING"
], - "roomPreference": {
- "isMobilityAccessible": false,
- "bedCount": "ONE_BED",
- "roomType": "SMOKING",
- "mostImportantFact": "BED_COUNT",
- "roomLocation": "HIGH_FLOOR",
- "pillowType": "FOAM",
- "roomAmenityPrefs": [
- "EXTRA_TOWELS"
]
}, - "conditionalRates": [
- "AAA"
]
}
}
}
No Content
Unauthorized
Forbidden
The specified resource was not found.
{- "preferences": {
- "airPref": {
- "airlinePrefs": [
- {
- "airlines": [
- "Indigo"
], - "flightType": "DOMESTIC"
}
], - "alliancePref": {
- "alliances": [
- "STAR_ALLIANCE"
]
}, - "farePref": {
- "fareTypes": [
- "CHANGEABLE"
]
}, - "homeAirport": "NEW YORK",
- "mealPref": {
- "exclMealPrefs": [
- "VGML"
], - "inclMealPrefs": [
- "VGML"
], - "specialMealDescription": "Veg only meal"
}, - "numStopPref": {
- "numOfStops": 34
}, - "seatAmenityPref": {
- "seatAmenityTypes": [
- "WIFI"
]
}, - "seatLocationPrefs": [
- {
- "cabins": [
- "FIRST"
], - "isBulkHeadPref": false,
- "maxFlightDurationInHours": 3,
- "position": "WINDOW"
}
], - "preferredAirports": [
- {
- "airportName": "San Francisco International Airport",
- "airportCode": "SFO",
- "label": "HOME"
}
]
}, - "preferredCurrency": "USD",
- "railCards": [
- {
- "cardNumber": "string",
- "expiryDate": {
- "iso8601": "2017-07-21"
}, - "name": "Veterans Railcard",
- "spotnanaCode": "VET",
- "vendor": "ATOC"
}
], - "railPref": {
- "preferredRailStations": [
- {
- "stationName": "Chicago Union Station",
- "stationCode": "CHI",
- "cityName": "Chicago",
- "countryCode": "string",
- "label": "HOME"
}
], - "seatPreference": {
- "hasAccessibility": false,
- "seatTypes": [
- "NORMAL"
], - "seatLocations": [
- "AISLE"
], - "deckLevels": [
- "UPPER_DECK"
], - "seatDirections": [
- "FORWARD"
]
}, - "travelClasses": [
- "FIRST"
], - "coachPreferences": [
- "NON_SMOKING"
], - "conditionalRates": [
- "AAA"
]
}, - "carPref": {
- "vendors": [
- {
- "code": "ZE",
- "name": "HERTZ",
- "isPresentInPreferredVendors": true
}
], - "carTypes": [
- "ECONOMY"
], - "engineTypes": [
- "PETROL"
], - "transmissionTypes": [
- "AUTOMATIC"
], - "conditionalRates": [
- "AAA"
]
}, - "hotelPref": {
- "hotelParentChains": [
- {
- "chainCode": "EM",
- "chainName": "Mariott"
}
], - "hotelBrands": [
- {
- "brandCode": "HY",
- "brandName": "Global Hytt Corp."
}
], - "hotelAmenityTypes": [
- "PARKING"
], - "roomPreference": {
- "isMobilityAccessible": false,
- "bedCount": "ONE_BED",
- "roomType": "SMOKING",
- "mostImportantFact": "BED_COUNT",
- "roomLocation": "HIGH_FLOOR",
- "pillowType": "FOAM",
- "roomAmenityPrefs": [
- "EXTRA_TOWELS"
]
}, - "conditionalRates": [
- "AAA"
]
}
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "membershipInfos": [
- {
- "appliedTo": [
- "TAJ"
], - "id": "firstId",
- "issuedBy": "firstIssuedBy",
- "type": "AIR"
}
]
}
No Content
Unauthorized
Forbidden
The specified resource was not found.
{- "membershipInfos": [
- {
- "appliedTo": [
- "TAJ"
], - "id": "firstId",
- "issuedBy": "firstIssuedBy",
- "type": "AIR"
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint updates user roles.
No Content
Unauthorized
Forbidden
The specified resource was not found.
{- "roles": [
- {
- "roleType": "COMPANY_ADMIN",
- "roleMetadata": {
- "travelArrangerMetadata": {
- "arrangerFor": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sendConfirmationEmail": false,
- "sendFlightStatsNotificationEmail": false
}
]
}
}, - "metadata": {
- "roleType": "TRAVEL_ARRANGER",
- "arrangerFor": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sendConfirmationEmail": false,
- "sendFlightStatsNotificationEmail": false
}
]
}
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint gets user roles.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "roles": [
- {
- "roleType": "COMPANY_ADMIN",
- "roleMetadata": {
- "travelArrangerMetadata": {
- "arrangerFor": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sendConfirmationEmail": false,
- "sendFlightStatsNotificationEmail": false
}
]
}
}, - "metadata": {
- "roleType": "TRAVEL_ARRANGER",
- "arrangerFor": [
- {
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sendConfirmationEmail": false,
- "sendFlightStatsNotificationEmail": false
}
]
}
}
]
}
This endpoint gets notification preferences for a user.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "preferences": [
- {
- "notificationType": "FLIGHT_NOTIFICATION",
- "emailPreference": {
- "enabled": true,
- "ccEmails": [
- "user@example.com"
]
}
}
]
}
This endpoint updates notification preferences for a user.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "preferences": [
- {
- "notificationType": "FLIGHT_NOTIFICATION",
- "emailPreference": {
- "enabled": true,
- "ccEmails": [
- "user@example.com"
]
}
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "travelArrangers": [
- {
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "email": "example@email.com",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "status": "PENDING"
}
]
}
This endpoint gets user's external ID by user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "externalId": "user-1"
}
This endpoint updates user's external ID by user ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "externalId": "user-1"
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint activates a deactivated user.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "policies": [
- {
- "id": "348fcc1c-c33a-4942-8834-a7888913dd66",
- "name": "HR Policy"
}
]
}