Quote or book a home sample collection
labloop_quote_or_book_collectionQuote and book home sample collection for one or more lab tests in two steps: first receive a combined price quote, then confirm to schedule the collection.
Instructions
Order one or more tests as a single home sample-collection booking. This takes two steps.
Call with confirm=false (default) to get ONE combined quote: each test's center and price, a logistics fee, and the grand total. Nothing is booked.
After the user explicitly approves, call again with the same arguments and confirm=true.
Address, phone, and email fall back to the user's saved profile, and new details are saved back after booking. Status values: needs_info (ask the user for 'missing'), invalid_test_id, needs_confirmation (show the quote), successful (simulated booking with collectionId and schedulingId).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| notes | No | ||
| address | No | ||
| confirm | No | Leave false (the default) to get a quote only: each test's price and center, the logistics fee, and the grand total. Nothing is booked. Set true ONLY in a later call, after the user has seen the quote and explicitly agreed. | |
| user_id | Yes | Identifier for the demo user, e.g. 'demo-user-1'. Any stable string works; reuse the same value across calls so saved details are remembered. | |
| test_ids | Yes | Ids of ALL tests to include in this order. Pass every requested test in ONE call to get one combined quote and one booking. Each item must be an exact 'id' from a prior labloop_find_test or labloop_list_tests result. | |
| care_type | No | one-time | |
| date_time | No | ||
| phone_number | No | ||
| provider_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||