For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoice

What it does: Returns the PDF invoice for a confirmed booking.

Confirmed bookings only. Only bookings with Status: Confirmed can generate an invoice.

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-INS
The 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?