Skip to content

API Reference

Base URL

https://demo.fliinow.com/integration-api/v1

Account type

Calls are authenticated solely with the merchant's API key.

For groups and integrators

Data Structures

Detailed documentation of the data structures used in the POST /v1/operations endpoint for creating financing operations.

Incoming webhook (what you receive)

When an operation's status changes, Fliinow sends a POST to the webhookUrl you registered when creating the operation. This lets you learn the outcome without polling.

POSThttps://your-domain.com/webhooks/operations (Content-Type: application/json)

Notification body

The POST carries a compact JSON body with these three fields:

FieldTypeDescriptionExample
operationIdentifierstringIdentifier of the affected operation (the same one returned by POST /operations)."op_1a2b3c4d"
operationStatusstringNew status of the operation. It is the status name in uppercase."CONFIRMED"
eventIdnumberUnique identifier of the event. You need it to confirm the event via ACK.42

Statuses you may receive

Only changes to a final or actionable status are notified; intermediate statuses (such as PENDING) do not trigger a webhook.

operationStatusDescription
CONFIRMEDThe provider approved and the customer signed: the operation is confirmed.
REFUSEDEvery eligible provider refused the customer.
EXPIREDNobody completed the financing in time (24 hours from creation).
CANCELLEDThe operation was cancelled before being signed, from the API, from the Fliinow dashboard or when another operation was created for the same customer.
REFUNDEDAn operation that was CONFIRMED was refunded in full. Partial refunds send no webhook: the operation stays CONFIRMED.
ERRORThe financing failed with an error that needs a manual review.

Example notification

POST to your webhookUrl
POST https://yoursite.com/webhooks/operations
Content-Type: application/json

{
  "operationIdentifier": "op_1a2b3c4d",
  "operationStatus": "CONFIRMED",
  "eventId": 42
}

Complete Request Example

Full example of a POST /v1/operations request body including all data structures:

POST /v1/operations - Complete Request Body
{
  "externalId": "OTA-BOOKING-12345",
  "successRedirectUrl": "https://yoursite.com/booking/success",
  "errorRedirectUrl": "https://yoursite.com/booking/error",
  "webhookUrl": "https://yoursite.com/webhooks/operations",
  "client": {
    "firstName": "Juan",
    "lastName": "Garcia Tomas",
    "email": "juan.garcia@email.com",
    "documentId": "12345678A",
    "documentValidityDate": "31-01-2030",
    "gender": "MALE",
    "prefix": "+34",
    "phone": "634567890",
    "nationality": "ESP",
    "birthDate": "12-05-1990",
    "address": "Calle Mayor 10",
    "postalCode": "28001",
    "city": "Madrid",
    "countryCode": "ESP"
  },
  "packageName": "Vacaciones Nueva York",
  "packageTravel": true,
  "travelersNumber": 2,
  "flights": [
    {
      "origin": "MAD",
      "destination": "JFK",
      "flightType": "ROUND_TRIP",
      "startDate": "25-12-2025",
      "endDate": "30-12-2025",
      "price": 850.00,
      "isRefundable": true,
      "passengerList": [
        {
          "firstName": "Juan",
          "lastName": "Garcia Tomas",
          "birthDate": "12-05-1990",
          "gender": "MALE",
          "nationality": "ESP",
          "documentType": "NATIONAL",
          "documentNumber": "12345678A"
        }
      ],
      "segments": [
        {
          "origin": "MAD",
          "destination": "JFK",
          "departureDate": "25-12-2025",
          "segmentOrder": 1
        },
        {
          "origin": "JFK",
          "destination": "MAD",
          "departureDate": "30-12-2025",
          "segmentOrder": 2
        }
      ]
    }
  ],
  "hotels": [
    {
      "hotelName": "Times Square Hotel",
      "address": "123 Broadway",
      "postalCode": "10001",
      "city": "New York",
      "country": "USA",
      "guestsNumber": 2,
      "checkInDate": "25-12-2025",
      "checkOutDate": "30-12-2025",
      "isRefundable": true,
      "price": 750.00
    }
  ],
  "services": [
    {
      "serviceType": "TRANSFER",
      "description": "Airport transfer JFK to Hotel",
      "startDate": "25-12-2025",
      "isRefundable": false,
      "price": 60.00
    },
    {
      "serviceType": "CRUISE",
      "description": "Crucero Mediterráneo - 7 noches",
      "startDate": "25-12-2025",
      "endDate": "01-01-2026",
      "isRefundable": true,
      "price": 1200.00
    }
  ],
  "totalPrice": 2860.00
}