Hermeseus Docs
Legacy docs

Travel services on the legacy API

The legacy API exposes Fluxir's partner API unchanged under /api/Travel. If you already integrate Fluxir, change only the base URL and authenticate with a Hermeseus session. Your Hermeseus wallet pays.

How it maps

/api/Travel/app/{path} is Fluxir's /api/app/{path}: same paths, query parameters, bodies and enums. Add SessionId (from Authenticate/CreateSession) to the query string or JSON body. Country codes are ISO alpha-3.

What is different from Fluxir:

Ordering insurance, step by step

#RequestPurpose
1POST /api/Travel/app/travel-services/service-intentsPlans for the trip (serviceType: "Insurance", system.tripOrigination, system.tripDestination, system.tripFrom, system.tripTo).
2POST /api/Travel/app/personsThe traveller.
3POST /api/Travel/app/tripRoute and dates.
4POST /api/Travel/app/travel-servicesThe application: plan + person + trip, documentVersionId from step 1.
5PATCH /api/Travel/app/travel-services/{id}Fill items from documents-scheme. Enum values are the option nameId, e.g. gender.female. Once complete, pricingRecords carries the price.
6POST /api/Travel/app/trip/{id}/finalize-checkoutOrder: the price is held on your wallet and the application shows ReadyForReview. The answer adds hermeseusBookings with your order ids.
7GET /api/Travel/bookings/{uniqueId}Follow the order: pending (ordered, not sent yet), processing (sent; applicationState is Fluxir's state, e.g. ReadyForReview while the visa is reviewed), issued or cancelled (with reason).
8GET /api/Travel/bookings/{uniqueId}/policyDownload the policy PDF once issued.

Before the order reaches the insurer you can cancel it with POST /api/Travel/bookings/{uniqueId}/cancel; the hold is released. GET /api/Travel/bookings lists your orders (filter with serviceApplicationId or tripId).

Ordering a visa

The same steps with serviceType: "Visa", plus files. A visa is priced as soon as the application exists, but it can be ordered only once every required form item is filled: finalize-checkout answers 422 Err0108012 and lists the missing items under error.validationErrors[].members.

RequestPurpose
GET /api/Travel/app/visa-type/all?Origination=JOR&Destination=AREVisa types and their rules (also visa-type/{id}, passport-type*).
POST /api/Travel/app/attachments/document-itemUpload one file (multipart/form-data, field file; JPG, PNG or PDF up to 10 MB). Put it into the form as "{id}|{fileName}" from the answer, e.g. "system.passportFile": "33364|passport.jpg".
POST /api/Travel/app/passport-recognitionRead a passport scan (field document); nothing is stored.
POST /api/Travel/app/persons/from-passportCreate the traveller from a passport scan (field passportFile).
PATCH / DELETE /api/Travel/app/attachments/{id}Replace or delete a file you uploaded.
GET /api/Travel/app/appointments/appointment-application/{id}Embassy appointments of a sticker visa application.

Booleans in items are true/false; multi-choice items are a list of option nameIds. A form item can reference only files your office uploaded (422 Err0108013). The issued visa downloads from GET /api/Travel/bookings/{uniqueId}/policy, like a policy.

Airport lounges and fast track

serviceType AirportLounge or FastTrack (DragonPass). Search by city name, like Fluxir's own panel: in tripContext.items send city (3 letters or more, e.g. "Dubai"), system.tripFrom and system.tripTo set to the visit day, and system.tripOrigination / system.tripDestination set to "ZZZ". Airport codes find nothing. The offer's extraProperties carry iata, hub, terminal and, for lounges, area.

Then the usual steps: a person, a trip on the visit day (originationCode and destinatonCode = the offer's destinationCountryCode), the application with the offer's serviceIntentKey and documentSchemeVersionId, and finalize-checkout. The form is empty and the price is known at once. The E-Pass downloads from GET /api/Travel/bookings/{uniqueId}/policy once issued.

Errors

StatusIdMeaning
402Err0108002Your wallet does not cover the order.
404Err0108404Not found, not yours, or not available on this API.
409Err0108009The application is already ordered and can no longer be changed.
409Err0108011The order can no longer be cancelled through the API.
422Err0108005A request tried to change an application's state.
422Err0108008Nothing on the trip is priced yet: fill the form first.
422Err0108012The form is not complete; validationErrors lists the missing items.
422Err0108013A form item references a file your office did not upload.
502Err0108502The supplier did not answer.

Errors raised by Fluxir itself (validation of bodies and forms) pass through in Fluxir's own shape.