Shopify Checkout API Deprecation – How to Keep Your Checkout Working
Share
Copy to clipboard
Starting April 1, 2025, Shopify is deprecating the Checkout API, and after the deadline, customers won’t be able to create and complete checkouts with the obsolete API. Note that this deprecation will impact Shopify Admin API and Storefront GraphQL API endpoints.
How should you prevent disruptions? This article discusses how to update your checkout using the Storefront Cart API.
How to migrate to the Storefront Cart API
To prepare your checkout for the Checkout API sunset, you need to start migrating as soon as possible to avoid future errors. If you currently have no Shopify developers on your team, we strongly recommend getting professional assistance for a smooth migration.
Make your Shopify checkout work without disruptions
The Storefront Cart API is part of the Storefront API. It’s used for building custom storefronts, apps that interact with Cart and Storefront, and more.
You can access the API using the endpoint.
What are the benefits of the Storefront Cart API?
To understand why Shopify deprecates the Checkout API, get familiar with some of the Storefront Cart API benefits.
This API functions on both the backend and frontend, enabling cross-platform compatibility.
It has no rate limits and comes with built-in bot protection for better security.
The API gives you access to all Shopify features, including product bundles, subscriptions, and more.
It enables seamless integration with Shopify Functions and UI extensions.
It supports stackable discount codes, which provides more options for marketing campaigns.
To sum up, the new API for checkout is better compatible with the whole Shopify infrastructure and is supposed to provide better development and user experience.
How to migrate from the Checkout API to the Storefront Cart API
The migration process implies replacing Checkout API requests with new Storefront Cart API queries and mutations. Use the following guide to update your code.
Create a Cart. The Storefront Cart API enables you to add, remove, and update items and more in the cart before you create the checkout. So, instead of creating checkout through the Checkout API, you can now modify a cart using the Storefront Cart API.
Handle errors. Instead of requesting checkoutUserErrors in the Checkout API to receive information about errors, request userErrors with the Storefront Cart API.
Update a cart. Before finalizing the cart and sending a customer to checkout, you need to adjust cart line items, discounts, attributes, and more. The Storefront Cart API offers three main mutations for updating line items in the cart: cartLinesUpdate, cartLinesAdd, and cartLinesRemove. The former mutation is similar to checkoutLineItemsReplace in the Checkout API. It replaces the existing line items with new ones to refresh the cart’s content.
Apply multiple discount codes using the discountCodes field in the cartDiscountCodesUpdate mutation instead of non-stackable codes with the Checkout API.
Associate a customer. Update the buyer's identity and preferences using the cartBuyerIdentityUpdate mutation. Manage delivery addresses using the new cart delivery mutations: cartDeliveryAddressesAdd, cartDeliveryAddressesUpdate, cartDeliveryAddressesRemove.
Complete the checkout. With the Checkout API, the checkout is completed by retrieving the checkout web URL from the Checkout object's webUrl field. In the Storefront Cart API, you can retrieve the checkoutUrl from the Cart object at any point of the flow to send a customer to the Shopify checkout.
For updating mobile apps, you can also use the Checkout Sheet Kit. It’s a library compatible with Android, Swift, and React Native that supports Shopify customization services features, dark and light modes, and convenient developer APIs for building seamless checkout experiences.
Once you’ve replaced the deprecated Checkout API code with the new Storefront Cart API queries and mutations, test if everything works according to your flow. If you need help at any step of the process, don’t hesitate to get in touch with us. The DigitalSuits team helps Shopify merchants keep their stores running smoothly and up-to-date at all times, providing expert Shopify support and maintenance services.
Subscribe to our blog
Unlock the latest insights! Subscribe to our blog for expert insights on ecommerce, software development, and tech news. Supercharge your business vision now!
Written by
Anastasiia Moskvichova
Content Marketing Specialist
Anastasiia is an enthusiastic content writer who diligently researches and curates valuable information to craft engaging content tailored for readers with a keen interest in marketing, sales, and technology.
Please fill out the form below and we will contact you shortly.
What happens next?
Our sales manager will get in touch with you to discuss your business idea in details within 1 day
We will analyse your requirements, prepare project estimation, approximate timeline and propose what we can offer to meet your needs
Now, if you are ready to turn your idea into action, we will sign a contract that
is complying with your local laws & see how your idea becomes a real product
Was this helpful?
0
No comments yet