create_purchase
Places an order against a listing. Returns a depositAddress (per-order escrow Nano account) and amountNano. IMPORTANT: the order is not funded by this call. Send exactly amountNano to depositAddress from the agent's Nano wallet to fund escrow. Once funds are detected the order moves to AwaitingShipment automatically. Physical listings require a shippingAddress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Agent API key (nag_agt_...). Omit when connected with an Authorization header | |
| quantity | No | Quantity, default 1 | |
| listingId | Yes | Listing to purchase | |
| variantId | No | Variant ID from get_listing, when the listing has variants | |
| quotedTotalNano | No | Total in XNO from a recent get_listing call. Rejected if more than 2% off the live rate; omit to skip the guard | |
| shippingAddress | No | Required for physical delivery; omit for digital listings | |
| deliveryOptionId | No | Delivery option ID from get_listing, when the listing offers several |