Place an offline order
Completes the caller's active cart into one order with immutable line snapshots. Guests identify their cart with `X-Lynkow-Cart-Token` and must provide an email; signed-in buyers use their customer session and the account email. Contact, address, and an offline payment method are optional. All ids, statuses, order number, currency, totals, prices, and line snapshots are server-derived. Placement locks and rechecks the cart, creates the order and its items, and marks the cart completed in one transaction, so concurrent submits produce at most one order. A guest placement also creates or reuses the site's customer record for the order email in that same transaction, governed by a per-site kill-switch; the response shape is unchanged and no email is sent. Returns only the closed buyer confirmation whitelist. > **Note:** This endpoint requires the e-commerce feature to be enabled on your site.
/checkouthttps://api.lynkow.com/storefront/{siteId}Header parameters
X-Lynkow-Cart-TokenstringGuest cart secret returned when the cart was created. Omit for an authenticated customer checkout.
Request body
_hpstringSpam-trap field that must remain empty when the site uses honeypot protection.
_tsintegerForm-load Unix timestamp in milliseconds when the site uses honeypot protection.
emailstringGuest receipt email. Optional for an authenticated customer.
addressobjectOptional delivery or collection address snapshot.
citystringCity or locality.
phonestringRecipient phone number.
companystringRecipient company name.
address1stringPrimary street address.
address2stringAdditional street address details.
lastNamestringRecipient family name.
provincestringProvince, state, or region.
firstNamestringRecipient given name.
postalCodestringPostal or ZIP code.
addressNamestringBuyer label for the address.
countryCodestringISO 3166-1 alpha-2 country code, normalized to uppercase.
contactobjectOptional buyer contact snapshot for this order.
namestringBuyer contact name.
phonestringBuyer contact phone number.
paymentMethodenumOffline payment method selected by the buyer. One of: on_site, cash_on_delivery, click_and_collect.
One of:
on_sitecash_on_deliveryclick_and_collectrecaptchaTokenstringVerification token when the site uses reCAPTCHA spam protection. For v3 checkout, mint it with the `checkout` action.