Responces
| Code | Error code | Response/error message |
| 200 | - | (successful request) |
| 200 | WRONG_FORMAT | (required fields are missing or have a wrong format) |
| 200 | NO_OBJECT_FOUND | “no object with the given fiscal id found” |
| 200 | NO_CERT_FOUND | “certificate not found” |
| 200 | WRONG_DATE_TIME | "incorrect date and time of operation" |
| 200 | WRONG_DATE_TIME_FOR_LAST_INV | "the date and time is less than the last invoice time" |
| 200 | MISSING_PARENT_FISCAL_NUM | "missing ‘parentFiscalNum’ field" |
| 200 | WRONG_TOTAL_NET_AMOUNT | "total net amount does not match the sum of all item amounts" |
| 200 | WRONG_AMOUNT_DUE | "amount due does not equal total amount minuse the sum of all payments" |
| 200 | WRONG_VAT_TOTAL_AC | "vatTotalAC does not equal to sum of taxTotal tax amounts" |
| 200 | NO_PAYMENT_DUE_DETAILS | "amount due is positive, but neither a payment due dat nor payment terms are provided" |
| 200 | OTHER | Other errors |
Validation errors
| Error message | Code |
| "object with the given fiscal ID not found" | NO_OBJECT_FOUND |
| "certificate not found" | "NO_CERT_FOUND" |
| "incorrect date and time of operation" | "WRONG_DATE_TIME" |
| "parent fiscal num must be present" | "MISSING_PARENT_FISCAL_NUM" |
| "the date and time is less than the last invoice time" | "WRONG_DATE_TIME_FOR_LAST_INV" |
| "amount due does not equal total amount minuse the sum of all payments" | "WRONG_AMOUNT_DUE" |
| "amount due is positive, but neither a payment due dat nor payment terms are provided" | "NO_PAYMENT_DUE_DETAILS" |
| "total net amount does not match the sum of all item amounts" | "WRONG_TOTAL_NET_AMOUNT" |
| "amount does not equal price * quantity for item with name/lineId %s" | "WRONG_ITEM_AMOUNT" |
| "tax amount for tax code '%s' (rate %.2f) does not equal base * rate for item with name/lineId '%s'" | "WRONG_TAX_AMOUNT" |
| "these tax codes with rates are invalid: (list of tax codes-rates)" | "NO_TAX_CODES_RATES_FOUND" |
| "these taxes with rates are missing from total taxes: (list of tax codes-rates)" | "UNEXPECTED_TAXES" |
| "these taxes with rates are unexpected in total taxes: (list of tax codes-rates)" | "MISSING_TAXES" |
| "these taxes with tax rates have incorrect total amounts: (list of tax codes-rates)" | "WRONG_TOTAL_TAX_AMOUNTS" |
| "vatTotalAC does not equal to sum of taxTotal tax amounts" | "WRONG_VAT_TOTAL_AC" |
| (required fields are missing or have a wrong format) | WRONG_FORMAT |
| Other errors | OTHER |
Example:
{
"fiscalNum": "IA00029",
"status": "success",
"url": "https://ofd-check-view.kampispay.com/invoice?tin=5566778899&n=IA00029&t=1778085321"
}