The Fiscal Documents API provides notifications through webhooks when a new Fiscal Document is created.
Information sent through webhook:
- resource: "fiscal_document"
- event: "created"
- data: id.{fiscal_document_id}
Each webhook will present the fiscal_document_id, so you can retrieve all the information using the Get a Withholding Certificate section.