TaxCalculationFailed
Published by this service. The tax provider rejected the document. It needs a corrected request.
When
The provider rejected the document (bad address, unknown tax code, ...). The document is Failed; retrying the same data will not help.
What to do with it
Show reason and details to the coordinator. Fix the data and resend with the same sourceDocumentId; the failed document is replaced.
Routing
Exchange pvc.integrations.tax-calculation-failed (fanout). Bind your own queue to it. The JSON envelope's messageType is urn:message:Integrations.Contracts.Events:TaxCalculationFailed.
Fields
| Field | Type | Meaning |
|---|---|---|
documentId | Guid | Document id. |
entityId | string | Owning entity. |
sourceSystem | string | Caller's system. |
sourceDocumentId | string | Caller's document id; resend with the same id once corrected. |
reason | string | The provider's reason. |
details | IReadOnlyList<string> | Field-level detail from the provider. |
occurredAt | DateTimeOffset | When it was rejected. |