Fluxir DocsFluxir Docs

Get service intents based on input data

Search for service intents by service type and trip context. The endpoint is anonymous; send Content-Type: application/json.

serviceType is required unless serviceIntentKeysFilter contains one or more keys. When keys are supplied, the endpoint resolves only those keys; do not combine them with continuationToken. If serviceType is also supplied, every key must belong to that type.

tripContext.items is a dictionary of provider-specific values. Country codes in these examples use ISO 3166-1 alpha-3 codes, and dates use YYYY-MM-DD.

Visa

Visa search uses the route, travel dates, and (optionally) the traveler’s document type and qualifying exemptions. If system.tripDocumentTypeKey is omitted, the endpoint defaults it to passport.

{
	"serviceType": "Visa",
	"tripContext": {
		"items": {
			"system.tripOrigination": "JOR",
			"system.tripDestination": "USA",
			"system.tripFrom": "2027-02-01",
			"system.tripTo": "2027-02-14",
			"system.tripDocumentTypeKey": "passport",
			"system.exemptions": [101],
			"system.exemptionDocumentExpiryDates": {
				"101": "2027-12-31"
			}
		},
		"travelerContexts": []
	}
}

Use exemption IDs returned by the exemptions API for the same traveler and origination. Include an expiration date when an exemption has a minimum document-validity requirement. The expiry-date object maps exemption IDs to dates. system.tripFrom is used to check that validity; the trip dates are also used when checking whether a visa’s stay duration and processing time fit the trip. A visa search can return a continuationToken when another page is available. Send that opaque token with the same search context to retrieve the next page.

Insurance

Tamkeen uses the trip’s origination, destination, and dates. It returns results only when origination is PSE or JOR; destination selects the plan when supplied. The trip must be no longer than 90 days. If destination is omitted, the provider may return both plans.

{
	"serviceType": "Insurance",
	"tripContext": {
		"items": {
			"system.tripOrigination": "JOR",
			"system.tripDestination": "USA",
			"system.tripFrom": "2026-11-01",
			"system.tripTo": "2026-11-10"
		},
		"travelerContexts": []
	}
}

Airport Lounge

Search by city by passing city in tripContext.items:

{
	"serviceType": "AirportLounge",
	"tripContext": {
		"items": {
			"city": "Dubai"
		},
		"travelerContexts": []
	},
	"inputRestrictionMode": "FailOnMissing"
}

The city value can be a partial name, but it must contain at least three characters after trimming whitespace.

If city is missing, the default ByPassOnMissing mode returns no lounge intents; FailOnMissing instead returns a validation error. To resolve known lounge intents, pass their exact keys in serviceIntentKeysFilter rather than searching by city.

Fast Track

Fast Track uses the same city context key, but searches fast-track services:

{
	"serviceType": "FastTrack",
	"tripContext": {
		"items": {
			"city": "Abu Dhabi"
		},
		"travelerContexts": []
	},
	"inputRestrictionMode": "FailOnMissing"
}
Partial city names#

The city value can be a partial name, but it must contain at least three characters after trimming whitespace.

With no city, ByPassOnMissing returns no fast-track intents and FailOnMissing returns a validation error. To resolve known fast-track intents, provide their exact keys in serviceIntentKeysFilter.

POST/api/app/travel-services/service-intents

Rule precedence: If Visapasses.TravelerAide.TravelServices.ServiceIntentsRequestDto.ServiceIntentKeysFilter is provided, only those keys are resolved.Otherwise, providers are selected by Visapasses.TravelerAide.TravelServices.ServiceIntentsRequestDto.ServiceType.Selected providers evaluate Visapasses.TravelerAide.TravelServices.ServiceIntentsRequestDto.TripContext and Visapasses.TravelerAide.TravelServices.ServiceIntentsRequestDto.InputRestrictionMode.

Result ordering behavior: If destination exists in trip context, results are ordered by fee.If destination is missing, results are shuffled.

Header Parameters

X-Tenantstring

Tenant ID

Body application/json

serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
tripContextobject
Show tripContext properties
itemsobject

Global context key/value items shared across providers.

travelerContextsobject[]

Optional per-traveler context items used by provider-specific logic.

Show travelerContexts properties
personIdinteger<int64>
itemsobject
inputRestrictionMode"ByPassOnMissing" | "FailOnMissing"

Determines how providers handle missing required values in Visapasses.TravelerAide.TravelServices.TripContextDto.

serviceIntentKeysFilterstring[]

Optional list of explicit service intent keys to fetch.

continuationTokenstring<uuid>

Continuation token returned by a previous service-intents search page.

Response

OK

itemsobject[]
Show items properties
serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
providerstring
destinationCountryCodestring
serviceIntentKeystring
titlestring
descriptionstring
infostring
tagsstring[]
documentSchemeVersionIdinteger<int64>
pricingRecordsobject[]
Show pricingRecords properties
serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
referenceIdinteger<int64>
feeScope"Global" | "PerService"
paymentModel"OneTime" | "Subscription" | "Thirdparty"
titlestring
feeinteger<int32>
commissioninteger<int32>
codestring
serviceTypeIdinteger<int64>
feeinteger<int32>
isSelectableboolean
callToActionsobject[]
Show callToActions properties
type"ServiceApplication" | "Internal" | "External" | "API"
titlestring
uristring
payloadobject
payloadsobject
extraPropertiesobject
isDisabledboolean
disableReasonsstring[]
imagesobject[]
Show images properties
orderinteger<int32>
urlstring
amenitiesobject[]
Show amenities properties
namestring
descriptionstring
termsstring
iconUrlstring
continuationTokenstring<uuid>
hasMoreboolean

Bad Request

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Unauthorized

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Forbidden

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Found

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Internal Server Error

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Implemented

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]
Request
curl -X POST "https://api.example.com/api/app/travel-services/service-intents" \
  -H "Content-Type: application/json" \
  -H "X-Tenant: <X-Tenant>" \
  -d '{
  "serviceType": "Visa",
  "tripContext": {
    "items": {},
    "travelerContexts": [
      {
        "personId": 0,
        "items": {}
      }
    ]
  },
  "inputRestrictionMode": "ByPassOnMissing",
  "serviceIntentKeysFilter": [
    "string"
  ],
  "continuationToken": "00000000-0000-0000-0000-000000000000"
}'
Response
{
  "items": [
    {
      "serviceType": "Visa",
      "provider": "string",
      "destinationCountryCode": "string",
      "serviceIntentKey": "string",
      "title": "string",
      "description": "string",
      "info": "string",
      "tags": [
        "string"
      ],
      "documentSchemeVersionId": 0,
      "pricingRecords": [
        {
          "serviceType": "Visa",
          "referenceId": 0,
          "feeScope": "Global",
          "paymentModel": "OneTime",
          "title": "string",
          "fee": 0,
          "commission": 0,
          "code": "string"
        }
      ],
      "serviceTypeId": 0,
      "fee": 0,
      "isSelectable": true,
      "callToActions": [
        {
          "type": "ServiceApplication",
          "title": "string",
          "uri": "string",
          "payload": {},
          "payloads": {}
        }
      ],
      "extraProperties": {},
      "isDisabled": true,
      "disableReasons": [
        "string"
      ],
      "images": [
        {
          "order": 0,
          "url": "string"
        }
      ],
      "amenities": [
        {
          "name": "string",
          "description": "string",
          "terms": "string",
          "iconUrl": "string"
        }
      ]
    }
  ],
  "continuationToken": "00000000-0000-0000-0000-000000000000",
  "hasMore": true
}