Some usual errors that you may receive

  • IssueDate error

    Date_issued

The documents must being transmitted to the IAPR live the moment that they have been issued. But, the transmission can be asynchronous, in cases of internet connection problems or Server error, by using the field “isDelayedCode”. By setting “isDelayedCode” to value 1, you can transmit asynchronous in case of internet connection problems, and to value 2, for cases of server errors. The value 0 is used for live transmission and in that case the date must be the current date. If it is not, you will receive the response 400 Bad Request that you can see above with the error message “IssueDate is invalid, it must be equal with current date”.


  • Email recipient error

    send_method

In the json file, there is the tag “transmissionMethod” inside the object "additionalDetails”, where you state if an email with the invoice url will be sent to your customer. If transmission method is setted to “E”, an email is going to be sent to the emails addresses that are stated in the array “AccountingDepartmentEmails”. If transmission method is “A”, then no email is going to be sent and the invoice is just going to be archived on the portal. If you set the “transmissionMethod” to “E”(which means that an email will sent to your customer) but there is no any email address in the “AccountingDepartmentEmails” field then you are going to receive the response 400 Bad Request that you can see above with the error message “Email recipient is mandatory for sendmethod E”.


  • 5.1 Credit-Correlated Invoices Error

    correlated_invoice

A common error will be possible to face an issuer during the credit process of a specific invoice(using 5.1  credit correlated invoice), is that the debit invoice even if it has already tagged with a MARK, IAPR may face huge delays during the archiving process. As a result it is possible to face errors when you try to use a 5.1 Credit Correlated Invoice in order to cancel a specific issued invoice. In this case you can use a 5.2 Credit Invoice in order to credit your initial one (No MARK needed).

  • 401 Unauthorized Error

    unauthorized

A common error that may come up is 401 Unauthorized, when the VAT of the issuer does not correspond to the APIKey that you use to be authenticated so that you can transmit the json file.