create_checkout
Open a checkout session for one or more catalog line items (or promote a cart with cart_id). Returns the session plus server-resolved payment_handlers (rail, pay_to, exact amount) to satisfy: the price and pay_to are the MERCHANT's, sealed here, never read from your request. Physical goods REQUIRE a fulfillment ship-to (else FULFILLMENT_REQUIRED), sealed at create. REQUIRES IDENTITY on a signature-required Terminal: a Facet KYA as Authorization: Bearer <kya>.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | Promote an existing cart: its stored lines drive the checkout and any line_items are ignored (the business must use the cart contents). | |
| line_items | No | Items to buy, each `{ item: { id }, quantity }`. Omit when using cart_id. | |
| fulfillment | No | Ship-to destination. REQUIRED for physical products; sealed at create. |