APIs to onboard and manage users.
API reference
/User management
/- List users
Create user
Query user
Get user
Delete user
Update user
Get user business info
Update user business info
Get user personal info
Update user personal info
Get user travel preferences
Update user travel preferences
Get user membership info
Update user membership info
Update user roles
Get user roles
Get notification preferences
Update notification preferences
Get user travel arrangers
Get user's external ID
Update user's external ID
Activate a user
Get user policies
List users
User Management API (v2)
Download OpenAPI description
Languages
Servers
Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com/
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/usersapi/
- Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com/v2/users
- Spotnana mock server
https://developer.spotnana.com/_mock/openapi/usersapi/v2/users
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
'https://api-ext-sboxmeta.partners.spotnana.com/v2/users?companyId=4974a66b-7493-4f41-908c-58ba81093947&tmcId=b83e9704-2e8e-4256-90bf-2e59c1bcf9f2&email=user%40example.com&externalId=123456&includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "length": 0, "elements": [ { … } ] }
Bodyapplication/jsonrequired
One of:
TMC ID
Retrieve active, inactive, or all users.
Default "ACTIVE"
Enum"ACTIVE""INACTIVE""ALL"
Example: "INACTIVE"
Filters to refine the list of users returned. Users matching with any of the filters would be returned.
- Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com/v3/users/list
- Spotnana mock server
https://developer.spotnana.com/_mock/openapi/usersapi/v3/users/list
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/users/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tmcId": {
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
},
"userStatusFilter": "INACTIVE",
"searchText": "chi",
"pagination": {
"offset": 0,
"limit": 100
},
"filters": [
{
"legalEntityIds": [
{
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
}
],
"officeIds": [
{
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
}
],
"departmentIds": [
{
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
}
],
"costCenterIds": [
{
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
}
],
"userIds": [
{
"id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
}
],
"emails": [
"string"
],
"externalIds": [
"string"
],
"personas": [
"EMPLOYEE"
],
"roles": [
"TRAVEL_ARRANGER"
],
"designations": [
"string"
],
"tiers": [
"SEAT1A"
]
}
],
"sort": {
"sortBy": "NAME",
"sortOrder": "DESCENDING"
}
}'Response
application/json
{ "users": [ { … } ], "pagination": { "totalNumResults": 0 } }
- Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com/v2/users/{userId}
- Spotnana mock server
https://developer.spotnana.com/_mock/openapi/usersapi/v2/users/{userId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
'https://api-ext-sboxmeta.partners.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947?includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3", "personalInfo": { "addresses": [ … ], "dob": { … }, "email": "example@email.com", "emergencyContactInfo": { … }, "gender": "FEMALE", "identityDocs": [ … ], "name": { … }, "phoneNumbers": [ … ], "profilePicture": { … }, "nationality": "Indian", "title": "MR", "preferredLanguage": "en-US", "preferredPronoun": "SHE_HER_HERS", "travelerName": { … }, "emergencyContact": { … } }, "businessInfo": { "departmentRef": { … }, "designation": "MANAGER", "email": "user@business.com", "employeeId": "101", "gradeRef": { … }, "legalEntityRef": { … }, "managerRef": { … }, "officeRef": { … }, "organizationRef": { … }, "phoneNumbers": [ … ], "costCenterRef": { … }, "countryCode": "USA", "workerType": "EMPLOYEE", "accountingCode": "123", "companySpecifiedAttributes": [ … ], "designatedApproverRefs": [ … ], "authorizerEmail": "example@email.com" }, "persona": "EMPLOYEE", "isActive": true, "tier": "SEAT1A", "relativeOf": { "userRef": { … }, "relation": "SPOUSE" }, "travelPreferences": { "preferences": { … } }, "membershipInfo": { "membershipInfos": [ … ], "isLoyaltyBlocked": false }, "notificationPreferences": { "preferences": [ … ] }, "travelArrangers": { "travelArrangers": [ … ] }, "adhocUserInfo": { "profileOwner": { … }, "isSaved": false }, "externalId": "string", "contractingTmcRef": { "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3", "name": "Name" }, "bookingTmcRef": { "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3", "name": "Name" } }