GET
/
api
/
invoice
/
{booking_id}
curl --request GET \
  --url https://app.flashquotes.com/api/invoice/{booking_id} \
  --header 'x-api-key: <api-key>'
{
  "bookingId": "book_123",
  "invoiceIds": [
    "inv_456",
    "inv_789"
  ],
  "invoiceUrls": [
    "https://app.flashquotes.com/invoices/encrypted/abc123",
    "https://app.flashquotes.com/invoices/encrypted/def456"
  ]
}

This endpoint returns the invoice IDs and encrypted invoice URLs associated with a specific booking.

Response

The response includes:

  • bookingId: The ID of the booking
  • invoiceIds: Array of invoice IDs associated with the booking
  • invoiceUrls: Array of encrypted invoice URLs that can be used to access the invoices

Example Usage

Here’s an example of how to use this endpoint with curl:

curl -X GET 'https://app.flashquotes.com/api/invoice/book_123' \
-H 'x-api-key: your_api_key_here'

Common Use Cases

  • Retrieving invoice URLs for a booking
  • Accessing invoice documents through encrypted URLs
  • Tracking which invoices are associated with a booking

Authorizations

x-api-key
string
header
required

Path Parameters

booking_id
string
required

ID of the booking to retrieve invoices for

Response

200
application/json
List of invoices for the booking
bookingId
string
required

The ID of the booking

invoiceIds
string[]
required

Array of invoice IDs associated with the booking

invoiceUrls
string[]
required

Array of encrypted invoice URLs