Skip to content

Shopify Dude Fix

Shopify Checkout API Is Gone: Move Custom Storefronts to the Cart API

The old Storefront Checkout mutations and REST checkout endpoints stopped working April 1, 2025. Migrate headless and mobile checkout creation to the Cart API and test checkoutUrl handoff.

Quick answer: Do not build new checkout flows with the old Storefront Checkout mutations or REST checkout endpoints. Shopify shut them down April 1, 2025. Use the Storefront Cart API to create and update a cart, then send the buyer to its checkoutUrl. This is a separate migration from checkout.liquid and Checkout Extensibility.
On this page

Why old tutorials fail

Many older headless Shopify examples start with checkoutCreate and mutate a checkout object as the buyer adds lines. Those examples describe an API that is no longer supported. Cart is the current storefront resource for buyer selections, attributes, discounts and checkout handoff. The hosted checkout remains Shopify’s responsibility.

Implementation

Inventory every use of checkoutCreate, checkoutLineItemsAdd, checkoutLineItemsUpdate and REST checkout endpoints in web, mobile, middleware and third-party integrations. Replace checkout creation with cartCreate, cart mutations for lines and buyer identity, and use the returned checkoutUrl for handoff. Store the cart ID securely in the buyer session. Reconcile discount codes, delivery and buyer identity before redirecting. Do not assume old checkout IDs can be used as cart IDs.

Example

mutation CreateCart($input: CartInput!) { cartCreate(input: $input) { cart { id checkoutUrl lines(first: 10) { nodes { id quantity } } } userErrors { field message } } }

Supply a real CartInput with merchandise IDs and quantities. Persist the returned cart ID and redirect to checkoutUrl only after checking userErrors and the actual cart lines.

Common misunderstanding: Moving from Checkout API to Cart API does not automatically migrate customizations made with checkout.liquid. Checkout Extensibility is a separate project. Likewise, a successful cartCreate response is not proof that discounts, shipping eligibility or buyer identity survived checkout handoff.
How to test this: Create a cart with multiple variants, update quantity, remove a line, apply a discount, and set buyer identity. Verify totals and lines in the cart, open checkoutUrl, and check checkout consistency. Repeat on mobile and with a returning buyer. Search production logs and code for remaining deprecated checkout endpoints and confirm no requests are sent after rollout.