A supplier credit note can show a positive total and still reduce what you owe. An invoice extractor can read that total correctly, fill every required field, and send it to the wrong ERP document type. The error survives an extraction accuracy check. It only becomes visible when the payable goes up.
Credit note handling in invoice automation starts by recording what the supplier sent, what the credit relates to, and what the ERP should do with it. The document type, amount sign, and effect on the payable each need their own check. If the system cannot establish one of them, give accounts payable the evidence it needs to resolve the gap before posting.
Keep the source amount and its sign
OpenPeppol’s BIS Billing specification shows two ways to reverse an invoice. The credit note uses type code 381 and carries the same line and total signs as the invoice in the example. The negative invoice uses type code 380 and reverses the relevant line and total signs. The original invoice includes a negative line, so one line becomes positive on the negative invoice. Taking the absolute value of every line or forcing all the lines negative would lose that distinction. OpenPeppol, BIS Billing 3.0, section 5.6.
The document type also helps the import identify a credit and its original invoice as separate records. Insonl’s guide to detecting duplicate supplier invoices.
Read the document type from validated structured data when it is available. With PDFs and scans, capture the title, the document’s own number, any separate invoice references, and the text around the amounts. Use OCR or a document model to propose those fields and point to their location in the source. If a title suggests a credit but the amounts contradict the supplier’s known layout, show the relevant fields together for review.
| What to retain | What it controls |
|---|---|
| Document type and source type code or heading | Selects the supplier format and the ERP mapping to validate |
| Credit note number, issue date, supplier account, and buying entity | Identifies the credit and scopes duplicate checks |
| Original invoice references, dates where supplied, and line or return references | Identifies candidate ledger entries and lines to review |
| Raw amount text, parsed signed values, currency, and tax breakdown | Preserves the evidence needed to check totals and explain the mapped amounts |
| Proposed ERP document type and expected change in the vendor balance | Gives the posting check an outcome to verify |
Apply the sign convention at the ERP mapping boundary. If the ERP’s purchase credit memo expects a positive amount and makes the reduction through the document type, pass the amount in the format that endpoint expects. If the approved path takes a signed amount, validate the signed payload and its expected effect. Test the exact endpoint and configuration with a posted result in a sandbox. Two individually plausible transformations can reverse the credit twice if the integration negates the amount and the ERP applies its own reversal.
Match the credit to the right invoice and line
Keep the credit note number distinct from the invoice being corrected. A Peppol UBL credit note can omit the preceding invoice reference group. The format allows zero or more of these groups, so a document can pass format validation while leaving your matching policy with a decision to make. Keep schema validation and ERP lookup results visible to the reviewer. OpenPeppol, UBL Credit Note Billing Reference. Insonl’s guide to validating Peppol invoices before ERP import.
Look up an explicit invoice reference within the supplier and buying entity. Preserve leading zeros and apply only documented normalization rules for that supplier. Check the currency and ERP ledger entry. Where the supplier refers to a line, verify the item, amount, or tax category needed to allocate the credit under your rules. A purchase order can narrow the search, but several invoices can belong to that order. Prioritize references and approved mappings over a score based on date and amount.
When a credit refers to several invoices, store the approved amount against each ledger entry and track any unapplied remainder. If the reference points to a document that has yet to arrive, hold the application and retry the lookup when the invoice arrives. When a credit belongs to a supplier agreement with no invoice reference, route it for an explicit decision about whether it can be posted on account. Keep the reason and the approving user with the credit.
Hypothetical example. An open EUR 1,200 invoice includes a duplicate freight charge. The supplier sends a credit note for EUR 120, including tax, that names the original invoice. The integration proposes applying EUR 120 to the specified ledger entry, leaving EUR 1,080 open if there are no other adjustments. The warehouse keeps its recorded receipt quantities because the correction concerns freight. If the invoice has been settled by the time accounts payable reviews the credit, send the case to the policy for settled invoices. The original application proposal is now stale.
Give posting and application their own checks
Posting creates the credit in the ledger. Application records which open entries it offsets and by how much. An ERP can carry out both in one operation, but the workflow still needs to check both outcomes. As a third-party product example, Microsoft Dynamics 365 Business Central documents creating a corrective purchase credit memo from a posted purchase invoice, selecting the vendor ledger entry, and specifying a smaller amount for a partial application. The application takes effect when the memo posts. Microsoft Learn, Process purchase returns or cancellations.
Before posting, reconcile line totals, document-level allowances or charges, and tax breakdowns to the supplied totals using the applicable document rules. Route mismatches to review with both the source and proposed values. Verify that the credit is authorized for the selected entity and posting period and that the ERP will receive the intended accounts or dimensions. A credit for returned goods can also need a return record or an item-cost link. A price correction can follow a different route. Capture the approved reason and let it determine which records must be present. Insonl’s guide to three-way invoice matching exceptions.
Recheck the open balance and any earlier applications when the ERP accepts the change. That balance can move between approval and execution when a payment or another credit posts. If posting succeeds and application fails, keep the posted ERP ID and send the unapplied credit to review. On retry, look up that credit and confirm the application state before making another request.
Use a stable external reference for the ERP write where supported. Treat the source file hash as evidence of an identical upload. A rescan or a copy delivered through a second channel can have different bytes. Check the supplier’s credit number in the appropriate entity and numbering scope, and send same-number documents with different content to review. After a timeout, reconcile against the ERP before allowing a retry to create another credit.
Test the ledger outcome before enabling writes
Replay reviewed documents with ERP writes disabled. Include positive-total credit notes, negative invoices, partial credits, missing references, and a credit that arrives after payment. Label the expected document type, invoice or return link, application amount, and review reason for each record. Track wrong-sign proposals and wrong-invoice links separately from field extraction errors. Both mistakes can occur with a clean scan.
In the ERP sandbox, compare the resulting vendor balance, application, and any inventory effect with the reviewed outcome. Run the same approved event again, simulate a lost response, and try applying two credits against the same remaining balance. Look for one posted credit per approved document, one application per approved allocation, and a visible review state for any failure. Carry the ERP document and application IDs back to the review screen so a person can reconcile each result from the source file.
The import, posting, and reconciliation rules run across document intake and the ERP. Insonl’s ERP Systems services.
Sources
- OpenPeppol, BIS Billing 3.0, section 5.6
- OpenPeppol, UBL Credit Note Billing Reference
- Microsoft Learn, Process purchase returns or cancellations
Review one supplier credit workflow
Bring a redacted credit note, the original invoice, and the resulting vendor ledger entries to a free AI workflow audit. Use them to trace where the document gets classified, matched, and posted, and where a reviewer needs to decide. Insonl charges for optional work after the audit. Request a free AI workflow audit.