API to download the credit PDF

The webhook for an invoice contains an invitation_key. With the /api/v1/invoice/{invitation_key}/download this works great to push PDF-files to external systems.

The webhook for a credit missing this property. And API as well. What’s the recommended way to get the credit PDF?

Hi,

If the invitations are missing it sounds like a bug, feel free to create an issue on GitHub and we’ll make sure it’s corrected.

You can use the network tab in the browser console to see the API request made by the app to download the PDF.

That one uses another sort of URL: https://domain/client/credit/77n3JTYPREaa5o8jnCAHST9zT9dWAV5z/download_pdf