Flecto
  1. SaaS - Booking Documents
Flecto
  • Activities
  • Timestamps
  • Flecto AI
    • Flecto AI
    • Hint item categories
      GET
    • Generate item category description
      GET
    • Generate item description
      GET
    • Classify insurance item
      GET
    • Generate product photos
      GET
    • Generate bundle description
      GET
  • Services
    • Get image upload url
      POST
    • Get document upload url
      POST
  • Integrations - Email Validate
    • Validation email
      GET
  • Integrations - Google Calendar
    • Google Calendar Integration
    • Create google calendar id
      POST
    • Delete google calendar
      DELETE
  • Me
    • Gets current logged in user
    • Update current logged in user attributes
  • Me - Addresses
    • Get all user addresses
    • Create user address
    • Get user address
    • Delete user address
    • Update user address
  • Me - Identities
    • Get user identities
    • Change main identity
    • send email for recovery password
    • Get user identities
    • delete auth0 user
    • Update identity
  • Me - Subscription
    • Get user subscription
  • Me - Tax Profiles
    • Get current user tax profile
    • Update current user tax profile
  • Me - Verification
    • Verify phone number
    • Check ongoing phone number verify
  • User - Bookings Settings
    • Gets current owner bookings settings
    • Update user booking settings
  • Business Categories
    • Get business categories
  • SaaS - Bookings
    • Creates a booking
    • Index all bookings
    • Updates booking
    • Show details of one booking
    • Delete booking
    • Update booking document
  • SaaS - Booking Availability
    • Checks item availability for all items within booking
  • SaaS - Booking Customers
    • Shows booking customer
    • Update booking customer
  • SaaS - Booking Documents
    • Shows all booking documents
      GET
    • Creates a booking document
      POST
    • Shows booking document
      GET
    • Destroy booking document
      DELETE
    • Updates a booking document
      PUT
    • Quote preview
      GET
    • Contract preview
      GET
    • Proforma preview
      GET
    • Generates a PDF for a booking
      POST
    • Generates a contract PDF for a booking
      POST
    • Generates a PDF for a booking
      POST
  • SaaS - Booking Items
    • Booking items
    • Add a new booking item
    • Booking item
    • Remove a booking item
    • Update booking item
  • SaaS - Booking Payments
    • Shows all booking payment
    • Creates a booking payment
    • Shows booking payment
    • Destroy booking payment
    • Updates a booking payment
  • SaaS - Booking Status
    • Negotiate booking
    • Reserve booking
    • Cancel a booking
    • Halts booking negotiation
    • Unreserve booking
    • Halts ongoing negotiation
    • Reverts completed booking
    • Undo cancelled booking
    • Send booking customer email
  • SaaS - Bundles
    • Get items
    • Create bundle
    • Get bundle
    • Delete bundle
    • Update bundle
  • SaaS - Bundles Items
    • Get bundle items
    • Create bundle item
    • Get bundle items
    • Update bundle item
    • Delete bundle item
  • SaaS - Chargebee
    • Posts callback from Chargebee
  • SaaS - Customers
    • Creates a customer
    • List customers
    • Get customer
    • Delete customer
    • Updates customer
  • SaaS - Customer Addresses
    • List customer addresses
    • Creates a customer addresses
    • Delete address
    • Update address
  • SaaS - Inquiry Customers
    • Create customer from inquiry
  • SaaS - Inquiry Status
    • Unreject inquiry
    • Unapprove inquiry
    • Rejects inquiry
    • Approve inquiry
  • SaaS - Items
    • Get item category
    • Get item
    • Delete items
    • Update item
    • Add item
    • Get items
    • Estimate insurance for item
    • Get items
  • SaaS - Item Photos
    • Delete item photo
    • Get item photo
    • Get all item photos
    • Create item photo
  • SaaS - Links
    • Show object details
  • SaaS - Inquiries
    • Show details of one inquiry
    • Shows specific owner inquiry
    • Shows all the owner inquiries
  • SaaS - Insurances
    • Create insurances for booking
    • Cancels bookings insurances
    • List all bookings insurances
    • Cancel insurance
    • Show booking insurance
    • Show booking insurance status
    • Get insurance
    • Update insurance
    • Get Insurance Quote for booking
    • Create insurance
    • List all insurances
  • SaaS - Products
    • Get item
    • Checks item availability for booking
    • Estimate insurance for item
    • Checks availability for all items
  • Store - Inquiries
    • Creates an inquiry
  • Links - Booking Documents
    • Show documents of one booking
    • Show document
    • Update documents of one booking
  • Links - Bookings
    • Show details of one booking
  • SaaS - Store
    • Get store
    • Update store
  • Store
    • Gets store details
  • Me - Item Categories
    • List all item categories
    • Create item category
    • Move item category
    • Get item category
    • Update item category
    • Delete item category
  • Store - Item Categories
    • List item categories
    • Show item category
  • Store - Products
    • Get item
    • Get item category
    • Get all item photos
    • Get all item photos
    • Checks item availability for booking
    • List item
    • Checks availability for all items
  • Me - Onboarding
    • Onboards a new user
  • SaaS - Booking Services
    • Shows all booking services
    • create a booking service
    • Shows booking service
    • Update booking service
  • SaaS - Product Status
    • Enable item
    • Disable item
  1. SaaS - Booking Documents

Generates a PDF for a booking

POST
/api/saas/me/bookings/{booking_internal_id}/documents/quote/generate_pdf
SaaS - Booking Documents

Request

Path Params
booking_internal_id
number 
required
Internal ID of the booking
Header Params
Authorization
string 
optional
Bearer token from Auth0. required for accessing the endpoint.
Auth0-IdToken
string 
optional
Id token from Auth0, optional for endpoint access.
Accept-Language
string 
optional
Preferred language for the response content.
Body Params application/json
content
string 
required
Example:
<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>
filename_base
string 
required
Example:
booking_document_123
visible_to_renter
boolean 
optional
Example:
true
options
object 
optional
folder_name
string 
optional
Example:
invoices
html_header
string 
optional
Example:
<header>Header Content</header>
html_footer
string 
optional
Example:
<footer>Footer Content</footer>
Example
{
    "content": "<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>",
    "filename_base": "booking_document_123",
    "visible_to_renter": true,
    "options": {
        "folder_name": "invoices",
        "html_header": "<header>Header Content</header>",
        "html_footer": "<footer>Footer Content</footer>"
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rnters-staging.herokuapp.com/api/saas/me/bookings//documents/quote/generate_pdf' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content": "<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>",
    "filename_base": "booking_document_123",
    "visible_to_renter": true,
    "options": {
        "folder_name": "invoices",
        "html_header": "<header>Header Content</header>",
        "html_footer": "<footer>Footer Content</footer>"
    }
}'

Responses

🟢201Created
Create a generated booking and store booking snapshot for quote
This response does not have a body.
🟠422Parameter Error
Modified at 2025-05-28 14:14:38
Previous
Proforma preview
Next
Generates a contract PDF for a booking
Built with