Invoice
What it does: Returns the PDF invoice for a confirmed booking.
GET /insurances/invoice/reference:[A-Z0-9\-]+Example request
curl -i -X GET \
-H "X_API_KEY: your_api_key" \
https://api-staging.rentalcover.com/insurances/invoice/AB12-345C-INSThe generated PDF will be attached in the response with the following name:
Invoice_AB12-345C-INS.pdf
(Content-Type is application/pdf).Request parameters
Parameter
Required?
Description
reference (URL)
Required
The confirmed booking reference.
Response
The response body is a PDF file. Content-Type: application/pdf. Filename format: Invoice_<reference>.pdf (e.g. Invoice_AB12-345C-INS.pdf).
Last updated
Was this helpful?

