Create an order
create_orderPlace an order for one product. Generate one random idempotencyKey per user request and reuse the same key if you retry after an error or timeout; the shop returns the original order instead of creating a duplicate. Confirm product and quantity with the user before calling. Returns the order with its id, status and total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | Units to order, 1 to 10. | |
| productId | Yes | Product id from search_products or get_product. | |
| idempotencyKey | Yes | A unique key you generate for this order attempt and reuse on retry. |