API documentation
Step 7 – When AADE does not answer
If AADE is unavailable, the document is issued with the Transmission Failure_2 indication and we transmit it later ourselves.
Sometimes AADE does not answer: it is unavailable, it is slow, or it returns a temporary error. Then we do not refuse the document. We issue it and transmit it to AADE ourselves as soon as it answers. A.1035/2020 (§3.3β) calls this loss of connection between the provider and AADE (Transmission Failure_2).
It works only with provider: "flexy". You send nothing different: the body is the same as in
step 2.
The response
The API answers HTTP 201, as always, but without a ΜΑΡΚ:
{
"document": {
"id": "969950c9-2bfa-48c8-ba15-ebe12d02b743",
"provider": "flexy",
"status": "mark_pending",
"transmission_failure": 2,
"mydata_mark": null,
"mydata_uid": "2FD8A9DDD5BC72ED3D3C4F9F54E57A3ABB653403",
"aade_authentication_code": null,
"verification_url": "https://provider-staging.flexy.gr/api/v1/public/verify/<public_key>"
// … the other fields as in step 2
}
}
| Field | What it means |
|---|---|
status | mark_pending: the document is issued, but AADE has not registered it yet. |
transmission_failure | 2: AADE did not answer. If you sent transmission_failure: 1 (step 6), the response also has 2, but the document goes to AADE with the 1 indication it was printed with. |
mydata_uid | The document's UID. We compute it as AADE does, so it is the same one AADE will give. |
mydata_mark, aade_authentication_code | null until the document is registered. |
verification_url | The provider's page for the QR code. While the ΜΑΡΚ is missing, it shows the Transmission Failure_2 indication. |
What you print until the ΜΑΡΚ arrives
The Annex B data without the ΜΑΡΚ and the authentication string (A.1035/2020 item 7_3):
- the UID (
mydata_uid); - the indication «Απώλεια Διασύνδεσης Παρόχου – ΑΑΔΕ - Transmission Failure_2»;
- a QR code with the
verification_url.
What we do
We send the document again on our own, with <transmissionFailure>2</transmissionFailure>, within one day of
its issue date (A.1035/2020 §3.4β): a document of the 14th is sent by the end of the 15th, Athens time. We try
again after 1, 2, 4, 8 and 16 minutes, then every 30 minutes.
How you get the ΜΑΡΚ
Ask for the document by its id:
curl https://provider-staging.flexy.gr/api/v1/documents/<id>/ \
-H "Authorization: Bearer <token>"
Once AADE registers it, the response has status: "success", the mydata_mark, the
aade_authentication_code and a verification_url with the ΜΑΡΚ. transmission_failure becomes null. From
then on the document prints normally, with its ΜΑΡΚ and authentication string, as in step 2.
Something is wrong
| What you see | Cause | What to do |
|---|---|---|
status: "failed" | AADE refused the document when we sent it again, for something in the document itself. | Email us at [email protected]. |
status: "mark_pending" after the end of the following day | AADE did not answer within the deadline. | We will contact you; you can also email us at [email protected]. |
Anything AADE refuses on the first transmission (authorisation, schema, business rules) is an error as in step 2 and is not issued.