Checkout

Reserve a single-use checkout session

POST
/v1/public/stores/{storeId}/checkout/prepare

Path Parameters

storeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/public/stores/string/checkout/prepare" \  -H "Content-Type: application/json" \  -d '{    "lines": [      {        "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",        "qty": 1      }    ]  }'
{  "token": "string",  "expiresAt": "string"}