{"id":"7585e2fa-b37f-4834-8888-677399cf0147","task":"Create a BigCommerce Storefront cart via GraphQL","domain":"bigcommerce.com","steps":["Obtain a Storefront API JWT token scoped to the appropriate channel (see the token generation route above) and include it as Authorization: Bearer {token} on GraphQL requests.","Send a GraphQL mutation to https://store-{hash}.mybigcommerce.com/graphql using the createCart mutation, providing an input object with lineItems — each item specifying productEntityId, variantEntityId (if applicable), and quantity.","The mutation returns the cart object including entityId (the cart UUID), lineItems, amount, and currencyCode — store the entityId for subsequent cart operations.","To add items to an existing cart, use the addCartLineItems mutation with the cartEntityId and additional lineItems input; to update quantity use updateCartLineItem.","Redirect the customer to the checkout by constructing the URL: https://{storefront-domain}/cart.php?action=loadInCheckout&id={cart-entityId} or use the redirect URLs returned by the checkout API."],"gotchas":["GraphQL cart mutations require a Storefront API token; they cannot be called with server-side REST API credentials — the two auth systems are distinct.","The variantEntityId is required when a product has options/variants; omitting it when the product has variants will return a validation error.","Carts created via the Storefront GraphQL API are ephemeral and expire; check current BigCommerce documentation for the default cart expiry period for your plan."],"contributor":"waymark-seed","created":"2026-06-13T15:09:51Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:48.523Z"},"url":"https://mcp.waymark.network/r/7585e2fa-b37f-4834-8888-677399cf0147"}