APIs to onboard and manage users.
curl -i -X GET \
'https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/business-info?includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "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": [ { … } ], "costCenterRef": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "countryCode": "USA", "workerType": "EMPLOYEE", "accountingCode": "123", "companySpecifiedAttributes": [ { … } ], "designatedApproverRefs": [ { … } ], "authorizerEmail": "example@email.com" }
Unique employee id. Can use email if a company don't use employee ids.
Reference of an entity
Reference of an entity
A list of references for designated approvers.
curl -i -X PUT \
'https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/business-info?includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"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"
}'
curl -i -X GET \
'https://apis.spotnana.com/v2/users/4974a66b-7493-4f41-908c-58ba81093947/personal-info?includeInactive=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
OK
List of user identity documents.
An image with meta data. Either the data
or url
property must be supplied to load the image.
Pronoun preferred by user.
{ "addresses": [ { … } ], "dob": { "iso8601": "2017-07-21" }, "email": "example@email.com", "emergencyContactInfo": { "address": { … }, "designation": "MANAGER", "email": "emergency-contact@email.com", "name": { … }, "phoneNumber": { … }, "userOrgId": { … } }, "gender": "FEMALE", "identityDocs": [ { … }, { … } ], "name": { "family1": "Gandas", "family2": "FamilyTwo", "given": "Vichitr", "middle": "Kumar", "suffix": "SR", "preferred": "Don" }, "phoneNumbers": [ { … } ], "profilePicture": { "data": "6935813e12584abda0e43d71cd2ea260", "dimensions": { … }, "url": "https://static.wixstatic.com/media/73f2e2_6935813e12584abda0e43d71cd2ea260~mv2.png/v1/fill/w_630,h_94,al_c,q_85,usm_0.66_1.00_0.01/Spotnana%403x.webp" }, "nationality": "Indian", "title": "MR", "preferredLanguage": "en-US", "preferredPronoun": "SHE_HER_HERS", "travelerName": { "family1": "Gandas", "family2": "FamilyTwo", "given": "Vichitr", "middle": "Kumar", "suffix": "SR", "preferred": "Don" }, "emergencyContact": { "name": "John Smith", "email": "emergency-contact@email.com", "designation": "MANAGER", "relation": "SPOUSE", "phoneNumbers": [ … ], "preferredLanguage": "en-US" } }