API Reference
Base URL
https://demo.fliinow.com/integration-api/v1Account type
Calls are authenticated solely with the merchant's API key.
Codes any endpoint may return
/merchants/operations/financing/simulate/{totalPrice}/financing/{operationIdentifier}/financing/operations/{operationIdentifier}/prescoring/operations/{operationIdentifier}/status/operations/operations/by-external-id/{externalId}/operations/{operationIdentifier}/cancel/operations/{operationIdentifier}/refund/details/operations/{operationIdentifier}/refund/operations/webhook-events/ackData Structures
Detailed documentation of the data structures used in the POST /v1/operations endpoint for creating financing operations.
ClientDto (client)
Required - Customer data for the financing holder
FlightDto (flights)
Optional - List of flights including passengers and segments
HotelDto (hotels)
Optional - List of hotel accommodations
ServiceDto (services)
Optional - List of additional services
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.
https://your-domain.com/webhooks/operations (Content-Type: application/json)Notification body
The POST carries a compact JSON body with these three fields:
| Field | Type | Description | Example |
|---|---|---|---|
| operationIdentifier | string | Identifier of the affected operation (the same one returned by POST /operations). | "op_1a2b3c4d" |
| operationStatus | string | New status of the operation. It is the status name in uppercase. | "CONFIRMED" |
| eventId | number | Unique 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.
| operationStatus | Description |
|---|---|
| CONFIRMED | The provider approved and the customer signed: the operation is confirmed. |
| REFUSED | Every eligible provider refused the customer. |
| EXPIRED | Nobody completed the financing in time (24 hours from creation). |
| CANCELLED | The operation was cancelled before being signed, from the API, from the Fliinow dashboard or when another operation was created for the same customer. |
| REFUNDED | An operation that was CONFIRMED was refunded in full. Partial refunds send no webhook: the operation stays CONFIRMED. |
| ERROR | The financing failed with an error that needs a manual review. |
Example notification
POST https://yoursite.com/webhooks/operations
Content-Type: application/json
{
"operationIdentifier": "op_1a2b3c4d",
"operationStatus": "CONFIRMED",
"eventId": 42
}Delivery and retries
Delivery is not immediate
Webhooks are not signed
Verify the status before acting
Acknowledge the event (ACK)
Complete Request Example
Full example of a POST /v1/operations request body including all data structures:
{
"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
}