À quoi sert la ressource « Recouvrement avancé » ?
Profils de crédit clients (plafond, blocage de commande, assurance-crédit, données publiques BODACC et Recherche d’entreprises, historique du score), litiges sur facture (motif normé, contesté / non contesté, SLA, résolution), échéanciers (plans d’apurement), contrats d’affacturage, bordereaux de cession, mouvements du factor, injonctions de payer, tâches d’appel — discriminant kind
Quels endpoints sont disponibles ?
| Méthode | Adresse | Action |
|---|---|---|
| GET | /api/v1/collection_records et /{id} | lire (liste paginée ou un élément par identifiant) |
| POST | /api/v1/collection_records | créer un élément |
| PUT | /api/v1/collection_records/{id} | remplacer un élément |
| PATCH | /api/v1/collection_records/{id} | modifier certains champs |
| DELETE | /api/v1/collection_records/{id} | supprimer un élément |
Quels champs contient la ressource « Recouvrement avancé » ?
| Champ | Type et description |
|---|---|
| id | string |
| tenantId | string |
| kind | credit_profile|dispute|payment_plan|factor_contract|factor_batch|factor_event|injunction|call_task |
| legalEntityId | string (société émettrice) |
| entityId | string (tiers client) |
| createdAt | ISO8601 |
| updatedAt | ISO8601 |
| createdBy | string |
| journal | CollectionJournalEntry[] — journal des actions { at, userId, action, detail } |
| creditLimit | number — plafond interne (€ TTC) |
| blockMode | none|warn|block |
| blockOverdueDays | number |
| manualHold | boolean |
| manualHoldReason | string |
| reviewDate | ISO8601 |
| insurer | string |
| insurancePolicyNumber | string |
| insuranceCoverPct | number |
| insuranceAgreementAmount | number — agrément de l’assureur (€) |
| insuranceAgreementRef | string |
| insuranceAgreementExpiry | ISO8601 |
| insuranceStatus | none|requested|granted|reduced|refused|cancelled |
| insuranceDecisionDate | ISO8601 |
| insuranceClaimAt | ISO8601 |
| insuranceClaimRef | string |
| external | object — instantané des données publiques (état INSEE, comptes, procédures collectives BODACC) |
| scoreHistory | object[] — { at, score, grade } |
| notes | string |
| documentId | string — facture |
| invoiceNumber | string |
| lineRefs | string[] — lignes contestées |
| reasonCode | string — motif normé DSE v3.2 (PU_ERR, QTE_ERR, LIVR_INCOMP…) |
| reasonDetail | string |
| contestedAmount | number |
| invoiceAmountTTC | number |
| ownerId | string |
| openedAt | ISO8601 |
| slaDays | number |
| slaDueAt | ISO8601 |
| status | string — selon kind (litige open|investigating|resolved|rejected|cancelled, échéancier active|completed|broken|cancelled, contrat active|suspended|terminated, bordereau draft|sent|financed|cancelled, injonction |
| resolution | credit_note|partial_credit_note|cancellation|rejected|commercial_gesture |
| resolutionAmount | number |
| resolvedAt | ISO8601 |
| resolutionNote | string |
| creditNoteId | string — avoir de résolution |
| attachments | object[] — pièces GED { name, url, size, type } |
| customerContact | string |
| source | manual|einvoice|portal |
| einvoiceEventId | string |
| documentIds | string[] — factures de l’échéancier |
| totalAmount | number |
| agreedAt | ISO8601 |
| periodicity | weekly|monthly|custom |
| installments | object[] — { seq, dueDate, amount, paidAmount, paidAt, remindedAt } |
| graceDays | number |
| reminderDaysBefore | number |
| brokenAt | ISO8601 |
| paidAtAgreement | number |
| factorName | string |
| contractNumber | string |
| startDate | ISO8601 |
| endDate | ISO8601 |
| financingRatePct | number — quotité de financement (%) |
| guaranteeReservePct | number — retenue de garantie (%) |
| serviceFeePct | number — commission d’affacturage (% TTC) |
| serviceFeeVatRate | number |
| minimumFeeHT | number |
| financingAnnualRatePct | number — commission de financement (% l’an) |
| ceiling | number — plafond |
| withRecourse | boolean |
| notified | boolean — notifié (true) ou confidentiel |
| subrogationMention | string |
| factorAddress | string |
| factorIban | string |
| factorBic | string |
| factorAccount | string (467xxx) |
| reserveAccount | string (4671xx) |
| coveredEntityIds | string[] |
| contractId | string |
| number | string — numéro de bordereau |
| date | ISO8601 |
| lines | object[] — factures cédées { documentId, invoiceNumber, entityId, entityName, siren, invoiceDate, dueDate, amountTTC } |
| totalTTC | number |
| reserveAmount | number |
| financedAmount | number |
| serviceFeeHT | number |
| serviceFeeVat | number |
| sentAt | ISO8601 |
| financedAt | ISO8601 |
| entryIds | string[] — écritures générées |
| batchId | string |
| type | financing|service_fee|financing_fee|collection|retrocession|reserve_release|client_payment|direct_payment |
| amount | number |
| vatAmount | number |
| statementRef | string — référence du relevé du factor |
| reconciled | boolean |
| entryId | string |
| caseIds | string[] — dossiers de recouvrement |
| court | commerce|activites_economiques|judiciaire |
| courtName | string |
| cerfa | string — 12946*02 ou 12948*06 |
| principal | number |
| interest | number |
| interestBasis | string |
| recoveryFee | number |
| otherCosts | number |
| claimBasis | string — fondement (art. 1407 CPC) |
| exhibits | string[] — bordereau de pièces |
| filedAt | ISO8601 |
| orderDate | ISO8601 |
| orderRef | string |
| servedAt | ISO8601 |
| oppositionDeadline | ISO8601 |
| costs | number |
| lawyerOrBailiff | string |
| caseId | string |
| dueDate | ISO8601 |
| assignedTo | string |
| level | number |
| script | string |
| phone | string |
| outcome | answered|no_answer|voicemail|promise|dispute|wrong_number |
| note | string |
| doneAt | ISO8601 |
Comment filtrer, trier et paginer ?
Exemple de lecture filtrée et triée : GET /api/v1/collection_records?filter[kind]=…&sort=legalEntityId:desc&limit=50.
Le filtre est une égalité stricte sur un champ déclaré, le tri s’écrit champ:asc ou champ:desc, la page contient 50 éléments par défaut et 200 au plus, un champ inconnu renvoie une erreur 400 plutôt qu’un résultat faux.
Quelles autorisations faut-il ?
- Une offre qui inclut l’API publique : Enterprise.
- Une clé d’API créée dans Système › Intégrations, envoyée dans l’en-tête Authorization: Bearer, limitée au dossier qui l’a émise.
- Une portée accordée à la clé pour cette ressource : lecture, écriture et suppression.