Checkout
Price a cart and list payment methods
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/preview" \ -H "Content-Type: application/json" \ -d '{ "lines": [ { "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf", "qty": 1 } ] }'{ "env": "live", "items": [ { "offerConfig": { "buyerPrice": { "enabled": true, "kind": "pay_what_you_want", "minMinor": -9007199254740991, "maxMinor": -9007199254740991, "suggestedMinor": -9007199254740991 }, "tips": { "enabled": true, "presetsBp": [ 1 ], "allowCustom": true, "roundUp": true }, "membership": { "enabled": true, "label": "string", "priceMinor": -9007199254740991 }, "serviceQuote": { "enabled": true, "minQuantity": 1, "maxQuantity": 1, "step": 1, "unitLabel": "string", "allowBudgetInput": true }, "bonus": { "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf", "quantity": 1, "expiresDays": 1 }, "postPurchaseUpsell": true }, "offerCurrency": "string", "warrantyExtensions": [ { "id": "string", "label": "string", "days": 0, "priceMinor": -9007199254740991 } ], "key": "string", "kind": "variant", "parentKey": "string", "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf", "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "productName": "string", "variantName": "string", "imageUrl": "string", "qty": -9007199254740991, "unitPriceMinor": -9007199254740991, "discountMinor": -9007199254740991, "totalMinor": -9007199254740991, "minQty": -9007199254740991, "maxQty": -9007199254740991, "stockAvailable": -9007199254740991, "deliveryType": "string", "bookable": { "timeZone": "string", "slotMinutes": -9007199254740991, "bufferMinutes": -9007199254740991, "maxBookingsPerSlot": -9007199254740991, "weekly": { "property1": [ { "start": "string", "end": "string" } ], "property2": [ { "start": "string", "end": "string" } ] } }, "customFields": [ { "key": "string", "label": "string", "type": "text", "placeholder": "string", "hint": "string", "defaultValue": "string", "required": true, "options": [ "string" ], "pattern": "string", "minSelections": -9007199254740991, "maxSelections": -9007199254740991, "conditionAddonIds": [ "985a0c88-d4e4-4c33-9c67-080cc9c45a5b" ] } ], "customFieldsAfterPayment": true, "addons": [ { "addonId": "ed930881-3f27-4e25-9365-ff53ffbcfa14", "name": "string", "priceMinor": -9007199254740991, "required": true, "selected": true, "scope": "per_item", "groupName": "string" } ], "deliveryEstimate": { "label": "string", "note": "string" }, "preorder": { "note": "string" } } ], "totals": { "subtotalMinor": -9007199254740991, "discountMinor": -9007199254740991, "shippingMinor": -9007199254740991, "taxMinor": -9007199254740991, "taxIncludedMinor": -9007199254740991, "taxLabel": "string", "totalMinor": -9007199254740991, "currency": "string" }, "coupon": { "code": "string", "applied": true, "message": "string", "discountMinor": -9007199254740991, "remaining": -9007199254740991 }, "methods": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "provider": "string", "label": "string", "description": "string", "group": "string", "iconUrl": "string", "via": "string", "brands": [ "string" ], "asset": "string", "eligible": true, "reason": "string", "message": "string", "feeMinor": -9007199254740991, "totalMinor": -9007199254740991, "currency": "string", "splitCreditAllowed": true, "cashbackMinor": -9007199254740991, "cashbackCurrency": "string", "chargedInStoreCurrency": true, "buyerFields": [ { "key": "string", "label": "string", "placeholder": "string", "hint": "string", "inputMode": "text" } ], "wallets": [ "apple_pay" ], "walletButtons": true } ], "buyerCountry": "string", "needsBillingAddress": true, "needsShippingAddress": true, "shippingOptions": [ { "id": "string", "name": "string", "priceMinor": -9007199254740991, "estimateMinDays": -9007199254740991, "estimateMaxDays": -9007199254740991 } ], "presentment": { "currency": "string", "storeCurrency": "string", "rate": "string", "rateDate": "string" }, "affiliate": { "code": "string", "discountBp": -9007199254740991, "discountMinor": -9007199254740991 }, "loyalty": { "tier": "string", "discountBp": -9007199254740991, "discountMinor": -9007199254740991 }, "account": { "email": "string", "balanceMinor": -9007199254740991, "balanceCurrency": "string" }}