Shopify MCP Server for Cloudflare Workers
Test Shopify tools directly in your browser. Select a tool and provide inputs to see the results.
Create a free account to test Shopify tools interactively. No credit card required.
shopify_get_collectionGet any collection by ID (custom or smart). Args: - collectionId: Collection ID - format: Response format Returns: The collection details.
shopify_open_orderRe-open a closed order. Args: - orderId: Order ID to open Returns: The re-opened order.
shopify_delete_discount_codeDelete a discount code. Args: - priceRuleId: Price rule ID - discountCodeId: Discount code ID to delete Returns: Confirmation of deletion.
shopify_get_fulfillment_orderGet a single fulfillment order by ID. Args: - fulfillmentOrderId: Fulfillment order ID - format: Response format Returns: The fulfillment order details.
shopify_update_smart_collectionUpdate an existing smart collection. Args: - collectionId: Collection ID to update - title: New title - rules: New rules array - disjunctive: New disjunctive setting - bodyHtml: New description - handle: New handle - published: New published state - sortOrder: New sort order Returns: The updated smart collection.
shopify_delete_smart_collectionDelete a smart collection. Args: - collectionId: Collection ID to delete Returns: Confirmation of deletion.
shopify_list_custom_collectionsList custom collections with pagination and filters. Custom collections are manually curated product groups. Args: - limit: Number of collections to return (1-250, default: 50) - sinceId: Return collections after this ID - title: Filter by title - productId: Filter by product - handle: Filter by handle - publishedStatus: Filter by published status - format: Response format Returns: Paginated list of custom collections.
shopify_get_custom_collectionGet a single custom collection by ID. Args: - collectionId: Collection ID - format: Response format Returns: The custom collection details.
shopify_create_custom_collectionCreate a new custom collection. Args: - title: Collection title (required) - bodyHtml: Description HTML - handle: URL handle - published: Whether to publish - sortOrder: Sort order (alpha-asc, alpha-desc, best-selling, created, created-desc, manual, price-asc, price-desc) - image: Image object with src or attachment Returns: The created collection.
shopify_update_custom_collectionUpdate an existing custom collection. Args: - collectionId: Collection ID to update - title: New title - bodyHtml: New description - handle: New handle - published: New published state - sortOrder: New sort order Returns: The updated collection.
shopify_delete_custom_collectionDelete a custom collection. Args: - collectionId: Collection ID to delete Returns: Confirmation of deletion.
shopify_list_smart_collectionsList smart collections with pagination and filters. Smart collections automatically include products based on rules. Args: - limit: Number of collections to return (1-250, default: 50) - sinceId: Return collections after this ID - title: Filter by title - productId: Filter by product - handle: Filter by handle - publishedStatus: Filter by published status - format: Response format Returns: Paginated list of smart collections.
shopify_get_smart_collectionGet a single smart collection by ID. Args: - collectionId: Collection ID - format: Response format Returns: The smart collection with its rules.
shopify_create_smart_collectionCreate a new smart collection with automated rules. Args: - title: Collection title (required) - rules: Array of rule objects (required) - column: Field to match (title, type, vendor, variant_price, tag, etc.) - relation: Comparison (equals, not_equals, greater_than, less_than, starts_with, ends_with, contains) - condition: Value to match - disjunctive: If true, products match ANY rule; if false, products must match ALL rules - bodyHtml: Description HTML - handle: URL handle - published: Whether to publish - sortOrder: Sort order Returns: The created smart collection.
shopify_list_collection_productsList products in a collection. Args: - collectionId: Collection ID - limit: Number of products to return - format: Response format Returns: Paginated list of products in the collection.
shopify_list_collectsList product-collection relationships (collects). Collects link products to custom collections. Args: - limit: Number of collects to return - productId: Filter by product ID - collectionId: Filter by collection ID - format: Response format Returns: List of collect relationships.
shopify_create_collectAdd a product to a custom collection. Args: - productId: Product ID to add - collectionId: Collection ID to add to - position: Position in collection (optional) Returns: The created collect relationship.
shopify_delete_collectRemove a product from a custom collection. Args: - collectId: Collect ID to delete Returns: Confirmation of deletion.
shopify_list_customersList customers from the store with pagination and filters. Args: - limit: Number of customers to return (1-250, default: 50) - sinceId: Return customers after this ID - ids: Comma-separated list of customer IDs - createdAtMin: Minimum created date (ISO 8601) - createdAtMax: Maximum created date (ISO 8601) - updatedAtMin: Minimum updated date - updatedAtMax: Maximum updated date - format: Response format Returns: Paginated list of customers.
shopify_get_customerGet a single customer by ID. Args: - customerId: The customer ID - format: Response format Returns: The customer with all details including addresses.
shopify_create_customerCreate a new customer. Args: - email: Customer email (required) - firstName: First name - lastName: Last name - phone: Phone number (E.164 format) - note: Customer note - tags: Comma-separated tags - acceptsMarketing: Marketing consent - addresses: Array of address objects - sendEmailWelcome: Send welcome email - sendEmailInvite: Send account invite email Returns: The created customer.
shopify_update_customerUpdate an existing customer. Args: - customerId: Customer ID to update - email: New email - firstName: New first name - lastName: New last name - phone: New phone - note: New note - tags: New tags - acceptsMarketing: New marketing consent Returns: The updated customer.
shopify_delete_customerDelete a customer. Note: Customers with orders cannot be deleted. Args: - customerId: Customer ID to delete Returns: Confirmation of deletion.
shopify_get_customer_countGet the count of customers matching filters. Args: - createdAtMin: Minimum created date - createdAtMax: Maximum created date - updatedAtMin: Minimum updated date - updatedAtMax: Maximum updated date Returns: Count of matching customers.
shopify_list_locationsList all inventory locations. Locations are places where you store inventory (warehouses, retail stores, etc.). Args: - limit: Number of locations to return - format: Response format Returns: List of inventory locations.
shopify_search_customersSearch for customers by query string. The query can search across multiple fields like email, name, etc. Args: - query: Search query (required) - limit: Number of results to return - order: Sort order (e.g., "last_order_date DESC") - format: Response format Returns: Matching customers.
shopify_get_customer_ordersGet orders for a specific customer. Args: - customerId: Customer ID - limit: Number of orders to return - status: Order status filter (any, open, closed, cancelled) - format: Response format Returns: Customer's orders.
shopify_list_price_rulesList price rules with pagination and filters. Price rules define discount logic (percentage off, fixed amount, buy X get Y, etc.). Args: - limit: Number of price rules to return (1-250, default: 50) - sinceId: Return price rules after this ID - startsAt: Filter by start date - endsAt: Filter by end date - format: Response format Returns: Paginated list of price rules.
shopify_get_price_ruleGet a single price rule by ID. Args: - priceRuleId: Price rule ID - format: Response format Returns: The price rule details.
shopify_create_price_ruleCreate a new price rule. Args: - title: Price rule title (required) - targetType: What the rule applies to (line_item, shipping_line) - targetSelection: Which items to apply to (all, entitled) - allocationMethod: How to apply discount (across, each) - valueType: Type of discount (fixed_amount, percentage) - value: Discount value (negative for discounts, e.g., "-10.00" or "-10") - customerSelection: Who can use (all, prerequisite) - startsAt: Start date (ISO 8601) - endsAt: End date (ISO 8601, optional) - oncePerCustomer: Limit to one use per customer - usageLimit: Total usage limit - prerequisiteSubtotalRange: Minimum subtotal requirement - prerequisiteQuantityRange: Minimum quantity requirement - prerequisiteToEntitlementQuantityRatio: Buy X get Y ratio - entitledProductIds: Product IDs the discount applies to - entitledVariantIds: Variant IDs the discount applies to - entitledCollectionIds: Collection IDs the discount applies to - entitledCountryIds: Country IDs for shipping discounts - prerequisiteProductIds: Required product IDs - prerequisiteVariantIds: Required variant IDs - prerequisiteCollectionIds: Required collection IDs - prerequisiteCustomerIds: Required customer IDs Returns: The created price rule.
shopify_update_price_ruleUpdate an existing price rule. Args: - priceRuleId: Price rule ID to update - title: New title - value: New discount value - startsAt: New start date - endsAt: New end date - usageLimit: New usage limit - oncePerCustomer: New once per customer setting Returns: The updated price rule.
shopify_delete_price_ruleDelete a price rule and all associated discount codes. Args: - priceRuleId: Price rule ID to delete Returns: Confirmation of deletion.
shopify_list_discount_codesList discount codes for a price rule. Discount codes are the actual codes customers enter at checkout. Args: - priceRuleId: Price rule ID - format: Response format Returns: List of discount codes.
shopify_get_discount_codeGet a single discount code by ID. Args: - priceRuleId: Price rule ID - discountCodeId: Discount code ID - format: Response format Returns: The discount code details.
shopify_create_discount_codeCreate a discount code for a price rule. Args: - priceRuleId: Price rule ID - code: The discount code string (required, e.g., "SAVE10") Returns: The created discount code.
shopify_update_discount_codeUpdate a discount code. Args: - priceRuleId: Price rule ID - discountCodeId: Discount code ID - code: New discount code string Returns: The updated discount code.
shopify_get_locationGet a single location by ID. Args: - locationId: Location ID - format: Response format Returns: The location details.
shopify_list_draft_ordersList draft orders with pagination and filters. Draft orders are orders that haven't been completed yet. Args: - limit: Number of draft orders to return (1-250, default: 50) - sinceId: Return draft orders after this ID - status: Filter by status (open, invoice_sent, completed) - updatedAtMin: Minimum updated date - updatedAtMax: Maximum updated date - format: Response format Returns: Paginated list of draft orders.
shopify_get_draft_orderGet a single draft order by ID. Args: - draftOrderId: Draft order ID - format: Response format Returns: The draft order with all details.
shopify_create_draft_orderCreate a new draft order. Args: - lineItems: Array of line items (required) - variantId: Product variant ID - title: Custom line item title - quantity: Quantity - price: Price per item - customer: Customer object (id or email) - email: Customer email - shippingAddress: Shipping address object - billingAddress: Billing address object - note: Order note - tags: Comma-separated tags - useCustomerDefaultAddress: Use customer's default address - taxExempt: Whether order is tax exempt - appliedDiscount: Discount to apply - title: Discount title - value: Discount value - valueType: Type (fixed_amount or percentage) Returns: The created draft order.
shopify_update_draft_orderUpdate an existing draft order. Args: - draftOrderId: Draft order ID - lineItems: New line items array - customer: New customer - email: New email - shippingAddress: New shipping address - billingAddress: New billing address - note: New note - tags: New tags - appliedDiscount: New discount Returns: The updated draft order.
shopify_delete_draft_orderDelete a draft order. Args: - draftOrderId: Draft order ID to delete Returns: Confirmation of deletion.
shopify_complete_draft_orderComplete a draft order and convert it to a real order. Args: - draftOrderId: Draft order ID to complete - paymentPending: If true, marks payment as pending (default: false) Returns: The completed draft order with the created order ID.
shopify_send_draft_order_invoiceSend an invoice for a draft order to the customer. Args: - draftOrderId: Draft order ID - to: Recipient email (optional, defaults to customer email) - from: Sender email (optional, defaults to shop email) - subject: Email subject (optional) - customMessage: Custom message to include (optional) Returns: The invoice details.
shopify_list_fulfillmentsList fulfillments for an order. Args: - orderId: Order ID - limit: Number of fulfillments to return - format: Response format Returns: List of fulfillments with tracking information.
shopify_get_fulfillmentGet a single fulfillment by ID. Args: - orderId: Order ID - fulfillmentId: Fulfillment ID - format: Response format Returns: The fulfillment details.
shopify_create_fulfillmentCreate a fulfillment for fulfillment orders. This uses the new Fulfillment Orders API. Args: - lineItemsByFulfillmentOrder: Array of fulfillment order line items - fulfillmentOrderId: Fulfillment order ID - fulfillmentOrderLineItems: Array of { id, quantity } - trackingInfo: Tracking information object - number: Tracking number - url: Tracking URL - company: Shipping company - notifyCustomer: Whether to send shipping notification Returns: The created fulfillment.
shopify_update_fulfillment_trackingUpdate tracking information for a fulfillment. Args: - fulfillmentId: Fulfillment ID - trackingInfo: New tracking information - number: Tracking number - url: Tracking URL - company: Shipping company - notifyCustomer: Whether to notify customer of update Returns: The updated fulfillment.
shopify_cancel_fulfillmentCancel a fulfillment. Args: - fulfillmentId: Fulfillment ID to cancel Returns: The cancelled fulfillment.
shopify_list_fulfillment_ordersList fulfillment orders for an order. Fulfillment orders represent groups of items to be fulfilled together. Args: - orderId: Order ID - format: Response format Returns: List of fulfillment orders with their line items.
shopify_get_location_countGet the count of locations. Returns: Count of locations.
shopify_list_inventory_levelsList inventory levels for items at locations. You must provide at least one of: locationIds or inventoryItemIds. Args: - locationIds: Comma-separated location IDs - inventoryItemIds: Comma-separated inventory item IDs - limit: Number of levels to return Returns: List of inventory levels with available quantities.
shopify_adjust_inventory_levelAdjust the inventory level by a relative amount. Use this to increment or decrement inventory (e.g., +5 or -3). Args: - inventoryItemId: Inventory item ID - locationId: Location ID - adjustment: Amount to adjust (positive or negative) Returns: The updated inventory level.
shopify_set_inventory_levelSet the inventory level to an absolute value. Use this to set inventory to a specific number (e.g., set to 100). Args: - inventoryItemId: Inventory item ID - locationId: Location ID - available: New available quantity Returns: The updated inventory level.
shopify_get_inventory_itemGet an inventory item by ID. Inventory items are connected to product variants. Args: - inventoryItemId: Inventory item ID - format: Response format Returns: The inventory item details including SKU, cost, tracking settings.
shopify_update_inventory_itemUpdate an inventory item. Args: - inventoryItemId: Inventory item ID - sku: New SKU - cost: New cost - tracked: Whether to track inventory - countryCodeOfOrigin: Country of origin (ISO 3166-1 alpha-2) - provinceCodeOfOrigin: Province of origin - harmonizedSystemCode: HS tariff code Returns: The updated inventory item.
shopify_list_metafieldsList metafields for a resource. Metafields store custom data for products, customers, orders, etc. Args: - ownerResource: Resource type (products, customers, orders, collections, etc.) - ownerId: Resource ID - limit: Number of metafields to return - namespace: Filter by namespace - key: Filter by key - format: Response format Returns: Paginated list of metafields.
shopify_get_metafieldGet a single metafield by ID. Args: - ownerResource: Resource type - ownerId: Resource ID - metafieldId: Metafield ID - format: Response format Returns: The metafield details.
shopify_create_metafieldCreate a metafield for a resource. Common types: - single_line_text_field, multi_line_text_field - number_integer, number_decimal - boolean - json - date, date_time - color, url, rating - dimension, weight, volume - product_reference, variant_reference, collection_reference - file_reference Args: - ownerResource: Resource type (products, customers, orders, etc.) - ownerId: Resource ID - namespace: Metafield namespace (required) - key: Metafield key (required) - value: Metafield value (required) - type: Metafield type (required) - description: Description Returns: The created metafield.
shopify_get_assetGet a single asset from a theme. Returns the asset content (value) and metadata. Args: - themeId: Theme ID - key: Asset key (file path, e.g., "templates/index.liquid") - format: Response format Returns: The asset with its content.
shopify_update_metafieldUpdate an existing metafield. Args: - ownerResource: Resource type - ownerId: Resource ID - metafieldId: Metafield ID - value: New value - type: New type (optional) Returns: The updated metafield.
shopify_delete_metafieldDelete a metafield. Args: - ownerResource: Resource type - ownerId: Resource ID - metafieldId: Metafield ID to delete Returns: Confirmation of deletion.
shopify_list_shop_metafieldsList metafields attached to the shop itself. Args: - limit: Number of metafields to return - namespace: Filter by namespace - key: Filter by key - format: Response format Returns: Paginated list of shop metafields.
shopify_create_shop_metafieldCreate a metafield for the shop. Args: - namespace: Metafield namespace (required) - key: Metafield key (required) - value: Metafield value (required) - type: Metafield type (required) - description: Description Returns: The created shop metafield.
shopify_list_ordersList orders from the store with pagination and filters. Args: - limit: Number of orders to return (1-250, default: 50) - sinceId: Return orders after this ID - status: Order status (open, closed, cancelled, any) - financialStatus: Financial status (authorized, pending, paid, partially_paid, refunded, voided, partially_refunded, any, unpaid) - fulfillmentStatus: Fulfillment status (shipped, partial, unshipped, any, unfulfilled) - createdAtMin: Minimum created date (ISO 8601) - createdAtMax: Maximum created date (ISO 8601) - updatedAtMin: Minimum updated date - updatedAtMax: Maximum updated date - processedAtMin: Minimum processed date - processedAtMax: Maximum processed date - ids: Comma-separated list of order IDs - format: Response format Returns: Paginated list of orders.
shopify_get_orderGet a single order by ID. Args: - orderId: The order ID - format: Response format Returns: The order with all details including line items, shipping, etc.
shopify_create_orderCreate a new order (typically for importing historical orders). Args: - lineItems: Array of line items (required) - variantId: Variant ID - title: Product title - quantity: Quantity - price: Price - customer: Customer object (id or email) - billingAddress: Billing address object - shippingAddress: Shipping address object - email: Customer email - financialStatus: Financial status - fulfillmentStatus: Fulfillment status - note: Order note - tags: Comma-separated tags - sendReceipt: Whether to send receipt email - sendFulfillmentReceipt: Whether to send fulfillment email Returns: The created order.
shopify_update_orderUpdate an existing order. Args: - orderId: Order ID to update - email: New email - phone: New phone - note: New note - tags: New tags - shippingAddress: New shipping address - buyer_accepts_marketing: Marketing consent Returns: The updated order.
shopify_delete_orderDelete an order (moves to trash, can be restored within 60 days). Args: - orderId: Order ID to delete Returns: Confirmation of deletion.
shopify_get_order_countGet the count of orders matching filters. Args: - status: Order status filter - financialStatus: Financial status filter - fulfillmentStatus: Fulfillment status filter - createdAtMin: Minimum created date - createdAtMax: Maximum created date Returns: Count of matching orders.
shopify_close_orderClose an order (marks as archived). Args: - orderId: Order ID to close Returns: The closed order.
shopify_cancel_orderCancel an order. Args: - orderId: Order ID to cancel - reason: Cancellation reason (customer, fraud, inventory, declined, other) - email: Send cancellation email to customer - restock: Restock inventory Returns: The cancelled order.
shopify_list_productsList products from the Shopify store with pagination and filters. Args: - limit: Number of products to return (1-250, default: 50) - sinceId: Return products after this ID - title: Filter by title - vendor: Filter by vendor - handle: Filter by handle - productType: Filter by product type - collectionId: Filter by collection - status: Filter by status (active, archived, draft) - publishedStatus: Filter by published status - format: Response format ('json' or 'markdown') Returns: Paginated list of products with variants.
shopify_get_productGet a single product by ID. Args: - productId: The product ID - format: Response format ('json' or 'markdown') Returns: The product with all variants and images.
shopify_create_productCreate a new product in the store. Args: - title: Product title (required) - bodyHtml: Product description in HTML - vendor: Product vendor - productType: Product type - tags: Comma-separated tags - status: Product status (active, archived, draft) - variants: Array of variant objects with price, sku, etc. - options: Array of option objects (name, values) - images: Array of image objects (src, alt) Returns: The created product.
shopify_update_productUpdate an existing product. Args: - productId: Product ID to update - title: New product title - bodyHtml: New product description - vendor: New vendor - productType: New product type - tags: New comma-separated tags - status: New status Returns: The updated product.
shopify_delete_productDelete a product from the store. Args: - productId: Product ID to delete Returns: Confirmation of deletion.
shopify_get_product_countGet the count of products matching filters. Args: - vendor: Filter by vendor - productType: Filter by product type - collectionId: Filter by collection - status: Filter by status Returns: Count of matching products.
shopify_list_product_variantsList all variants for a product. Args: - productId: Product ID - limit: Number of variants to return - format: Response format Returns: List of product variants.
shopify_get_variantGet a single product variant by ID. Args: - variantId: Variant ID - format: Response format Returns: The variant details.
shopify_create_variantCreate a new variant for a product. Args: - productId: Product ID - price: Variant price - sku: SKU code - option1: First option value - option2: Second option value - option3: Third option value - barcode: Barcode - weight: Weight - weightUnit: Weight unit (g, kg, lb, oz) - inventoryQuantity: Initial inventory quantity Returns: The created variant.
shopify_update_variantUpdate an existing variant. Args: - variantId: Variant ID to update - price: New price - sku: New SKU - option1/2/3: New option values - barcode: New barcode - weight: New weight - compareAtPrice: Compare at price Returns: The updated variant.
shopify_delete_variantDelete a product variant. Args: - productId: Product ID - variantId: Variant ID to delete Returns: Confirmation of deletion.
shopify_list_product_imagesList all images for a product. Args: - productId: Product ID - limit: Number of images to return - format: Response format Returns: List of product images.
shopify_create_product_imageCreate a new image for a product. Args: - productId: Product ID - src: Image URL (required unless using attachment) - attachment: Base64-encoded image data - alt: Alt text for the image - position: Position in the image list - variantIds: Array of variant IDs to associate Returns: The created image.
shopify_update_product_imageUpdate an existing product image. Args: - productId: Product ID - imageId: Image ID - alt: New alt text - position: New position - variantIds: New variant IDs to associate Returns: The updated image.
shopify_delete_product_imageDelete a product image. Args: - productId: Product ID - imageId: Image ID to delete Returns: Confirmation of deletion.
shopify_test_connectionTest the connection to the Shopify store. Verifies that the API credentials are valid and returns shop information. Returns: Connection status and shop name if successful.
shopify_get_shopGet shop details and configuration. Returns comprehensive information about the Shopify store including: - Shop name, email, and owner info - Address and timezone - Currency and money format settings - Plan information - Feature flags Args: - format: Response format ('json' or 'markdown') Returns: Complete shop configuration object.
shopify_list_themesList all themes in the store. Returns themes with their roles (main, unpublished, demo). Args: - format: Response format Returns: List of themes.
shopify_get_themeGet a single theme by ID. Args: - themeId: Theme ID - format: Response format Returns: The theme details.
shopify_create_themeCreate a new theme. Args: - name: Theme name (required) - src: URL to a ZIP file containing the theme (optional) - role: Theme role (main, unpublished) Returns: The created theme.
shopify_update_themeUpdate an existing theme. Args: - themeId: Theme ID to update - name: New theme name - role: New theme role (main to publish, unpublished to unpublish) Returns: The updated theme.
shopify_delete_themeDelete a theme. Note: The main (published) theme cannot be deleted. Args: - themeId: Theme ID to delete Returns: Confirmation of deletion.
shopify_list_assetsList all assets in a theme. Returns a list of asset keys (file paths) in the theme. Args: - themeId: Theme ID - format: Response format Returns: List of asset keys.
shopify_create_or_update_assetCreate or update a theme asset. Use value for text content or attachment for binary content. Args: - themeId: Theme ID - key: Asset key (file path, e.g., "templates/custom.liquid") - value: Asset content as text - attachment: Asset content as base64-encoded string - sourceKey: Copy from another asset key (instead of value/attachment) Returns: The created/updated asset.
shopify_delete_assetDelete an asset from a theme. Args: - themeId: Theme ID - key: Asset key to delete Returns: Confirmation of deletion.
shopify_list_transactionsList all transactions for an order. Transactions represent payments, refunds, and other monetary operations. Args: - orderId: Order ID - format: Response format Returns: List of transactions.
shopify_get_transactionGet a single transaction by ID. Args: - orderId: Order ID - transactionId: Transaction ID - format: Response format Returns: The transaction details.
shopify_create_transactionCreate a transaction for an order. Use this to capture authorized payments or record external payments. Args: - orderId: Order ID - kind: Transaction kind (authorization, capture, sale, void, refund) - amount: Transaction amount - currency: Currency code (optional) - parentId: Parent transaction ID (for captures/refunds) - gateway: Payment gateway used Returns: The created transaction.
shopify_list_refundsList all refunds for an order. Args: - orderId: Order ID - format: Response format Returns: List of refunds with line items and amounts.
shopify_get_refundGet a single refund by ID. Args: - orderId: Order ID - refundId: Refund ID - format: Response format Returns: The refund details.
shopify_calculate_refundCalculate the refund amounts before creating a refund. Use this to preview what a refund would look like. Args: - orderId: Order ID - refundLineItems: Array of line items to refund - lineItemId: Line item ID - quantity: Quantity to refund - restockType: How to handle inventory (no_restock, cancel, return) - shipping: Shipping refund object - fullRefund: Whether to fully refund shipping - amount: Specific amount to refund Returns: Calculated refund amounts.
shopify_create_refundCreate a refund for an order. Args: - orderId: Order ID - refundLineItems: Array of line items to refund - lineItemId: Line item ID - quantity: Quantity to refund - restockType: How to handle inventory (no_restock, cancel, return) - shipping: Shipping refund object - fullRefund: Whether to fully refund shipping - amount: Specific amount to refund - notify: Whether to send refund notification to customer - note: Refund note - transactions: Refund transaction details - parentId: Parent transaction ID - amount: Amount to refund - kind: Transaction kind (usually 'refund') - gateway: Payment gateway Returns: The created refund.
shopify_list_webhooksList webhooks with pagination and filters. Webhooks send notifications to your app when events occur in the store. Args: - limit: Number of webhooks to return (1-250, default: 50) - sinceId: Return webhooks after this ID - topic: Filter by topic (e.g., orders/create) - address: Filter by endpoint URL - format: Response format Returns: Paginated list of webhooks.
shopify_get_webhookGet a single webhook by ID. Args: - webhookId: Webhook ID - format: Response format Returns: The webhook details.
shopify_create_webhookCreate a new webhook subscription. Common topics: - orders/create, orders/updated, orders/paid, orders/cancelled, orders/fulfilled - products/create, products/update, products/delete - customers/create, customers/update, customers/delete - inventory_levels/update, inventory_levels/connect, inventory_levels/disconnect - fulfillments/create, fulfillments/update - carts/create, carts/update - checkouts/create, checkouts/update - app/uninstalled, shop/update Args: - topic: Event topic (required, e.g., "orders/create") - address: Callback URL (required, must be HTTPS) - format: Payload format (json or xml) - fields: Specific fields to include in payload - metafieldNamespaces: Metafield namespaces to include Returns: The created webhook.
shopify_update_webhookUpdate an existing webhook. Args: - webhookId: Webhook ID to update - address: New callback URL - topic: New topic - format: New payload format - fields: New fields to include - metafieldNamespaces: New metafield namespaces Returns: The updated webhook.
shopify_delete_webhookDelete a webhook subscription. Args: - webhookId: Webhook ID to delete Returns: Confirmation of deletion.
shopify_get_webhook_countGet the count of webhooks matching filters. Args: - topic: Filter by topic - address: Filter by address Returns: Count of matching webhooks.
shopify_get_collection{
"format": "example_format",
"collectionId": 10
}shopify_open_order{
"orderId": 10
}shopify_delete_discount_code{
"priceRuleId": 10,
"discountCodeId": 10
}