generateSAFTXML
mutation
Generate SAF-T(PT) XML
Generates a SAF-T(PT) XML file for the specified date range and options. Required for Portuguese tax compliance.
When options.mailDatais provided, a signed download link is e-mailed to the given
recipient(s) immediately (the file is generated lazily when the link is opened); otherwise the
file is generated eagerly and an in-app notification with a download link is raised as before.
options.linkExpiryDays(7 or 15, default 7) sets how long the e-mailed link stays valid; only
used with options.mailData.
mutation {
generateSAFTXML(companyId: Int!, options: SAFTOptions!): GenerateSAFTResponse!
}Returns: GenerateSAFTResponse!
Arguments
| Name | Type | Description |
|---|---|---|
companyId | Int! | |
options | SAFTOptions! |