Complete Cart

POST/store/:storeCode/carts/:cartId/complete
publishable key

Complete checkout and place the order.

On success returns `{ type: "order", order }`. If completion fails validation, returns `{ type: "cart", cart, error }`.

Path Parameters
storeCoderequiredstring

Store slug in the URL (first argument to every SDK store method).

cartIdrequiredstring

The cart's ID.

Query Parameters
fieldsstring

Comma-separated fields to include. Prefix with `*` to expand a relation (e.g. `id,*variants`).

Response

Status

200OK

Schema

Copy
HttpTypes.StoreCompleteCartResponse