Browse examples of commonly used Shopify API queries.
In this section
Create and manage discounts with the Admin API — Create and retrieve discounts by using the GraphQL Admin API, including automatic discounts and discount codes.
Create marketing events and engagements — Create marketing events for your app to help merchants market products, collections, discounts, and more.
Edit an existing order with Admin API — Use the GraphQL Admin API to edit existing orders.
Manage SEO data with the Admin API — Change the way a store's pages appear in search engines by updating the SEO data.
Manage advanced shipping information with delivery profiles — Learn how to create and retrieve delivery profile information to manage advanced shipping settings in Shopify.
Manage app translations with the GraphQL Admin API — Use the GraphQL Admin API to create, update, and retrieve translated content for a shop's resources.
Manage country fields using localization extensions — Use the GraphQL Admin API to create and query country fields on orders.
Manage gift cards with the GraphQL Admin API — Learn how to create, retrieve, update, and disable gift cards for a store using the GraphQL Admin API.
Manage product cost with the Admin API — Learn about Shopify's product cost feature and how to update your app to read and write product cost on an inventory item.
Manage product inventory with the Admin API — Learn how to update inventory using the REST Admin API.
Manage product media with the GraphQL Admin API — Learn how to manage product media by using the GraphQL Admin API.
Manage shop locales with the GraphQL Admin API — Manage a shop's locales with the Graphql Admin API.
Manage test orders with the REST Admin API — Learn how to create test orders and transactions to validate your app's behavior.
Manage variant media with the GraphQL Admin API — Add and manage media objects on a product's variants with the GraphQL Admin API.
Refund duties with the GraphQL Admin API — Preview and refund duties with the GraphQL Admin API.
Retrieve sales data from an order — Learn about how Shopify manages order sales data and get started running queries in the GraphQL Admin API.
Translating content for an online store — Translate an online store’s content to sell in multiple languages.
Uninstall a Shopify app with an API call — Cleanly uninstall a Shopify app from a store using an API call
Use statuses to identify, filter, and manage products — Learn how to identify, filter, and manage products with different availability statuses.