- List execution invoices returns the invoice IDs.
- Download an execution invoice PDF returns the PDF of one invoice.
List the invoices of an execution
Call the list with the workflow code and the execution ID of the payment:
The invoice amount is the payment amount. The PDF shows it together with any
refunds.
Payrails creates the invoice shortly after the payment. Right after a payment,
the list can be empty. Call the list again a little later. An empty list is a valid
response, and the invoice appears in it once Payrails has created it.
Download an invoice as PDF
Pass the invoice ID from the list:200 with the application/pdf media type and the
PDF as the response body. Save the body to a file or pass the bytes on to your
own storage.
The invoice contains the name and address of the customer. Treat the PDF as
personal data and don’t log the response body.
Refunds
A refund updates the invoice of the payment. The PDF of that same invoice shows the credited amount, and the list keeps one entry per invoice.Errors
A retry is safe: both endpoints only read data.