# Shopify integration

> E-commerce platform API for managing products, orders, customers, inventory, fulfillments, and online storefronts.

- Authentication: oauth2

## Tools (66)

- **Adjust Inventory Level**: Adjusts the inventory level of an item at a location by a relative amount (positive or negative).
- **Cancel Fulfillment**: Cancels an existing fulfillment.
- **Cancel Order**: Cancels an order, optionally restocking inventory and sending a cancellation email.
- **Close Order**: Closes an open order.
- **Complete Draft Order**: Converts a draft order into a real order, optionally with pending payment.
- **Connect Inventory Item to Location**: Connects an inventory item to a location, enabling inventory tracking at that location.
- **Create Custom Collection**: Creates a new manually curated custom collection.
- **Create Customer**: Creates a new customer record with email, phone, addresses, and tags.
- **Create Discount Code**: Creates a discount code for a price rule that customers can enter at checkout.
- **Create Draft Order**: Creates a new draft order with line items, customer, discounts, and shipping.
- **Create Fulfillment**: Creates a fulfillment for one or more fulfillment orders, with optional tracking information.
- **Create Order**: Creates a new order without collecting payment or performing a transaction.
- **Create Price Rule**: Creates a price rule that defines discount parameters such as type, value, usage limits, and validity period.
- **Create Product**: Creates a new product with optional variants and images. (Deprecated since API 2024-04 but still works for custom apps.)
- **Create Smart Collection**: Creates a new automated smart collection based on rules (e.g. product type, price, tags).
- **Create Variant**: Creates a new product variant for a given product. (Deprecated since API 2024-04 but still works for custom apps.)
- **Delete Custom Collection**: Deletes a custom collection.
- **Delete Discount Code**: Deletes a discount code from a price rule.
- **Delete Draft Order**: Deletes a draft order.
- **Delete Order**: Deletes an order permanently.
- **Delete Price Rule**: Deletes a price rule and all its associated discount codes.
- **Delete Product**: Deletes a product permanently. (Deprecated since API 2024-04 but still works for custom apps.)
- **Delete Smart Collection**: Deletes a smart collection.
- **Delete Variant**: Deletes a product variant. (Deprecated since API 2024-04 but still works for custom apps.)
- **Get Custom Collection**: Retrieves a single custom collection by its ID.
- **Get Customer**: Retrieves a single customer by their ID.
- **Get Customer Count**: Retrieves a count of all customers.
- **Get Customer Orders**: Retrieves all orders belonging to a specific customer.
- **Get Discount Code**: Retrieves a single discount code by its ID, including its usage count.
- **Get Draft Order**: Retrieves a single draft order by its ID.
- **Get Draft Order Count**: Retrieves a count of all draft orders, optionally filtered by status.
- **Get Inventory Item**: Retrieves a single inventory item by its ID, including SKU and cost information.
- **Get Order**: Retrieves a single order by its ID.
- **Get Order Count**: Retrieves a count of orders matching the given filters.
- **Get Price Rule**: Retrieves a single price rule by its ID.
- **Get Product**: Retrieves a single product by its ID, including variants and images. (Deprecated since API 2024-04 but still works for custom apps.)
- **Get Product Count**: Retrieves a count of products matching optional filters.
- **Get Smart Collection**: Retrieves a single smart collection by its ID.
- **Get Variant**: Retrieves a single product variant by its ID. (Deprecated since API 2024-04 but still works for custom apps.)
- **List Custom Collections**: Retrieves a list of custom collections with optional filters.
- **List Customers**: Retrieves a list of customers with optional filters for dates and IDs.
- **List Discount Codes**: Retrieves a list of discount codes for a given price rule.
- **List Draft Orders**: Retrieves a list of draft orders with optional status and date filters.
- **List Fulfillment Orders**: Retrieves the fulfillment orders associated with a specific order.
- **List Fulfillments for Order**: Retrieves all fulfillments associated with a specific order.
- **List Inventory Levels**: Retrieves inventory levels for items at locations, filtered by inventory item IDs or location IDs.
- **List Orders**: Retrieves a list of orders with optional filters for status, date, and financial status.
- **List Price Rules**: Retrieves a list of price rules with optional filters for dates and pagination.
- **List Products**: Retrieves a list of products with optional filters for type, vendor, status, and dates. (Deprecated since API 2024-04 but still works for custom apps.)
- **List Smart Collections**: Retrieves a list of smart collections with optional filters.
- **List Variants**: Retrieves a list of product variants for a given product. (Deprecated since API 2024-04 but still works for custom apps.)
- **Lookup Discount Code**: Looks up a discount code by its code string, returning the discount code details and its parent price rule ID.
- **Reopen Order**: Re-opens a previously closed order.
- **Search Customers**: Searches for customers matching a query string (by email, name, country, etc.).
- **Send Draft Order Invoice**: Sends an invoice email for a draft order to the customer.
- **Set Inventory Level**: Sets the absolute inventory quantity for an item at a specific location.
- **Update Custom Collection**: Updates an existing custom collection's title, description, or published status.
- **Update Customer**: Updates an existing customer's name, email, phone, tags, or other attributes.
- **Update Draft Order**: Updates an existing draft order's line items, note, tags, discount, or shipping.
- **Update Fulfillment Tracking**: Updates the tracking information for an existing fulfillment.
- **Update Inventory Item**: Updates an inventory item's SKU, cost, tracking status, or country of origin.
- **Update Order**: Updates an existing order's note, tags, email, or shipping address.
- **Update Price Rule**: Updates an existing price rule's title, value, dates, usage limits, or other parameters.
- **Update Product**: Updates an existing product's title, description, tags, status, variants, or images. (Deprecated since API 2024-04 but still works for custom apps.)
- **Update Smart Collection**: Updates an existing smart collection's title, rules, or published status.
- **Update Variant**: Updates an existing product variant's price, SKU, weight, or options. (Deprecated since API 2024-04 but still works for custom apps.)

