Generating a credit note without misaligning it from the original invoice

Troubleshootingwordpresssdi-via-pop2026-09-01

Symptom

A refund generates a credit note XML that doesn’t match what was refunded, or the document is rejected/not generated correctly.

Cause

The most common causes:

Fix

  1. Check that the original invoice was actually sent before proceeding with the refund: if it wasn’t, consider correcting/sending the original invoice first.
  2. When recording the refund in WooCommerce, reverse the quantities of the affected products (don’t just enter a free-form refund amount): that’s what allows the document to correctly reflect the cancelled lines.
  3. After the refund, POP automatically generates the credit note XML linked to the order (see invoice-numbering-and-order-status for the exact trigger). Download it from the Invoices tab.
  4. If you use a transmission channel/add-on connected to an external accounting system, sending the credit note to that system may require a manual upload, separate from the document generation itself: check the specific behavior of the active channel.

For the exact credit note payload requirements (connected_invoice_data.id/date) on the API side, see api/sdi; to understand when the order actually generates the XML see invoice-numbering-and-order-status.