APIs to onboard and manage users.
API reference
/User management
/- Update user roles
Create user
Query user
List users
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
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
Update user roles
User Management API (v2)
Download OpenAPI description
Languages
Servers
Staging URL
https://apis.spotnana.com/
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/usersapi/
- Staging URLhttps://apis.spotnana.com/v2/users/{userId}/membership-info
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/usersapi/v2/users/{userId}/membership-info
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/membership-info \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"membershipInfos": [
{
"appliedTo": [
"TAJ"
],
"id": "firstId",
"issuedBy": "firstIssuedBy",
"type": "AIR",
"linked": false
}
],
"isLoyaltyBlocked": false
}'Bodyapplication/jsonrequired
- Staging URLhttps://apis.spotnana.com/v2/users/{userId}/roles
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/usersapi/v2/users/{userId}/roles
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/roles \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"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
}
]
}
}
]
}'- Staging URLhttps://apis.spotnana.com/v2/users/{userId}/roles
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/usersapi/v2/users/{userId}/roles
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/roles \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "roles": [ { … } ] }