## Triggers (16)

- **New Order**: Triggers when a new order is placed in your store
- **Order Paid**: Triggers when an order is marked as paid
- **Order Fulfilled**: Triggers when an order is fully fulfilled / shipped
- **Order Cancelled**: Triggers when an order is cancelled
- **Order Refunded**: Triggers when an order is fully refunded
- **Order Partially Refunded**: Triggers when an order is partially refunded
- **Updated Order**: Triggers when any field on an existing order changes (status, line items, addresses, tags, notes, etc.)
- **New Draft Order**: Triggers when a draft order is created
- **Draft Order Completed**: Triggers when a draft order is converted to a real order (status=completed)
- **Updated Draft Order**: Triggers when a draft order is modified
- **New Customer**: Triggers when a customer is added to your store
- **Updated Customer**: Triggers when an existing customer is modified (tags, marketing consent, address, etc.)
- **New Product**: Triggers when a product is created
- **Product Updated**: Triggers when a product is updated (variants, price, inventory, etc.)
- **New Refund**: Triggers when a refund record is created
- **New Abandoned Checkout**: Triggers when a checkout is abandoned (cart not converted to order). Use minimumAgeHours to delay until the user has had time to recover the cart.

## Related prompts

- [VIP concierge follow-ups in Gladly for big Shopify orders](https://www.generalinput.com/prompts/vip-concierge-follow-ups-in-gladly-for-big-shopify-orders.md)
- [Escalate urgent Gorgias tickets to Slack with order context](https://www.generalinput.com/prompts/escalate-urgent-gorgias-tickets-to-slack-with-order-context.md)
- [Personalized Shopify order confirmations in Freshchat](https://www.generalinput.com/prompts/personalized-shopify-order-confirmations-in-freshchat.md)
- [Catch bad Shopify addresses before you buy a label](https://www.generalinput.com/prompts/catch-bad-shopify-addresses-before-you-buy-a-label.md)
- [Auto-register new Shopify shipments in AfterShip](https://www.generalinput.com/prompts/auto-register-new-shopify-shipments-in-aftership.md)
- [Sync Shopify product changes to Algolia in real time](https://www.generalinput.com/prompts/sync-shopify-product-changes-to-algolia-in-real-time.md)
- [Promote Shopify best-sellers in Algolia every Monday](https://www.generalinput.com/prompts/promote-shopify-best-sellers-in-algolia-every-monday.md)
- [Hourly Shopify orders sync to BigQuery](https://www.generalinput.com/prompts/hourly-shopify-orders-sync-to-bigquery.md)
- [Fill missing Shopify product photos with fal.ai lifestyle shots](https://www.generalinput.com/prompts/fill-missing-shopify-product-photos-with-falai-lifestyle-shots.md)
- [Weekly AI photo refresh for flagged Shopify products](https://www.generalinput.com/prompts/weekly-ai-photo-refresh-for-flagged-shopify-products.md)
- [Turn studio product shots into lifestyle scenes on new Shopify drafts](https://www.generalinput.com/prompts/turn-studio-product-shots-into-lifestyle-scenes-on-new-shopify-drafts.md)
- [Hourly hero-banner drafts for new Shopify products](https://www.generalinput.com/prompts/hourly-hero-banner-drafts-for-new-shopify-products.md)

Connect Shopify in General Input: https://www.generalinput.com/apps/shopify