Skip to main content

Welcome to our Dev Docs!

Invoice Corrected

This webhook is triggered when a new invoice or credit note PDF was corrected and sent/archived.

Typical Scenario

You want to listen to this hook to fetch a corrected invoice.

HTTP/1.1
POST /billwerk-hook
Host: example.com
Content-Type: application/json

{
    "OldInvoiceId":"6298a006d2044479fc05e9f0",
    "NewInvoiceId":"6298c9072c6833903dc32051", //Deprecated. Do not use this anymore
    "NewInvoiceDraftId":"6298c9072c6833903dc32051",
    "OldInvoiceDraftId":"6298a006d2044479fc05e9f0",
    "NewInvoiceDraftIds":["6298c9072c6833903dc32051"],
    "ContractId":"6298a006e636b694d807080f",
    "CustomerId":"6298a006e636b694d8070809",
    "Event":"InvoiceCorrected",
    "EntityId":"62148e3c0c14e1609e9ca5c1"
}