Error
ResponseThe error envelope every non-2xx response carries.
Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.
Attributes
1What went wrong.
7 attributes of error
Stable, machine-readable error code. Codes are part of the contract: new ones may be added, existing ones never change meaning. A server fault is INTERNAL_ERROR (500); a status with no code of its own carries ERROR.
Developer-facing explanation in English; never parse it or show it as is. Localize from code and context.
Field-level problems, present on validation errors.
3 attributes of each item
Id of this request, also sent as the X-Request-Id header. Quote it when contacting support. Absent only when the request carried no id.
On a conflict with an existing record (a taken external_ref, document number or registry code): that record's id, so a client can adopt it instead of guessing by search. Absent otherwise.