APIs to onboard and manage company.
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
}
]
}
]
}
}'
curl -i -X DELETE \
https://apis.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/travel-content-config \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'