-
Hello, as per the subject, I'm looking for a way to understand if am invoice has been sent via email given its document id. I'm not able to find any field such as "status" in the payload of the endpoint for listing the issued document (GET /c/{company_id}/issued_documents). On the other hand I see that there is an endpoint for getting the email data (GET /c/{company_id}/issued_documents/{document_id}/email), but I'm not clear about how to use it to understand if an invoice has been sent or not. Can anyone please advise? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @massi82 to check the status of the email you can check the field Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi @emajo, thanks for the reply. I've found the field seen_date in the "List Issued Documents" payload, but in our case it is always to null, even for the invoices that have been successfully sent (as properly shown in the GUI). Is there anything I'm missing? Thanks for the help. |
Beta Was this translation helpful? Give feedback.
That is not an invoice sent by email, it has been sent to the SDI, in this case the field you need to check is
ei_status
, you can find all the possible values on our documentation.