Retrieve Tax Invoice PDF
Retrieve the PDF download URL for a tax invoice that finished issuing through standard issuance, reverse issuance, or amendment. Call it with the API key that requested the issuance. This API does not deduct points. The first call starts generating the PDF. When you get 202, wait the number of seconds in Retry-After and send the same request again. When the PDF is ready, the API returns 200 and a URL that is valid for 5 minutes. When the URL expires, call the API again to get a new one. Test keys return 200 and a sample PDF URL right away. Tax invoice PDF guide
Authorizations
Append a colon to your API key, Base64-encode it, and put it in the header. Enter the API key as the username and leave the password empty.
Path Parameters
issuanceKey from the issuance response
Response
PDF ready
Tax invoice PDF status and download URL
The requested issuanceKey
PDF status. PENDING means the PDF is being generated and READY means it is ready.
PENDING, READY PDF URL. Set only when READY and valid for 5 minutes. It contains a signature, so do not log the full URL. Test keys return a sample PDF URL.
downloadUrl expiry time (UTC)
File name saved on download, in the form {type}_{write date}_{supplied party name}_{approval number}.pdf.
