APIs to manage company custom fields.
API reference
/Custom fields
/- Reorder custom fields
Update custom field status
Create custom field
Update 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
Reorder custom fields
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
The custom field id of the target position to which the fields needs to be moved.
This is used to determine the direction of movement - before or after the target field
Enum"BEFORE""AFTER"
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/reorder
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/reorder
- 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/reorder \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"targetFieldId": "03db8a40-20d0-4089-b808-5dfc6aa1adc7",
"direction": "BEFORE",
"fieldIdsToMove": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/update-status
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/update-status
- curl
- JavaScript
- Node.js
- Python
curl -i -X PATCH \
'https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/update-status?companyRole=ORG' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fieldsToUpdate": [],
"fieldsToDelete": []
}'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" }