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:
- Amounts (
fee,price) are in USD and include your price; Fluxir'scommissionandpaymentStatusare not returned. - You only see travellers, trips and applications your office created. List endpoints page with
SkipCountandMaxResultCount(at most 50) and ignore other filters. - You cannot set an application's
state; a request carryingstate,forceStatusChangeor exemptions fails with422 Err0108005. - Billing, checkout links, accounts and invoices are not available (
404 Err0108404). trip/{id}/finalize-checkoutpays from your wallet (see below).
Ordering insurance, step by step
| # | Request | Purpose |
|---|---|---|
| 1 | POST /api/Travel/app/travel-services/service-intents | Plans for the trip (serviceType: "Insurance", system.tripOrigination, system.tripDestination, system.tripFrom, system.tripTo). |
| 2 | POST /api/Travel/app/persons | The traveller. |
| 3 | POST /api/Travel/app/trip | Route and dates. |
| 4 | POST /api/Travel/app/travel-services | The application: plan + person + trip, documentVersionId from step 1. |
| 5 | PATCH /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. |
| 6 | POST /api/Travel/app/trip/{id}/finalize-checkout | Order: the price is held on your wallet and the application shows ReadyForReview. The answer adds hermeseusBookings with your order ids. |
| 7 | GET /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). |
| 8 | GET /api/Travel/bookings/{uniqueId}/policy | Download 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.
| Request | Purpose |
|---|---|
GET /api/Travel/app/visa-type/all?Origination=JOR&Destination=ARE | Visa types and their rules (also visa-type/{id}, passport-type*). |
POST /api/Travel/app/attachments/document-item | Upload 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-recognition | Read a passport scan (field document); nothing is stored. |
POST /api/Travel/app/persons/from-passport | Create 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
| Status | Id | Meaning |
|---|---|---|
| 402 | Err0108002 | Your wallet does not cover the order. |
| 404 | Err0108404 | Not found, not yours, or not available on this API. |
| 409 | Err0108009 | The application is already ordered and can no longer be changed. |
| 409 | Err0108011 | The order can no longer be cancelled through the API. |
| 422 | Err0108005 | A request tried to change an application's state. |
| 422 | Err0108008 | Nothing on the trip is priced yet: fill the form first. |
| 422 | Err0108012 | The form is not complete; validationErrors lists the missing items. |
| 422 | Err0108013 | A form item references a file your office did not upload. |
| 502 | Err0108502 | The supplier did not answer. |
Errors raised by Fluxir itself (validation of bodies and forms) pass through in Fluxir's own shape.