Skip to content

Error Handling

HTTP error codes

CodeNameDescriptionAction
400Bad RequestInvalid or missing dataReview request body
401UnauthorizedInvalid or missing API KeyVerify X-Fliinow-API-Key header
403ForbiddenNo permission for this operationVerify operation belongs to your account
404Not FoundOperation not foundVerify operation ID
409ConflictOperation not in valid state for this action, or a refund of it is already in progressCheck current status before action
422Unprocessable ContentThe 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 refundCheck the errorCode and additionalInfo. Do not retry without changing the data, or retry the refund later
500Internal Server ErrorFliinow internal error, or the call to the finance provider failedRetry with exponential backoff. Contact support if persistent
503Service UnavailableThe 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.

CodeHTTPDescription
VALIDATION_ERROR400The 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_CLIENT400The 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_OPERATION400The operation is not valid: totalPrice is 0 or below, or it contains no flight, hotel or service.
INVALID_FLIGHT400A flight is not valid: unknown IATA airport, non-sequential segments, or a passenger with an invalid document. The message states the flight index.
INVALID_HOTEL400A 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_SERVICE400A service is not valid: the start date is after the end date. The message states the service index.
OPERATION_NOT_CANCELLABLE409Only 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_REFUNDABLE409 / 422409: 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_PROGRESS409A refund of that operation is already in progress. Wait for it to finish and try again.
REFUND_NOT_AVAILABLE422The 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_SUPPORTED503The operation's finance provider does not support refunds through Fliinow. additionalInfo.financialCompany says which one.
OPERATION_ACCESS_DENIED403The operation exists but belongs to another merchant. Check the operationIdentifier.
OPERATION_NOT_FOUND404No 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_OPERATION409The operation is not in a financeable status, or it has expired. additionalInfo.operationStatus holds the current status.
UNSUPPORTED_COUNTRY422The 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_USE409The 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_FINANCING409 / 422No 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_OFFER422The 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_CONFIGURED422The merchant has no active financial institution configured. This is not a request error: contact Fliinow.
WEBHOOK_EVENT_NOT_FOUND404No webhook event exists with that eventId.
WEBHOOK_EVENT_OPERATION_MISMATCH403The given eventId belongs to an operation other than the one in operationIdentifier.
WEBHOOK_EVENT_NOT_ACKNOWLEDGEABLE409The event is not in a state that allows acknowledgement, usually because it was already acknowledged.
WEBHOOK_EVENT_STATUS_MISMATCH409The operationStatus you sent does not match the event's. additionalInfo.expectedOperationStatus holds the right one.
DATA_INTEGRITY_ERROR422The request could not be processed due to a conflict with existing data. Review the operation; do not retry without changing it.
FINANCING_PROCESSING_ERROR500Failure while talking to the financial institution. Retry later; contact support if it persists.
INTERNAL_ERROR500Unexpected 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