Skip to main content

Invoice Validation

A-Cube validates invoice data against XSD file provided by KSeF.

If the invoice is fully validated we accept it and forward to KSeF.

Additionaly, A-Cube provides simple, additional layer of validation of business logic. This covers check if NIP is valid (semantically) but also if NIP is valid in GUS database.

During invoice upload - if there are any errors, system will provide detailed information.

Example with incorrect Legal Entity data

{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "podmiot1.daneIdentyfikacyjne.NIP: Legal Entity not found for NIP 1234567890",
"violations": [
{
"propertyPath": "podmiot1.daneIdentyfikacyjne.NIP",
"message": "Legal Entity not found for NIP 1234567890",
"code": null
}
]
}

Example with data incompatible with schema

{
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "podmiot1.daneIdentyfikacyjne.pelnaNazwa: This value is too short. It should have 1 character or more.",
"violations": [
{
"propertyPath": "podmiot1.daneIdentyfikacyjne.pelnaNazwa",
"message": "This value is too short. It should have 1 character or more.",
"code": "9ff3fdc4-b214-49db-8718-39c315e33d45"
}
]
}

More info about FA(3) Schema here