Fluxir DocsFluxir Docs

Create person from scanned passport

POST/api/app/persons/from-passport

Upload a passport image or PDF for OCR-based creation of a person record.

Header Parameters

X-Tenantstring

Tenant ID

Body multipart/form-data

passportFilestring<binary>

Response

OK

idinteger<int64>
firstNamestring
lastNamestring
emailstring
residenceCountrystring
birthDatestring<date>
hasVisasboolean
identityDocumentsobject[]
Show identityDocuments properties
idinteger<int64>
documentType"IdDocument" | "Passport" | "DrivingLicense"
countryCodestring
fieldsobject
isVerifiedboolean
socialAccountsobject
Show socialAccounts properties
idinteger<int64>
facebookstring
twitterstring
linkedinstring
instagramstring
employmentInfoobject[]
Show employmentInfo properties
idinteger<int64>
isCurrentboolean
fromstring<date>
tostring<date>
employerNamestring
descriptionstring
visasobject[]
Show visas properties
idinteger<int64>
personIdinteger<int64>
visaApplicationIdinteger<int64>
visaTypeNamestring
countryCodestring
isReadonlyboolean
validFromstring<date>
validTostring<date>
hasDownloadableContentboolean
visaNostring
serialNumberstring
numOfEntries"Single" | "Multi" | "Double"
relatedVisaTypeIdinteger<int64>
serviceApplicationsobject[]
Show serviceApplications 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>
documentobject
Show document properties
idinteger<int64>
documentsSchemeVersionIdinteger<int64>
itemsobject

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/persons/from-passport" \
  -H "Content-Type: multipart/form-data" \
  -H "X-Tenant: <X-Tenant>" \
  -d '{
  "passportFile": "string"
}'
Response
{
  "id": 0,
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "residenceCountry": "string",
  "birthDate": "2024-01-01",
  "hasVisas": true,
  "identityDocuments": [
    {
      "id": 0,
      "documentType": "IdDocument",
      "countryCode": "string",
      "fields": {},
      "isVerified": true
    }
  ],
  "socialAccounts": {
    "id": 0,
    "facebook": "string",
    "twitter": "string",
    "linkedin": "string",
    "instagram": "string"
  },
  "employmentInfo": [
    {
      "id": 0,
      "isCurrent": true,
      "from": "2024-01-01",
      "to": "2024-01-01",
      "employerName": "string",
      "description": "string"
    }
  ],
  "visas": [
    {
      "id": 0,
      "personId": 0,
      "visaApplicationId": 0,
      "visaTypeName": "string",
      "countryCode": "string",
      "isReadonly": true,
      "validFrom": "2024-01-01",
      "validTo": "2024-01-01",
      "hasDownloadableContent": true,
      "visaNo": "string",
      "serialNumber": "string",
      "numOfEntries": "Single",
      "relatedVisaTypeId": 0
    }
  ],
  "serviceApplications": [
    {
      "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"
        }
      ]
    }
  ],
  "document": {
    "id": 0,
    "documentsSchemeVersionId": 0,
    "items": {}
  }
}