Generates a PDF from the stored XML of a received SAT invoice. The result is cached — subsequent calls return the cached PDF instantly. Requires the XML to have been downloaded first (hasXml: true).
Request
Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Path Params
Responses
🟢200OK
application/json
PDF generated, or served from cache. The success body is not enveloped — it is just { "pdf": "<base64>" }.
Bodyapplication/json
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
🔴502Bad Gateway
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.gigstack.io/v2/invoices/sat/9d9b0e5b-034c-42f7-bd21-3a868a57c13e/pdf'