CreditMemoIssued
Consumed by this service. A credit memo against an earlier invoice/bill, identified by the caller's ids.
When
PVC Connect issued a credit memo against an earlier invoice or bill, identified by the caller's ids instead of the service's document id.
How it is handled
The original is looked up by entityId + sourceSystem + originalSourceDocumentId + direction and must be committed. Tax is reversed at the original tax date and FX lock, capped at what remains per line. If the original hasn't arrived or isn't committed yet (e.g. it is PendingTax during an AvaTax outage), the credit is parked and redelivered after 1 m, 5 m, 15 m, 1 h and 4 h; after that it goes to _error.
Routing
Publish to exchange pvc.integrations.credit-memo-issued; it is bound to this service's queue credit-memo-issued. If the original document isn't there yet (or isn't committed), the message is parked and redelivered later rather than rejected.
Fields
| Field | Type | Meaning |
|---|---|---|
entityId | string | Owning entity. |
direction | TaxDirection | Receivable or payable (of the original). |
sourceSystem | string | Caller's system. |
originalSourceDocumentId | string | Caller's id of the invoice/bill being credited. |
credit | CreateCreditRequest | The credit, exactly as for POST .../credits. |