Skip to content

Bulk issuance of documents (batch)

When you have volume —hundreds or thousands of documents per day— you don’t want to issue them one by one in real time. The Fiscal Hub lets you accumulate and issue in batch or by daily summary, depending on what each authority supports.

At the end of the day (or every X hours) you want to issue all the pending documents that piled up during the day.

Flow diagram: bulk issuance of documents

Some countries have nodes designed exactly for this:

  • Batch/summary issuance is usually asynchronous: you submit, receive a ticket or protocol, and query the result later. Split those two steps in the workflow.
  • Track what was issued and what failed so you only retry the pending items (see HubfiscalRetryPending as a retry-with-backoff pattern).
  • Schedule the cron at a time that respects the issuing country’s time zone.