Fluxir DocsFluxir Docs

Create multiple travel service applications

Submit an array of travel service application requests to create multiple applications in one call. A successful response contains the created applications and their details.

POST/api/app/travel-services/bulk

Header Parameters

X-Tenantstring

Tenant ID

Body application/json

serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
providerNamestring
tripDocumentTypeKeystring
personIdinteger<int64>
serviceIntentKeystring
tripIdinteger<int64>
documentVersionIdinteger<int64>
serviceTypeIdinteger<int64>
dueDatestring<date>
exemptionIdsinteger<int64>[]
exemptionDocumentExpiryDatesobject

Response

OK

itemsobject[]
Show items properties
idinteger<int64>
personIdinteger<int64>
billingTripIdinteger<int64>
billingTripFromstring<date>
billingTripTostring<date>
serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
providerNamestring
serviceIntentKeystring
notesstring
descriptionstring
destinationCodestring
originationCodestring
state"Draft" | "ReadyForPayment" | "ReadyForReview" | "InReview" | "ReadyForApplication" | "ReviewFailed" | "Appointment" | "Applied" | "ApplicationRejected" | "ApplicationConfirmed" | "Cancelled" | "Aborted" | "InitialApprove"
documentobject
Show document properties
idinteger<int64>
documentsSchemeVersionIdinteger<int64>
itemsobject
pricingRecordsobject[]
Show pricingRecords properties
idinteger<int64>
serviceApplicationIdinteger<int64>
feeScope"Global" | "PerService"
paymentModel"OneTime" | "Subscription" | "Thirdparty"
serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
titlestring
feeinteger<int32>
codestring
isPaidboolean
travelerFirstNamestring
travelerLastNamestring
creationTimestring<date-time>
lastModificationTimestring<date-time>
applyingTimestring<date-time>
dueDatestring<date>
expectedCompletionDatestring<date>
issuanceTimestring<date-time>
appointmentsobject[]
Show appointments properties
idinteger<int64>
status"Pending" | "Scheduled" | "Accomplished" | "Canceled"
visitDatestring<date>
visitTimestring<time>
addressstring
notesstring
tenantIdstring<uuid>

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/bulk" \
  -H "Content-Type: application/json" \
  -H "X-Tenant: <X-Tenant>" \
  -d '[
  {
    "serviceType": "Visa",
    "providerName": "string",
    "tripDocumentTypeKey": "string",
    "personId": 0,
    "serviceIntentKey": "string",
    "tripId": 0,
    "documentVersionId": 0,
    "serviceTypeId": 0,
    "dueDate": "2024-01-01",
    "exemptionIds": [
      0
    ],
    "exemptionDocumentExpiryDates": {}
  }
]'
Response
{
  "items": [
    {
      "id": 0,
      "personId": 0,
      "billingTripId": 0,
      "billingTripFrom": "2024-01-01",
      "billingTripTo": "2024-01-01",
      "serviceType": "Visa",
      "providerName": "string",
      "serviceIntentKey": "string",
      "notes": "string",
      "description": "string",
      "destinationCode": "string",
      "originationCode": "string",
      "state": "Draft",
      "document": {
        "id": 0,
        "documentsSchemeVersionId": 0,
        "items": {}
      },
      "pricingRecords": [
        {
          "id": 0,
          "serviceApplicationId": 0,
          "feeScope": "Global",
          "paymentModel": "OneTime",
          "serviceType": "Visa",
          "title": "string",
          "fee": 0,
          "code": "string"
        }
      ],
      "isPaid": true,
      "travelerFirstName": "string",
      "travelerLastName": "string",
      "creationTime": "1970-01-01T00:00:00.000Z",
      "lastModificationTime": "1970-01-01T00:00:00.000Z",
      "applyingTime": "1970-01-01T00:00:00.000Z",
      "dueDate": "2024-01-01",
      "expectedCompletionDate": "2024-01-01",
      "issuanceTime": "1970-01-01T00:00:00.000Z",
      "appointments": [
        {
          "id": 0,
          "status": "Pending",
          "visitDate": "2024-01-01",
          "visitTime": "string",
          "address": "string",
          "notes": "string",
          "tenantId": "00000000-0000-0000-0000-000000000000"
        }
      ]
    }
  ]
}