APIs to onboard and manage company.
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": [ … ] } }
curl -i -X PUT \
https://apis.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/travel-content-config \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"airConfig": {
"fareCategoryFilter": [
{
"priority": 1,
"origin": {
"value": "string",
"metadata": {
"type": "CITY",
"code": "string"
},
"infos": [
{}
]
},
"destination": {
"value": "string",
"metadata": {
"type": "CITY",
"code": "string"
},
"infos": [
{}
]
},
"fareCategoryOption": [
{
"fareCategory": {
"ngsCategory": "UNKNOWN_NGS_CATEGORY",
"cabinViewCategory": "UNKNOWN_CABIN_CATEGORY"
},
"disabled": true
}
]
}
]
}
}'