Error Handling
HTTP error codes
| Code | Name | Description | Action |
|---|---|---|---|
400 | Bad Request | Invalid or missing data | Review request body |
401 | Unauthorized | Invalid or missing API Key | Verify X-Fliinow-API-Key header |
403 | Forbidden | No permission for this operation | Verify operation belongs to your account |
404 | Not Found | Operation not found | Verify operation ID |
409 | Conflict | Operation not in valid state for this action, or a refund of it is already in progress | Check current status before action |
422 | Unprocessable Content | The request is valid but cannot be processed: no financing is available for this operation or merchant, the merchant does not finance clients from the given country of residence (UNSUPPORTED_COUNTRY), or the finance provider does not accept or rejected the refund | Check the errorCode and additionalInfo. Do not retry without changing the data, or retry the refund later |
500 | Internal Server Error | Fliinow internal error, or the call to the finance provider failed | Retry with exponential backoff. Contact support if persistent |
503 | Service Unavailable | The operation's finance provider does not support this action through Fliinow (REFUND_NOT_SUPPORTED) | Do not retry: handle it outside the API |
errorCode catalogue
Business codes returned in the errorCode field of the response body. Branch on errorCode, never on the text of message.
| Code | HTTP | Description |
|---|---|---|
VALIDATION_ERROR | 400 | The request does not match the schema: a required field is missing, a type does not fit, a date has the wrong format, or a query parameter is invalid. The per-field detail is in validationErrors. |
INVALID_CLIENT | 400 | The client data fails the validation of the country they reside in (countryCode): the document (DNI/NIE with its control letter in ESP, CURP with its check digit in MEX), the number of surnames, the phone number, its prefix or the postal code. In every country it also fails for an age outside 18-85 (completed years) or an expired document. The message says what was expected. If the merchant has financing configured, a countryCode it cannot finance (including one with no rules of its own) no longer gets here: it is rejected earlier with 422 UNSUPPORTED_COUNTRY. |
INVALID_OPERATION | 400 | The operation is not valid: totalPrice is 0 or below, or it contains no flight, hotel or service. |
INVALID_FLIGHT | 400 | A flight is not valid: unknown IATA airport, non-sequential segments, or a passenger with an invalid document. The message states the flight index. |
INVALID_HOTEL | 400 | A hotel is not valid: check-in date after check-out date, or a postal code that does not match the country. The message states the hotel index. |
INVALID_SERVICE | 400 | A service is not valid: the start date is after the end date. The message states the service index. |
OPERATION_NOT_CANCELLABLE | 409 | Only GENERATED, PENDING and CLIENT_REQUESTED operations can be cancelled; a CONFIRMED one is refunded instead. Also when the finance provider does not cancel the request, or the customer has just completed the financing (additionalInfo.reason = ALREADY_APPROVED). additionalInfo.operationStatus holds the current status. |
OPERATION_NOT_REFUNDABLE | 409 / 422 | 409: the operation is not CONFIRMED, nothing is left to refund or its data does not allow a refund. 422: the finance provider rejected the refund. In both cases the operation does not change. |
REQUEST_IN_PROGRESS | 409 | A refund of that operation is already in progress. Wait for it to finish and try again. |
REFUND_NOT_AVAILABLE | 422 | The finance provider does not accept the refund as it would be requested now (for example, Pepper does not accept a PARTIAL until 04:00, Madrid time, of the day after the loan, and it can be one even when refunding everything). additionalInfo carries refundType (the provider's type, TOTAL or PARTIAL) and financialCompany. |
REFUND_NOT_SUPPORTED | 503 | The operation's finance provider does not support refunds through Fliinow. additionalInfo.financialCompany says which one. |
OPERATION_ACCESS_DENIED | 403 | The operation exists but belongs to another merchant. Check the operationIdentifier. |
OPERATION_NOT_FOUND | 404 | No operation exists with that identifier. With an integrator key, also any operation not created with your keys for the merchant in X-Fliinow-Merchant. |
NOT_ACTIVE_OPERATION | 409 | The operation is not in a financeable status, or it has expired. additionalInfo.operationStatus holds the current status. |
UNSUPPORTED_COUNTRY | 422 | The merchant cannot finance clients residing in that country (client.countryCode in POST /operations, countryCode in GET /financing/simulate/{totalPrice}, where ESP is checked if absent). A country is available if the merchant has an active offer for it and Fliinow validates clients of that country (ESP and MEX today). additionalInfo carries countryCode and availableCountries, e.g. "ESP,MEX"; the same list, as an array, is in GET /merchants. countryCode is the country of residence, not the nationality. It does not apply if the merchant has no financing configured at all. |
EXTERNAL_ID_IN_USE | 409 | The externalId of POST /operations was already used by your API key's owner for an operation of another merchant. Only group and integrator keys can get it: their externalIds must be unique across all their merchants. additionalInfo carries externalId. Resending it for the same merchant is not an error: it returns the existing operation. |
NOT_ELIGIBLE_FOR_FINANCING | 409 / 422 | No offer of the agency can fund the operation. 409 when creating it (POST /operations: nothing is created), 422 when asking for its offers (GET /financing/{operationIdentifier}). It can come from the amount, the currency, the client's country of residence, the travel dates, the operation's allowedInstallments, or an agency with no financing configured. Not fixable by retrying the same request. |
NOT_ELIGIBLE_FINANCIAL_OFFER | 422 | The offer given in financialOfferId is not eligible for this operation. The offer may well exist, but its minimum or maximum amount does not fit the operation total. Call GET /financing/{operationIdentifier} first to obtain the eligible offers. |
NO_FINANCIAL_COMPANIES_CONFIGURED | 422 | The merchant has no active financial institution configured. This is not a request error: contact Fliinow. |
WEBHOOK_EVENT_NOT_FOUND | 404 | No webhook event exists with that eventId. |
WEBHOOK_EVENT_OPERATION_MISMATCH | 403 | The given eventId belongs to an operation other than the one in operationIdentifier. |
WEBHOOK_EVENT_NOT_ACKNOWLEDGEABLE | 409 | The event is not in a state that allows acknowledgement, usually because it was already acknowledged. |
WEBHOOK_EVENT_STATUS_MISMATCH | 409 | The operationStatus you sent does not match the event's. additionalInfo.expectedOperationStatus holds the right one. |
DATA_INTEGRITY_ERROR | 422 | The request could not be processed due to a conflict with existing data. Review the operation; do not retry without changing it. |
FINANCING_PROCESSING_ERROR | 500 | Failure while talking to the financial institution. Retry later; contact support if it persists. |
INTERNAL_ERROR | 500 | Unexpected internal Fliinow error. Retry with backoff; contact support if it persists. |
Error response example
Business errors: they carry errorCode and, where applicable, additionalInfo with context data.
{
"errorCode": "NOT_ACTIVE_OPERATION",
"message": "Operation is not in an active status. Financing cannot be processed",
"additionalInfo": {
"operationStatus": "CONFIRMED"
}
}Request validation errors: the per-field detail is in validationErrors.
{
"errorCode": "VALIDATION_ERROR",
"message": "Request validation failed",
"validationErrors": [
"Field 'client.birthDate' (rejected value: '1990-05-12'): cannot be parsed as LocalDate. Expected date format is dd-MM-yyyy"
]
}Authentication errors (401): written by the security filter, they use a different shape, with error_description instead of message.
{
"error": "authentication_required",
"error_description": "Invalid API key",
"timestamp": "2026-07-10T10:03:49.805491+02:00",
"path": "/integration-api/v1/health"
}Implementation guidance
errorCode
Always branch on errorCode, never on the text of message: messages may change without notice.
5xx
Implement retries with exponential backoff for 5xx errors
400
Handle 400 errors by validating input before sending