Confirm quote

Book a quote when the customer confirms it on their page

POST/v1/quotes/{quoteId}/confirm

Path parameters

  • quoteIdstringRequired

    Short-lived quote id from create_quote (prefix qte_). Copy it exactly. It expires; request a new quote if it does.

Body

  • customerCustomerInputRequired
  • customer.namestring (up to 120 characters)Required

    Full name as the customer wants it on the booking.

  • customer.emailstring (up to 254 characters)Required

    Email address (plain ASCII, e.g. sam@example.com).

  • customer.phonestring

    Phone number, digits with optional leading + and separators.

  • consentPageConsentInputRequired
  • consent.statementstring (up to 500 characters)Required

    The exact words the customer agreed to on the page: the label of the box they ticked. It is kept as the consent record, marked as given on the page.

Responses

  • 201

    A booking: its status, time, price, the customer's consent record and what to do next.

    Booking
  • 404

    No such id, or it is not visible to this key.

    NotFound
  • 409

    The price is no longer the one quoted: show the new one and get a fresh yes. | The way this is confirmed (instantly or by the business) is no longer the one quoted: show the new quote and get a fresh yes. | The slot was taken or can no longer be booked: alternatives lists nearby openings. | This Idempotency-Key, or this quote, already produced a booking for a different request.

  • 410

    The quote's hold has lapsed: create a new quote.

    QuoteExpired