Fluxir DocsFluxir Docs

Get travel services dashboard data

Returns dashboard summary data for the current tenant, including recent applications, daily issued-application counts, top destinations, and aggregate totals.

GET/api/app/travel-services/dashboard

Retrieve dashboard summary data for the current tenant: recent applications, a daily count breakdown of issued applications, top destinations, and aggregate totals.

Header Parameters

X-Tenantstring

Tenant ID

Query Parameters

RecentCountinteger

Number of most recent applications to return.

DaysCountinteger

Number of trailing days to include in the daily application-count breakdown.

Response

OK

recentApplicationsobject[]

Most recently created applications, newest first.

Show recentApplications properties
idinteger<int64>
personNamestring
personIdinteger<int64>
serviceType"Visa" | "Insurance" | "AirportLounge" | "FastTrack" | "Esim" | "FlightItineraryLetter" | "HotelItineraryLetter"
providerNamestring
serviceIntentKeystring
destinationCodestring
originationCodestring
descriptionstring
priceinteger<int32>
creationTimestring<date-time>
state"Draft" | "ReadyForPayment" | "ReadyForReview" | "InReview" | "ReadyForApplication" | "ReviewFailed" | "Appointment" | "Applied" | "ApplicationRejected" | "ApplicationConfirmed" | "Cancelled" | "Aborted" | "InitialApprove"
checkoutStatus"Unknown" | "Open" | "Completed" | "Expired"
hasDownloadableContentboolean
serviceTypeIdinteger<int64>
documentsSchemeVersionIdinteger<int64>
applyingTimestring<date-time>
dueDatestring<date>
expectedCompletionDatestring<date>
issuanceTimestring<date-time>
tenantIdstring<uuid>
tripIdinteger<int64>
appointmentsobject[]
Show appointments properties
idinteger<int64>
status"Pending" | "Scheduled" | "Accomplished" | "Canceled"
visitDatestring<date>
visitTimestring<time>
addressstring
notesstring
tenantIdstring<uuid>
dailyApplicationCountsobject[]

Number of applications with a status other than Visapasses.TravelerAide.TravelServices.ServiceApplicationState.Draft or Visapasses.TravelerAide.TravelServices.ServiceApplicationState.ReadyForPayment, grouped by creation day, ordered oldest to newest.

Show dailyApplicationCounts properties
datestring<date>
countinteger<int32>
topDestinationsobject[]

Up to 10 destination countries by number of applications.

Show topDestinations properties
countryCodestring
countinteger<int32>
topOriginationsobject[]

Up to 10 origination countries by number of applications.

Show topOriginations properties
countryCodestring
countinteger<int32>
totalApplicationsinteger<int32>

Total number of applications, including those in Visapasses.TravelerAide.TravelServices.ServiceApplicationState.Draft or Visapasses.TravelerAide.TravelServices.ServiceApplicationState.ReadyForPayment.

totalAppliedApplicationsinteger<int32>

Total number of applications that have a non-null ApplyingTime.

totalConfirmedApplicationsinteger<int32>

Total number of applications with status Visapasses.TravelerAide.TravelServices.ServiceApplicationState.ApplicationConfirmed.

totalReviewFailedApplicationsinteger<int32>

Total number of applications with status Visapasses.TravelerAide.TravelServices.ServiceApplicationState.ReviewFailed.

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 GET "https://api.example.com/api/app/travel-services/dashboard?RecentCount=<RecentCount>&DaysCount=<DaysCount>" \
  -H "X-Tenant: <X-Tenant>"
Response
{
  "recentApplications": [
    {
      "id": 0,
      "personName": "string",
      "personId": 0,
      "serviceType": "Visa",
      "providerName": "string",
      "serviceIntentKey": "string",
      "destinationCode": "string",
      "originationCode": "string",
      "description": "string",
      "price": 0,
      "creationTime": "1970-01-01T00:00:00.000Z",
      "state": "Draft",
      "checkoutStatus": "Unknown",
      "hasDownloadableContent": true,
      "serviceTypeId": 0,
      "documentsSchemeVersionId": 0,
      "applyingTime": "1970-01-01T00:00:00.000Z",
      "dueDate": "2024-01-01",
      "expectedCompletionDate": "2024-01-01",
      "issuanceTime": "1970-01-01T00:00:00.000Z",
      "tenantId": "00000000-0000-0000-0000-000000000000",
      "tripId": 0,
      "appointments": [
        {
          "id": 0,
          "status": "Pending",
          "visitDate": "2024-01-01",
          "visitTime": "string",
          "address": "string",
          "notes": "string",
          "tenantId": "00000000-0000-0000-0000-000000000000"
        }
      ]
    }
  ],
  "dailyApplicationCounts": [
    {
      "date": "2024-01-01",
      "count": 0
    }
  ],
  "topDestinations": [
    {
      "countryCode": "string",
      "count": 0
    }
  ],
  "topOriginations": [
    {
      "countryCode": "string",
      "count": 0
    }
  ],
  "totalApplications": 0,
  "totalAppliedApplications": 0,
  "totalConfirmedApplications": 0,
  "totalReviewFailedApplications": 0
}