APIs to onboard and manage company.
curl -i -X GET \
'https://apis.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/features?companyRole=TMC' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'X-Application-Id: 4974a66b-7493-4f41-908c-58ba81093947'
{ "length": 1, "features": [ { … } ] }
Features that has to be deleted.
curl -i -X PATCH \
'https://apis.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/features?companyRole=TMC' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Application-Id: 4974a66b-7493-4f41-908c-58ba81093947' \
-d '{
"featuresToUpdate": [
{
"name": "ADMIN_VIRTUAL_CARD",
"value": "string"
}
],
"featuresToDelete": [
"ADMIN_VIRTUAL_CARD"
]
}'
curl -i -X GET \
https://apis.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/travel-content-config \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "airConfig": { "fareCategoryFilter": [ … ] } }