Error Handling
This topic explains how to handle errors and other messages.
HTTP Status Codes
The service's API uses standard HTTP Status codes, including:
Code | Description |
---|---|
200 | Successful request. |
400 invalid request | It can also signify a business error. You can review the error's details for further information. |
401 unauthorized | The request is not allowed. |
500 internal server error | Generally, the operation should be retried later, and if the error persists, support should be contacted. |
Error Information in API Responses
Whenever possible, the API returns an application/json
response with error information, such as below:
{
"documentId": null,
"status": "SchemaIsNonCompliantError",
"rejectMessage": "Validation Error: The element 'PartyTaxScheme' in namespace 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2' has incomplete content. List of possible elements expected: 'CompanyID, TaxLevelCode, ExemptionReasonCode, ExemptionReason' in namespace 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2' as well as 'RegistrationAddress, TaxScheme' in namespace 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'."
}
This data structure contains the error type (category) and a message with additional details.
Error Status
The status
field shows one of the statuses as listed both below and in the Document Workflow Status topic:
Status | Description |
---|---|
Pending | The initial state of the document while it is being pre-processed. While in this status, the document is not yet visible in the e-Invoicing dashboard. This is a transient state. Documents move from this status to either In Progress when they are successfully validated, or Processing Issue in the case of an error. |
In Progress | After initial validation, a document is visible in the e-Invoicing dashboard and delivery is in progress through the network to the tax authority and the final recipient. This is a transient state. Documents move from this status to either Completed or Error. |
Completed | The business process of the document is complete and all deliveries are final. |
Processing Issue | The document shows this status when an error occurs in the early stages of ingestion, for example, the input document is not correctly formatted. |
Error | The document shows this status once it has made it through early validation but has a business error, for example, it was rejected by the tax authority. This category of error can generally be resolved by the user by correcting the issue indicated. |
Error Messages
Error messages are based on the Rules. These are displayed on the Vertex e-Invoicing UI.
In This Section
Topic | Description |
---|---|
VRBL Core Messages | The VRBL core messages are the ones that are common to all countries. |
PEPPOL Core Messages | Read the core PEPPOL messages. |
EN 16931 Core Messages | View the messages used for EN 16931. |
Belgium: Messages | View the messages for Belgium. |
Denmark: Messages | View the messages for Denmark. |
Estonia: Messages | View the messages used by Estonia |
Finland: Messages | Read about the messages for Finland. |
France: Messages | Read about the messages generated for France. |
Germany B2B: Messages | Read about the messages that are specific to German B2B documents. |
Germany B2G: Messages | Read about the messages that are specific to German B2G documents. |
Greece: Messages | View the messages that are specific to Greece. |
Italy: Messages | Read the messages that are specific to Italy. |
Japan: Messages | View the messages that are specific to Japan. |
Lithuania: Messages | Read about the messages for Lithuania. |
Malaysia: Messages | View the messages that are specific to Malaysia. |
Netherlands: Messages | View the messages that are specific to the Netherlands. |
Portugal: Messages | View the messages that are specific to Portugal. |
Romania: Messages | Read the rules that are generated for Romanian documents. |
Saudi Arabia: Messages | View the messages for Saudi Arabian documents. |
Serbia: Messages | View the messages that are specific to Serbia. |
Slovakia: Messages | Read about the messages used for Slovakia. |
Slovenia: Messages | Read about the messages used for Slovenia. |
Spain: Messages | Read about the messages used for Spain. |
Sweden: Messages | View the messages that are specific to Sweden. |
UK: Messages | Read about the messages used by the UK. |
Updated about 1 month ago