LogoLogo
  • Introduction
  • Authentication
  • Endpoints
    • Content
    • Quote
    • Status
    • Update
    • Purchase
    • Cancel
    • InstantBooking
    • Update Customer
    • Notifications/list
    • Notification/update
    • GetAllPurchasedPolicies
    • GetAllCancelledPolicies
    • CoverOptOut
    • Invoice
  • Webhook
    • HMAC Verification
    • Events
      • Cancellation Event
  • Testing
  • Errors
    • Quote Errors
    • Purchase Errors
    • Cancel Errors
  • Supported Currencies
  • Supported Languages
  • Supported Regions
  • Non-API Functions
Powered by GitBook
On this page
  1. Endpoints

Invoice

The Invoice endpoint enables the RentalCover server to respond with an invoice (in PDF format) of the specified Booking reference (only available for confirmed bookings).

Endpoint: /insurances/invoice/<reference:[A-Z0-9\-]+>

Method: GET

curl -i -X GET \
-H "X_API_KEY: [my-api-key]" \
-H "Content-Type: application/json" \
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).

PreviousCoverOptOutNextWebhook

Last updated 1 year ago