Skip to content

Get custom field

Request

This endpoint gets a custom field.

Security
Bearer
Path
companyIdstring, (uuid)required

Identifier for company.

Example:4974a66b-7493-4f41-908c-58ba81093947
customFieldIdstring, (uuid)required

Identifier for custom field.

Example:4974a66b-7493-4f41-908c-58ba81093947
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>'

Responses

OK

Bodyapplication/json
idstring, (uuid)required

Custom field id.

namestringrequired

Name of this field to be viewed by the user and consumed by mid-office systems.

Example:"Air Reason Code"
descriptionobject(DisplayText)

User-facing description of the custom field.

includeLocationsArray of strings
managementTagsArray of objects(Tag)
respondOnlyOnceLevelstring(RespondOnlyOnceLevel)

User can respond this field only once at given level.

Value:"TRIP"
Example:"TRIP"
captureStepstring(CaptureStep)

Point in the booking flow at which a custom field's answer is captured.

Enum:"AT_CHECKOUT""AFTER_SEARCH_CLICK""BEFORE_SEARCH_CRITERIA"
Example:"AT_CHECKOUT"
Response
{ "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", "captureStep": "AT_CHECKOUT" }