Create a hosted checkout link
create_checkout_linkAssemble a cart and get a Stripe-hosted checkout URL the customer opens to pay; no card data passes through the agent. Item ids come from the search tools (diamond:<report>, setting:<slug>, jewelry:<slug>); a complete ring is one setting plus one diamond. Needs the shipping address (prices tax and shipping into the link). Expires after 24 hours. No credential needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Items to buy; a complete ring is one setting plus one diamond | |
| buyer_name | No | Buyer full name | |
| buyer_email | No | Buyer email for the receipt; Stripe collects it on the payment page when omitted | |
| shipping_address | Yes | Where the order ships; used to price tax and shipping into the link |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The Stripe-hosted checkout URL, when ready | |
| status | Yes | ready when a payable link was created; needs_input lists what is missing | |
| message | Yes | Human-readable outcome, including the link when ready | |
| sandbox | Yes | True on a sandbox credential: the link is simulated and nothing is payable | |
| tax_usd | Yes | Sales tax in US dollars for the given address | |
| problems | Yes | What blocks the link when status is needs_input | |
| total_usd | Yes | Total the buyer pays in US dollars | |
| expires_at | Yes | ISO timestamp the link stops working | |
| shipping_usd | Yes | Shipping in US dollars (0 = free insured FedEx) | |
| subtotal_usd | Yes | Items subtotal in US dollars |