We would like to ensure we fully understand the complete workflow of an invoice, from creation to final delivery and acknowledgment. Please clarify the following points:
Invoice Workflow
After a taxpayer registers and prepares an invoice in their ERP, should the following API calls be executed in order?
Generate IRN
Generate QR Code
Validate invoice
Sign invoice
Transmit invoice
Is this correct?
Sign and Transmit Behavior
Does Sign Invoice send the invoice to FIRS, or only produce a signed document?
Does Transmit Invoice send the invoice to FIRS, to the recipient, or both?
If the recipient Access Point Provider is offline, does /transmit queue the invoice or fail immediately?
** Confirm Endpoint**
For /confirm/{IRN}, what exactly do the fields transmitted and delivered represent, and when do they become true?
Our confusion arises because it is unclear whether Sign Invoice already triggers a transmission to FIRS, and whether /confirm will update transmitted value to "true", meaning teh /sign invoice will automatically update the trasmitted value field in the /confirm endpoint to "true", and same doubts arises for delivered value when it will become "true".
Payment Status
As the issuer of the invoice, we should update the payment status before executing /report for fiscalization purposes once the invoice is “paid”?
Is partial payment allowed, and if so, how should it be declared?
Lookup Endpoint
What is the purpose of the Lookup endpoint, and when should it be executed in the workflow?
Receiver Workflow
As a recipient of the invoice, is configuring a webhook and calling the download endpoint sufficient?
Are there any additional actions the receiver must perform?
Thank you in advance