Lavanda Developer Docs
  • Welcome
  • Quickstart
    • Getting Started
    • Versioning
    • API Explorer
  • Concepts
    • Structure & Terms
    • Auth
    • Webhooks
    • API Paradigms
      • Connections
      • Pagination (Cursors)
      • Client Name Header
  • CRM
    • Leads
    • Contacts
    • Companies
    • Institutions
    • Offers
    • Subjects
  • Bookings
    • Bookings
  • Spaces & Inventory
    • Buildings
    • Unit Types
    • Units
  • Availability
    • Availability
  • Pricing
    • Pricing
    • Product
  • Ecommerce
    • Flow
    • Search
    • Checkout
  • Guest Messaging
    • General
  • Finance & Accounting
    • Invoices
    • Payments
  • Tickets
    • Tickets
    • Tasks
    • Charges
  • Users
    • Queries
      • whoami
    • Mutations
  • Legacy
    • README
    • Auth
    • Create Lead
    • Legacy Azure API
Powered by GitBook
On this page
  1. Legacy

Create Lead

Please read the README

Create Site Lead

POST https://direct-bookings-website-api.lavanda.app/api/v2/inquiries

Query Parameters

Name
Type
Description

X-Hanami-Direct-Bookings-Site-Id*

String

The site code. This can be obtained via contacting the onboarding team

Headers

Name
Type
Description

Origin*

String

Referer*

String

The full page url (including query parameters) of the page sending the lead. This is useful when utm parameters or Google Ads were added

Request Body

Name
Type
Description

checkIn

YYYY-MM-DD

checkOut

YYYY-MM-DD

contactEmail*

String

contactFirstName*

String

contactLastName*

String

contactPhoneNumber*

String

telephoneCountryCode

String

gdprConsent*

Boolean

marketingOptIn*

Boolean

notes*

String

numberOfAdults

Integer

numberOfKids

Integer

propertyId

Integer

The building or unit id. Contact the onboarding team for the building id

browserLanguage*

String

The value from navigator.language such as en-us

source

String

PreviousAuth

Last updated 2 years ago

The hostname of the site sending the lead.

https://www.example.com