APIs to manage company custom fields.
API reference
/Custom fields
/- Update custom field
Reorder custom fields
Update custom field status
Create custom field
Get custom field
Delete custom field
List custom field
Update option for the given options group
Upload file of options to be processed
Create custom field arm
Update arm
Get arm
Delete arm
List arms
Get options for a custom field.
Get applicable custom fields
Update custom field
Custom Field API (v3)
Download OpenAPI description
Languages
Servers
Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/customfieldapi
Bodyapplication/jsonrequired
Name of this field to be viewed by the user and consumed by mid-office systems.
Example: "Air Reason Code"
Items Enum"BOOKING_CONFIRMATION_EMAILS""APPROVAL_EMAILS""COMPANY_REPORTS""CONSOLIDATED_ITINERARY_EMAILS"
Example: ["APPROVAL_EMAILS"]
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
'https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields?companyRole=ORG' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Air Reason Code",
"description": {
"value": "This field will capture the reason for out of policy booking"
},
"includeLocations": [
"APPROVAL_EMAILS"
],
"managementTags": [
{
"key": "OOP Reason Code",
"value": "Out of Policy Code"
}
],
"respondOnlyOnceLevel": "TRIP"
}'Response
application/json
{ "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3" }
Bodyapplication/jsonrequired
Name of this field to be viewed by the user and consumed by mid-office systems.
Example: "Air Reason Code"
Items Enum"BOOKING_CONFIRMATION_EMAILS""APPROVAL_EMAILS""COMPANY_REPORTS""CONSOLIDATED_ITINERARY_EMAILS"
Example: ["APPROVAL_EMAILS"]
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Air Reason Code",
"description": {
"value": "This field will capture the reason for out of policy booking"
},
"includeLocations": [
"APPROVAL_EMAILS"
],
"managementTags": [
{
"key": "OOP Reason Code",
"value": "Out of Policy Code"
}
],
"respondOnlyOnceLevel": "TRIP"
}'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Air Reason Code", "description": { "value": "This field will capture the reason for out of policy booking" }, "includeLocations": [ "APPROVAL_EMAILS" ], "managementTags": [ { … } ], "respondOnlyOnceLevel": "TRIP" }