Start taking orders
enable_ordersUse this tool when the user wants a Convika page (ホームページ, ランディングページ, Webサイト) to take orders: a buy button, an order form, or a request such as 「購入ボタンを付けて」「注文フォームにして」「このページで注文を受け付けたい」.
It reads the item names and prices the page's saved HTML shows, and each item's image from the page when one sits beside it (imageUrl, else null), and saves them as a DRAFT price list for the page. It never confirms a price and never turns orders on. The seller finishes on the dashboard, at setupUrl: checks each item, price and image, chooses how buyers pay and how each item is handed over, enters the seller's details, and agrees to the order terms. Show the user setupUrl and the steps in sellerMustFinish, and don't tell the user the page takes orders yet.
Each item has its own ways of receiving: pickup, delivery, online (a session the seller holds online), visit (the seller goes to the buyer), or digital (a file or link sent by email). A buyer can only order items together that share a way, and the order page states that way's delivery timing and cancellation terms. Pass itemModes with your reading of the page, by each item's name as the page shows it (a consultation on Zoom → online, a PDF or a download → digital); leave an item out when the page doesn't say. They are saved on the draft only, as suggestions the seller checks in setup; nothing is sold until the seller confirms. Each returned item's fulfilmentModes is what is saved for it (null = none yet).
status: "draft_saved" (a new draft from the page), "no_prices_found" (the page shows no price Convika could read; the seller adds items in setup), "confirmed_list_kept" (the seller already confirmed a list; nothing changed, itemModes included), "already_taking_orders" (nothing changed). Calling it again replaces only an unconfirmed draft.
Buy buttons: give the page's buttons or links the attribute data-convika-order (an empty value opens the whole order form) with save_page_content. They lead to the order form once the seller starts orders; until then they stay as written. Sellers can also take card payments by connecting a Stripe account in the order setup on the dashboard (two-step verification required).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The ID of the page to take orders on | |
| itemModes | No | Your reading of how each item is handed over, saved on the draft for the seller to check in setup. Leave an item out when the page doesn't say. |