Fired when the e-invoicing status of a customer invoice changes.
This event requires one of the following scopes:
customer_invoices:readonly,customer_invoices:all
Payload fields
| Field | Type | Description |
|---|---|---|
id | integer | Internal ID of the customer invoice. |
e_invoicing.status | string | The new PDP status — see values below. |
e_invoicing.status values:
| Value | Meaning |
|---|---|
submitted | Invoice submitted to the PDP network. |
approved | Invoice accepted by the recipient's PDP. |
accepted | Invoice accepted by the recipient. |
rejected | Invoice rejected by the recipient's PDP. |
refused | Invoice refused by the recipient. |
sent | Invoice forwarded by the PDP. |
collected | Payment fully collected. |
partially_collected | Payment partially collected. |
in_dispute | Invoice is under dispute. |
data.previous_attributes
data.previous_attributesAlways present — contains the previous value of e_invoicing.status before the change.
Example payload
{
"id": 987654,
"event": "customer_invoice.e_invoicing_status_updated",
"retry_count": 0,
"created": 1657875952369,
"data": {
"context": {
"company_id": "abc-123",
"firm_id": "firm-456"
},
"object": {
"id": 42,
"e_invoicing": { "status": "accepted" }
},
"previous_attributes": {
"e_invoicing": { "status": "submitted" }
}
}
}
