Facture

Catalogue des erreurs

Tous les codes d'erreur renvoyés par l'API partenaire v3, avec leur statut HTTP et les endpoints concernés.

Format : voir Conventions. Les messages sont indicatifs ; seul le code fait foi.

Endpoints : C = créer, R = récupérer, L = lister, A = annuler.

400 Bad Request

CodeEndpointsMessageAction
INVALID_REQUESTC, R, L, AThe request payload is invalid. Check the field types and formats against the API contract.Corriger la requête (types, formats, champs inconnus).
INVALID_CURSORLThe pagination cursor is invalid.Reprendre la pagination sans curseur.
INVALID_DATE_RANGELcreatedFrom must be before or equal to createdTo.Corriger les bornes.

401 Unauthorized

CodeEndpointsMessageAction
MISSING_PARTNER_IDC, R, L, AThe authenticated partner identifier is missing.Vérifier la configuration du client OAuth.

Un jeton absent, invalide ou expiré est rejeté par la gateway (401) avec un format qui lui est propre, sans enveloppe error.code.

404 Not Found

CodeEndpointsMessage
PRODUCT_NOT_FOUNDC, LThe product does not exist or is not owned by the partner.
CUSTOMER_NOT_FOUNDCThe customer does not exist or is not owned by the partner.
INVOICE_NOT_FOUNDR, AThe invoice does not exist or is not owned by the partner.

409 Conflict

CodeEndpointsMessageAction
REFERENCE_ALREADY_EXISTSCAn invoice with the same partner reference already exists with a different payload.Utiliser une nouvelle référence, ou rejouer le contenu initial.
CREATION_ALREADY_IN_PROGRESSCThe customer creation is already in progress, retry shortly.Réessayer après quelques secondes.
INVOICE_ALREADY_PAIDC, AThe invoice has already been paid and cannot be cancelled.Annulation impossible ; en création, concurrence sur une référence déjà payée.
INVOICE_ALREADY_CANCELLEDAThe invoice has already been cancelled and cannot be cancelled again.Aucune ; l'état attendu est atteint.

422 Unprocessable Entity

CodeEndpointsMessage
PRODUCT_NOT_AVAILABLECThe product is not available for invoice creation.
AMOUNT_BELOW_MINIMUMCThe invoice amount is below the product minimum.
AMOUNT_ABOVE_MAXIMUMCThe invoice amount is above the product maximum.
AMOUNT_MISMATCHCThe invoice amount mismatches.
CUSTOMER_NOT_ONBOARDEDCThe customer has not completed onboarding yet.
CUSTOMER_TYPE_CHANGEDCThe customer person type cannot change for an existing customer.
CUSTOMER_IDENTITY_REQUIREDCThe customer identity is required when the customer is not known yet.
INVOICE_EXPIREDCThe invoice expiration date must be in the future.

500 Internal Server Error

CodeEndpointsMessageAction
SERVICE_FEE_UNAVAILABLECThe invoice service fee could not be computed.Réessayer plus tard.
CUSTOMER_PROVISIONING_FAILEDCThe customer could not be provisioned.Réessayer plus tard.
PAYMENT_IN_PROGRESSCThe invoice status is still in progress.Réservé ; non émis à ce jour.

Toute autre erreur inattendue renvoie 500 sans code métier garanti. Les créations peuvent être rejouées sans risque grâce à l'idempotence.

Codes réservés

Ces codes existent dans le contrat mais ne sont pas renvoyés par les endpoints actuels : UNAUTHORIZED, MISSING_PRODUCT_ID, INVALID_INVOICE_UPDATE_REQUEST, PAYMENT_IN_PROGRESS.

On this page