eFakturuj / API Docs
eFakturuj Guides

Issue a credit note against an invoice

Use this workflow when your company supplied the goods or services and issued the original invoice. Start with the original in Invoices → Issued. For a buyer issuing a correction on a supplier’s behalf, use the self-billing workflow.

1. Find what is left to credit

Open a delivered invoice and choose Create credit note. For an API integration, get the original invoice and its current ETag, then call GET /api/v1/companies/{company_id}/invoices/{invoice_id}/credit-notes/allowance. With a company key, the allowance requires invoices:read and creating the linked credit note requires invoices:send even when you save it as a draft.

The allowance identifies the available VAT rates, eligible original lines and quantities. It also explains a refusal. An unpaid €123.00 invoice with one 23% VAT rate and no earlier credits is the example below.

2. Choose the reason and save a draft

ReasonWhat to enter
partial_creditThe VAT-inclusive amount to take off the invoice, for example €24.60.
price_correctionThe VAT-inclusive reduction against each affected VAT rate.
returned_goodsThe original line and the quantity returned. Its original price and VAT apply.
full_reversalReverse the eligible remainder. The preview shows the amount left after earlier credit notes.

Review the original invoice number, VAT breakdown and credit total, then save the draft. For an API client, POST to /api/v1/companies/{company_id}/invoices/{invoice_id}/credit-notes with If-Match set to the original invoice’s current ETag. Set save_as_draft explicitly. This request credits €20.00 net plus €4.60 VAT.

{
  "reason": "partial_credit",
  "save_as_draft": true,
  "amounts": [
    { "vat_rate": "23.00", "vat_category_code": "S", "gross": "24.60" }
  ]
}

A successful draft request returns 201 and the credit note’s own ID and version. Its status is draft, it has no assigned number and the balance of the original is still €123.00. Integrations that omit save_as_draft use the existing issue-and-deliver or approval workflow. Request shapes for all four reasons

3. Confirm or approve, validate and deliver

Open the returned draft. Choose Confirm credit note, or submit it for approval if your company requires an approver. Confirmation or approval assigns its number from the company’s credit-note series. Validate the credit note, then use the delivery action offered for the original invoice’s delivery method. For a Peppol document, confirm the send and wait for delivery.

For an integration, use the credit note’s ID for subsequent actions. In the direct-confirm flow, post to …/invoices/{credit_note_id}/mark-approved, then /validate and /send on that credit note. Use the approval workflow when required. Fetch the latest credit-note version before each versioned action. A 412 means your copy is stale. Reload the original and its linked credits after an interrupted create request before retrying.

4. Check the balance and any refund

Read the original invoice again. credit_notes links to the correction, credited_amount shows the issued credit and amount_due gives the updated outstanding amount. For the unpaid €123.00 invoice, a single issued €24.60 credit leaves €98.40. A queued credit can already reduce the allowance for another correction while delivery is in progress.

On the credit note, credited_invoice links back to the original and settlement describes the credit. If the buyer already paid all €123.00, check the €24.60 refund due and record the repayment against the credit note when it occurs. In the buyer’s account, a Peppol-delivered credit note appears among the received credit notes. A full reversal voids the original once issued.

If the amount or returned quantity exceeds the remaining allowance, refresh it and adjust the entries. For a linked draft whose lines need to change, discard the unissued draft and create the correction again from the original.