Create a wire harness order
create_orderCreate an unpaid order for one or more wire harness designs and get a checkout_url on acornharness.com for the buyer. The buyer opens it to pay (card, Link or wallet, via Stripe) and enter the US shipping address and shipping speed; nothing is charged or built until they pay there, and the link expires after 24 hours. Quote first with quote_harness and confirm the design, quantity and price with the user before calling this. Never ask for or accept card numbers or other payment details in the conversation. Items take the same fields as quote_harness and must be just as complete: pass back each quoted item's config (or design) once the user has confirmed it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Buyer's email, only if they gave it: prefills checkout; the receipt, invoice and tracking go there. | ||
| items | Yes | 1–40 wire harness designs. Volume discounts count every harness across all items. | |
| reference | No | Buyer's PO number or note, echoed back on the order. | |
| idempotency_key | No | Any unique string. Retrying with the same key and the same items returns the same order instead of a second one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order id; pass to get_order_status | |
| items | Yes | ||
| status | Yes | ||
| currency | Yes | ||
| excludes | Yes | ||
| ships_to | Yes | ||
| subtotal | Yes | USD | |
| harnesses | Yes | Total harnesses across all items | |
| reference | Yes | ||
| expires_at | Yes | checkout_url stops working after this time (ISO 8601) | |
| checkout_url | Yes | Where the buyer pays, on acornharness.com | |
| volume_discount | Yes | Fraction off every item, e.g. 0.1 | |
| shipping_options | Yes | ||
| next_volume_break | Yes | ||
| lead_time_business_days | Yes |