Place a real order (spends money, ships a physical product)
place_orderPlaces a REAL order for physical macarons shipped to a real address, and returns a crypto deposit address to send funds to. Confirm the total, the delivery address and the allergen warning with the person you are acting for BEFORE calling this. Pass either images (nine URLs, simplest — the set is built for you) or the set_hash and add_to_cart_fields returned by a previous preview_set call. Returns an order id, a crypto deposit address and amount, and a status link that needs no account or password. The order only reaches the bakery after the payment confirms. A recipient phone number is REQUIRED - carriers need it to generate a label, so collect it before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional short message for the card in the box. | |
| Yes | An address a human actually reads. | ||
| images | No | Nine public https image URLs in grid order. Simplest route: the set is built and carted for you. Omit if passing set_hash + add_to_cart_fields instead. | |
| set_hash | No | From preview_set. Requires add_to_cart_fields too. | |
| recipient | Yes | Who receives the box, and where. | |
| shipping_id | No | Optional: force a specific shipping-method instance id. Normally omit. | |
| pay_currency | No | Crypto ticker to pay in, e.g. "usdttrc20". Optional; a default is chosen. | |
| max_total_usd | No | Optional safety ceiling in USD. The shipping cost is only known once the order exists, so set this to the most your human agreed to pay. If the real total is higher, the order is still created but NO payment instruction is returned. | |
| reorder_nonce | No | Set this ONLY to deliberately place a second, separate order with identical details (same set, same recipient). Any distinct value works. Without it, an identical repeat is treated as a retry and returns the original order. | |
| idempotency_key | No | Optional explicit key. If omitted, one is derived from the order details, so retrying the identical request is safe and will not create a duplicate. | |
| confirm_total_usd | No | Confirm a total your human has approved. Use this to RESUME an order that already exists: after an over-ceiling result, or when a repeat call matched an existing order and the payment instruction was withheld. Set it to the exact total shown. This never creates a second order - it returns the existing one WITH its payment instruction. This is the correct way to proceed; do NOT use reorder_nonce for this. | |
| add_to_cart_fields | No | The `add_to_cart.fields` object exactly as returned by preview_set. Required when using set_hash instead of images. |