---
title: "Connect HubSpot and Shopify - APIANT.ai"
description: "When \"Deal stage changed\" fires in HubSpot, your agent runs \"Add or update customer\" in Shopify."
canonical: "https://apiant.ai/connect/hubspot-to-shopify"
---

# Connect HubSpot and Shopify

When **Deal stage changed** fires in [HubSpot](https://apiant.ai/connections/hubspot), your agent runs **Add or update customer** in [Shopify](https://apiant.ai/connections/shopify), or **New customer** in Shopify to **Add contact to list** in HubSpot. Describe the whole flow and it is built, tested on every scenario and kept running.

HubSpot **29** triggers HubSpot **137** actions Shopify **17** triggers Shopify **78** actions

What the catalog holds today. Ask for anything missing and your agent reads the API documentation and adds it.

## What do you want HubSpot and Shopify to do together?

Give your AI client this address.

`https://mcp.apiant.ai`

One connection does both: ask your client to act in an app once, or have it build an automation that keeps running. Any client that takes a remote MCP server. Nothing to install. Create your free account, then sign in once in your browser.

### Set it up in your client

### Claude Code

Run this in the directory you want to work in.

`claude mcp add --transport http -s project apiant-ai https://mcp.apiant.ai`

Start Claude Code there, approve the server, and sign in in the browser page it opens.

[Claude Code guide (opens in a new tab)](https://apiant.ai/docs/mcp/claude-code)

### Claude, web and desktop

Open Customize, then Connectors, then Add custom connector, and paste the address. On Team and Enterprise an owner adds it first.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Cursor

Add the address to your MCP configuration as a server URL. Cursor signs you in in your browser.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Zed

Open Settings, then AI, then MCP Servers, then Add Server, then Add Remote Server.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Codex and the ChatGPT desktop app

Open Settings, then MCP servers, then Add server, and choose Streamable HTTP. From the terminal, Codex takes the address with its own add command and then signs you in.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Any other MCP client

Paste the address where the client asks for a remote MCP server URL, and name the server apiant-ai where it lets you. APIANT's skills reach the client over the same connection.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

Connecting HubSpot and Shopify keeps the buying side and the sales side of the same person in one place. Orders paid in Shopify can create or update the HubSpot contact and open a deal, while HubSpot form submissions and deal stage changes can update the shopper record and tags in Shopify.

Example flows

## What HubSpot and Shopify can do together

### From HubSpot to Shopify

- When **Deal stage changed** in HubSpot then **Add or update customer** in Shopify
- When **Form submitted** in HubSpot then **Add tags to customer** in Shopify

### From Shopify to HubSpot

- When **New customer** in Shopify then **Add contact to list** in HubSpot
- When **New paid order** in Shopify then **Find contact by email** in HubSpot

Starting points drawn from the triggers and actions in the catalog today. Describe the flow you need, at any depth, and your agent builds it and tests every scenario before it ships.

Everything your agent can do with HubSpot and Shopify

## Triggers and actions 46 triggers · 215 actions

- Trigger

**Company deleted**

Triggered on deletion of existing company. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**Contact deleted**

Triggered on deletion of existing contact. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**Deal deleted**

Triggered on deletion of existing deal. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**Deal stage changed**

Triggers when a deal moves to a new stage in a pipeline.

- Trigger

**Form submitted**

Triggers when a contact submits the chosen HubSpot form. Turning the automation on creates a HubSpot workflow that forwards each submission; turning it off deletes that workflow. Requires a HubSpot plan whose workflows can send webhooks.

- Trigger

**New associated object**

Triggers when a new record of one CRM object type becomes associated with a record of another object type (for example, a deal linked to a company).

- Trigger

**New blog post**

Triggers on a new blog post added to the selected blog.

- Trigger

**New calendar task +30d**

Triggered when a new calendar task is created in the next 30 days. Note: this applies to HubSpot (Marketing), and not HubSpot CRM's tasks. Note: only supports up to 499 tasks in the next 30 days, an error will occur if more than 499 tasks exist.

- Trigger

**New company**

Triggered when a new company is added.

- Trigger

**New company (instant)**

Triggered on creation of new company. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**New contact**

Triggered on creation of new contact. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**New deal**

Triggered on creation of new deal. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**New note added to contact**

Triggers when a note linked to a contact is added in HubSpot.

- Trigger

**New or changed engagements**

Triggers on new or changed engagements.

- Trigger

**New or updated company**

Triggered when a company is created or modified

- Trigger

**New or updated contact**

Triggers on new or updated contacts.

- Trigger

**New or updated contact (Custom Fields Included)**

Triggered when a contact is created or updated.

- Trigger

**New or updated deal**

Triggered when a deal is created or updated.

- Trigger

**New or updated ticket**

Triggered when a ticket is created or updated.

- Trigger

**New social media message**

Triggered when a new social media message is added.

- Trigger

**New ticket**

Triggers when new ticket is available.

- Trigger

**Ticket property changed**

Triggered when the chosen property changes on a ticket

- Trigger

**Two-way sync new or updated companies**

A trigger for two-way syncing new and updated companies, with enhanced on-the-fly mapping. Can only be used with enhanced two-way sync actions that support on-the-fly mapping.

- Trigger

**Two-way sync new or updated contacts**

A trigger for two-way syncing new and updated contacts, with enhanced on-the-fly mapping. Can only be used with enhanced two-way sync actions that support on-the-fly mapping.

- Trigger

**Updated company custom property**

Triggered when the selected custom property is updated on a company. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**Updated contact**

Triggered when a contact is updated.

- Trigger

**Updated contact custom property**

Triggered when the selected custom property is updated on a contact. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**Updated contact custom property by name**

Triggered when the specified custom property is updated on a contact. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Trigger

**Updated deal custom property**

Triggered when the selected custom property is updated on a deal. Should only be set up with one account per organization, as all user accounts within an organization share the same portalId (unique identifier).

- Action

**Add company**

Adds a new company.

- Action

**Add contact**

Adds a new contact. An error occurs if the email already exists. If a company name is found, the contact is associated with the company. Emits the contact ID if added.

- Action

**Add contact to list**

Adds a contact to the specified contact list.

- Action

**Add contact to workflow**

Enrolls a contact to a workflow provided the workflow ID and the contact email.

- Action

**Add custom object record**

Adds a record to the specified custom object.

- Action

**Add deal**

Creates a new deal and optionally associates it with a contact and/or company.

- Action

**Add meeting**

Creates a meeting engagement.

- Action

**Add or update company**

Adds a new company if the name does not already exist, otherwise updates the existing company. Only non-empty properties are updated.

- Action

**Add or update contact**

Adds or updates a contact. If a company name is found, the contact is associated with the company. The ID of the added/updated contact is emitted as output.

- Action

**Add or update deal**

Searches for a deal by name. If found it updates it, if not it adds it. If a contact email or company name is provided, the deal is associated with them if found.

- Action

**Add ticket**

Adds a new ticket.

- Action

**Append company dropdown property values**

Appends one or more values to a company dropdown property. An error occurs if the named property is not found.

- Action

**Append company multi-select property dropdown values**

Appends one or more dropdown values to a company multi-select property. An error occurs if the named property is not found.

- Action

**Append contact dropdown property values**

Appends one or more values to a contact dropdown property. An error occurs if the named property is not found.

- Action

**Append contact multi-select property dropdown values**

Appends one or more dropdown values to a contact multi-select property. An error occurs if the named property is not found.

- Action

**Append deal dropdown property values**

Appends one or more values to a deal dropdown property. An error occurs if the named property is not found.

- Action

**Append deal multi-select property dropdown values**

Appends one or more dropdown values to a deal multi-select property. An error occurs if the named property is not found.

- Action

**Append ticket dropdown property values**

Appends one or more values to a ticket dropdown property. An error occurs if the named property is not found.

- Action

**Append ticket multi-select property values**

Appends one or more values to a ticket multi-select property. An error occurs if the named property is not found.

- Action

**Clear contact property value**

Erases the value of specified property for the specified contact.

- Action

**Clear deal property value**

Erases the value of specified property for the specified deal.

- Action

**Clear ticket property value**

Erases the value of specified property for the specified ticket.

- Action

**Convert to valid property name**

Converts a string value into a valid property name. Property names must begin with a letter and contain only up to 100 lowercase letters, numbers, or underscores, without any spaces, commas, or special characters.

- Action

**Copy workflow**

Copies the specified workflow. The new workflow will have "COPY" appended to its name.

- Action

**Create a blog post**

Creates a new blog post

- Action

**Create a company property: boolean checkbox**

Creates a boolean checkbox company property. No error occurs if the property already exists.

- Action

**Create a company property: dropdown select**

Creates a dropdown select list company property. No error occurs if the property already exists.

- Action

**Create a company property group**

Creates a company property group. No error occurs if the group already exists.

- Action

**Create a company property: multi-select**

Creates a multi-select list company property. No error occurs if the property already exists.

- Action

**Create a company property: single value**

Creates a company property that can be a single value such as text strings, numbers, dates, and datetimes. No error occurs if the property already exists.

- Action

**Create a contact list**

Creates a contact list. An error occurs if the list already exists.

- Action

**Create a contact property: boolean checkbox**

Creates a boolean checkbox contact property. No error occurs if the property already exists.

- Action

**Create a contact property: dropdown select**

Creates a dropdown select list contact property. No error occurs if the property already exists.

- Action

**Create a contact property group**

Creates a contact property group. No error occurs if the group already exists.

- Action

**Create a contact property: multi-select**

Creates a multi-select list contact property. No error occurs if the property already exists.

- Action

**Create a contact property: single value**

Creates a contact property that can be a single value such as text strings, numbers, dates, and datetimes. No error occurs if the property already exists.

- Action

**Create a deal pipeline and stages**

Creates a new deal pipeline and up to 10 stages.

- Action

**Create a deal property**

Creates a deal property. No error occurs if the property already exists.

- Action

**Create a deal property: boolean checkbox**

Creates a boolean checkbox deal property. No error occurs if the property already exists.

- Action

**Create a deal property: dropdown select**

Creates a dropdown select list deal property. No error occurs if the property already exists.

- Action

**Create a deal property group**

Creates a deal property group. No error occurs if the group already exists.

- Action

**Create a deal property: multi-select**

Creates a multi-select list deal property. No error occurs if the property already exists.

- Action

**Create a deal property: single value**

Creates a deal property that can be a single value such as text strings, numbers, dates, and datetimes. No error occurs if the property already exists.

- Action

**Create an email engagement**

Logs an incoming email in HubSpot and links it to the given contacts, companies and deals.

- Action

**Create a note engagement**

Creates a note in HubSpot and links it to the given contacts, companies, deals and tickets.

- Action

**Create association**

Creates an association between two objects

- Action

**Create association: contact to contact**

Creates an association between two contacts

- Action

**Create association type**

Creates an association type between two objects. An error occurs if the association already exists.

- Action

**Create a task engagement**

Creates a new task engagement.

- Action

**Create a ticket property: boolean checkbox**

Creates a boolean checkbox ticket property. No error occurs if the property already exists.

- Action

**Create a ticket property: dropdown select**

Creates a dropdown select list ticket property. No error occurs if the property already exists.

- Action

**Create a ticket property group**

Creates a ticket property group. No error occurs if the group already exists.

- Action

**Create a ticket property: multi-select**

Creates a multi-select list ticket property. No error occurs if the property already exists.

- Action

**Create a ticket property: single value**

Creates a ticket property that can be a single value such as text strings, numbers, dates, and datetimes. No error occurs if the property already exists.

- Action

**Create custom association**

Creates an association between two objects using a custom association type. Use the "get association types" action to obtain the custom association type.

- Action

**Create record**

Creates a record of the selected CRM object type with the supplied properties.

- Action

**CRM card: set display values**

Builds the results payload a HubSpot CRM card data-fetch request expects: one card entry carrying the record id it describes, its title, an optional link, and the property rows to display.

- Action

**Delete contact**

Deletes a contact provided its contact ID.

- Action

**Delete contact list**

Deletes a contact list specified by ID.

- Action

**Delete contact secondary email**

Deletes the specified secondary email for the specified contact. An error will occur if either the contact or secondary email is not found.

- Action

**Delete deal**

Deletes a deal provided its deal ID.

- Action

**Delete record**

Deletes a record of the selected CRM object type by ID.

- Action

**Delete ticket**

Deletes a ticket provided a ticket ID.

- Action

**Find companies associated to contact**

Returns up to 500 company IDs associated with the specified contact

- Action

**Find company by name**

Searches for a company by name (case-insensitive) and emits the company's ID. Zero, one, or multiple ID's may be emitted.

- Action

**Find company by property**

Searches for a company by property (case-insensitive) and emits the company's information. Only the first matching company is emitted. If no matches are found, an error occurs.

- Action

**Find contact by email**

Finds a contact by email. If the contact is not found, no information is emitted and no error occurs.

- Action

**Find contact by property**

Search HubSpot contacts by any property name/value pair (EQ filter). Returns the first matching contact's standard fields.

- Action

**Find contact list by name**

Look up a contact list by its name and return its v3 list id. Use this instead of 'Get all contact lists' whenever the id will be passed to a v3 endpoint such as 'Add contact to list': the v1 lists endpoint returns ids from a different id space, and feeding a v1 id to a v3 endpoint silently targets a different list.

- Action

**Find contacts by property**

Returns contact IDs for all contacts matching the specified property value.

- Action

**Find custom object records associated to contact**

Given a HubSpot contact ID and a custom object type, returns the IDs of all custom object records associated to that contact. Paginated via the v4 associations API. Used by the CRMConnect v3.8 membership reconciliation pass.

- Action

**Find custom object records by property**

Returns record IDs for all records of the specified custom object matching the specified property value.

- Action

**Find deal by name**

Searches for a deal by name (case-insensitive) and emits the company's ID. Zero, one, or multiple ID's may be emitted.

- Action

**Find deal by property**

Searches for a deal by property (case-insensitive) and emits its information. Only the first matching deal is emitted. If no matches are found, an error occurs.

- Action

**Find deals associated to company**

Returns up to 500 deal IDs associated with the specified company

- Action

**Find deals associated to contact**

Returns up to 500 deal IDs associated with the specified contact

- Action

**Find owner by email**

Fetches owner details for an owner with the specified email address.

- Action

**Find pipeline by name**

Finds a pipeline provided its name and its type.

- Action

**Find recently modified deals**

Returns recently modified deals.

- Action

**Get associated records with labels**

List the records associated to a record, including the label and type of each association.

- Action

**Get association types**

Returns all association types between the specified two object types.

- Action

**Get calls for contact**

Returns all calls with the specified contact, optionally within a specified datetime range.

- Action

**Get calls for deal**

Returns all calls with the specified deal, optionally within a specified datetime range.

- Action

**Get company**

Returns company details for the specified ID.

- Action

**Get contact**

Returns contact details for the specified ID.

- Action

**Get contact list**

Read a single contact list by its ID.

- Action

**Get contact secondary emails**

Returns all secondary emails for the specified contact.

- Action

**Get custom object records batch by IDs**

Given a custom object type, a comma-separated list of record IDs, and a comma-separated list of property API names, returns one record per ID with the requested properties, one batch per call. Used by the CRMConnect v3.8 membership reconciliation pass.

- Action

**Get deal**

Returns details for the deal with the specified ID.

- Action

**Get emails for contact**

Returns all emails with the specified contact, optionally within a specified datetime range.

- Action

**Get emails for deal**

Returns all emails with the specified deal, optionally within a specified datetime range.

- Action

**Get meetings for contact**

Returns all meetings with the specified contact, optionally within a specified datetime range.

- Action

**Get meetings for deal**

Returns all meetings with the specified deal, optionally within a specified datetime range.

- Action

**Get notes for contact**

Returns all notes with the specified contact, optionally within a specified datetime range.

- Action

**Get notes for deal**

Returns all notes with the specified deal, optionally within a specified datetime range.

- Action

**Get Object by Field Value**

Looks up a record of the selected HubSpot CRM object type by an exact match on a single property (the Object, Field, and Value settings), returning the first matching record ID.

- Action

**Get object property info**

Returns information for the specified property for the specified company, contact, or deal object type.

- Action

**Get owner**

Returns details for the owner with the specified ID.

- Action

**Get record**

Returns a single record of the selected CRM object type by ID.

- Action

**Get tasks for contact**

Returns all tasks with the specified contact, optionally within a specified datetime range.

- Action

**Get tasks for deal**

Returns all tasks with the specified deal, optionally within a specified datetime range.

- Action

**Get ticket**

Returns details for the ticket with the specified ID.

- Action

**Get total number of contacts having property**

Returns the total number of contacts having the specified property.

- Action

**Import records from CSV into object**

Imports records from a CSV file into a specified object.

- Action

**List all workflows**

Returns the name and id of all workflows visible in the portal.

- Action

**List contact IDs of a company**

Given a company ID, finds all contacts in that company.

- Action

**List contact list memberships (v3)**

Returns the contacts that are currently members of a HubSpot contact list, identified by the list's v3 (ILS) id.

- Action

**List owners**

Returns a list of HubSpot account owners, supporting pagination and optional filtering by email.

- Action

**List pipelines**

Returns the pipelines for deals or tickets, depending on which object type you select.

- Action

**List pipeline stages**

Returns the stages in a specific deal or ticket pipeline.

- Action

**List records**

Lists records of the selected CRM object type.

- Action

**Log call**

Logs a completed call in HubSpot and links it to the given contacts.

- Action

**Merge contacts**

Merge two contact records. The contact ID will be treated as the primary contact, and the contact ID to merge will be treated as the secondary contact. Most recent property values such as email and name will overwrite older values.

- Action

**Parse property option errors**

Emits arrays of property and option names parsed from the input error message. Empty arrays are emitted if the input error message is empty.

- Action

**Remove contact from list (v3)**

Removes a contact from a HubSpot contact list, using the list's v3 (ILS) id. Only MANUAL and SNAPSHOT lists accept membership changes.

- Action

**Search contact lists (v3)**

Returns the contact lists in the connected HubSpot account, optionally narrowed by a name search, processing type, or object type. Each list comes back with its ILS (v3) list id, name and processing type.

- Action

**Search records**

Searches records of the selected CRM object type by filter criteria.

- Action

**Submit a form**

Submits a form to the Forms API

- Action

**Two-way sync add or update a company**

An action for two-way syncing new and updated companies, with enhanced on-the-fly mapping using company names for matching. Can only be used with enhanced two-way sync triggers that support on-the-fly mapping.

- Action

**Unsubscribe contact from all lists**

Unsubscribes a contact from all lists.

- Action

**Update company**

Updates an existing company specified by ID. A field you map but leave EMPTY is IGNORED - the stored value is preserved, not erased. Because of that, this action cannot CLEAR a property: to empty one, edit it in HubSpot directly.

- Action

**Update company multi-select property - check value**

Updates the specified multi-select property for the specified company such that the specified value is checked if not already checked.

- Action

**Update company multi-select property - uncheck value**

Updates the specified multi-select property for the specified company such that the specified value is unchecked (removed).

- Action

**Update contact**

Updates an existing contact specified by ID. A field you map but leave EMPTY is IGNORED - the stored value is preserved, not erased. Because of that, this action cannot CLEAR a property: to empty one, edit it in HubSpot directly.

- Action

**Update contact multi-select property - check value**

Updates the specified multi-select property for the specified contact such that the specified value is checked if not already checked.

- Action

**Update contact multi-select property - uncheck value**

Updates the specified multi-select property for the specified contact such that the specified value is unchecked (removed).

- Action

**Update contact properties**

Updates the values of up to 6 specified properties for the specified contact. A field you map but leave EMPTY is IGNORED - the stored value is preserved, not erased. Because of that, this action cannot CLEAR a property: to empty one, edit it in HubSpot directly.

- Action

**Update custom object multi-select property - check value**

Updates the specified multi-select property for the specified custom object record such that the specified value is checked if not already checked.

- Action

**Update custom object record**

Updates a specified record in the specified custom object.

- Action

**Update custom object record pipeline and stage**

Updates the specified custom object record to place it in the specified pipeline and stage.

- Action

**Update deal**

Updates an existing deal specified by ID. A field you map but leave EMPTY is IGNORED - the stored value is preserved, not erased, and the related calculated amounts (amount in home currency, forecast amount) are left intact. Because of that, this action cannot CLEAR a property: to empty one, edit it in HubSpot directly.

- Action

**Update deal multi-select property - check value**

Updates the specified multi-select property for the specified deal such that the specified value is checked if not already checked.

- Action

**Update deal multi-select property - uncheck value**

Updates the specified multi-select property for the specified deal such that the specified value is unchecked (removed).

- Action

**Update record**

Updates properties on a record of the selected CRM object type by ID. A field you map but leave EMPTY is IGNORED - the stored value is preserved, not erased. Because of that, this action cannot CLEAR a property: to empty one, edit it in HubSpot directly.

- Action

**Update ticket multi-select property - check value**

Updates the specified multi-select property for the specified ticket such that the specified value is checked if not already checked.

- Action

**Update ticket multi-select property - uncheck value**

Updates the specified multi-select property for the specified ticket such that the specified value is unchecked.

- Action

**Upload Files**

Imports a file into the HubSpot File Manager from a public URL (asynchronous import). Set the source URL plus optional name, public/indexable access, and hidden flag; emits the created file reference.

- Trigger

**New cart**

Triggered when a cart is created.

- Trigger

**New customer**

Polling trigger that fires for each newly created Shopify customer. Fetches the 50 most recently created customers (sorted by creation date, newest first) via the GraphQL Admin API customers connection.

- Trigger

**New customer (instant)**

Triggered when a customer is added.

- Trigger

**New order**

Polls Shopify for orders (most recent first), returning a list of orders.

- Trigger

**New order (instant)**

Triggered when an order is created.

- Trigger

**New paid order**

Triggered when an order is paid.

- Trigger

**New product**

Triggers when a new product is created in Shopify. Polls the GraphQL Admin API products connection (first 50, sorted by createdAt ascending) and returns each product's id, title, handle, vendor, product_type, status, created_at, updated_at.

- Trigger

**Order fulfilled**

Triggered when an order is fulfilled.

- Trigger

**Order partially fulfilled**

Triggered when an order is partially fulfilled.

- Trigger

**Two-way sync new or updated customers**

Polling fetch body for the two-way customer sync trigger. Lists Shopify customers ordered oldest-to-newest by updated_at (GraphQL customers connection, sortKey: UPDATED_AT, reverse:false, first:250) so newly created or updated customers are surfaced for two-way synchronization.

- Trigger

**Updated cart**

Triggered when a cart is updated.

- Trigger

**Updated customer**

Triggered when a customer is updated.

- Trigger

**Updated fulfillment status**

Polling trigger: fetches recently-updated Shopify orders (any status) and returns each order's fulfillment status.

- Trigger

**Updated order**

Polls Shopify for recently updated orders (any status), most-recently-updated first.

- Trigger

**Updated order (instant)**

Triggered when an order is updated.

- Trigger

**Updated order payment status**

Polling trigger: fires when an order's payment (financial) status changes. Lists the 50 most recently updated orders via the GraphQL Admin API (orders sorted by UPDATED_AT desc) and dedups on order id + financial status so a new event fires only when the payment status changes.

- Trigger

**Updated product**

Polling trigger: fires for products that were recently updated. Fetches up to 50 products sorted by update time (most recent first) via the Shopify GraphQL Admin API, projecting id, title, handle, vendor, product_type, status, created_at and updated_at for each.

- Action

**Activate Inventory Item at Location**

Stocks an inventory item at a store location so it can hold quantity there, and returns the location's available quantity.

- Action

**Add customer**

Create a new Shopify customer (first name, last name, email, phone, note, tags) via the GraphQL Admin API customerCreate mutation. Returns the created customer's id, email, phone, first/last name and created_at.

- Action

**Add metafield to customer**

Add (set) a metafield on a Shopify customer, with the customer as the metafield owner. Inputs: Customer ID, Namespace, Key, Type (default single_line_text_field), Value. Returns the created/updated metafield's id, namespace, key, type, value.

- Action

**Add metafield to product**

Adds a metafield to the specified product.

- Action

**Add or update customer**

Creates a new customer if the email does not exist, otherwise updates the existing customer.

- Action

**Add product image**

Adds a new product image from the image at the specified URL.

- Action

**Add Product Option**

Adds one or two new options (for example Size or Color) to an existing product and gives every existing variant a value for them. Does nothing if the product already has an option with that name.

- Action

**Add tags to customer**

Adds one or more tags to the customer with the specified email. An error occurs if more than one customer is found. Existing tags on the customer are not removed.

- Action

**Add tags to order**

Adds the given comma-separated tags to a Shopify order (GraphQL Admin API tagsAdd mutation). Existing order tags are preserved; tagsAdd merges new tags onto the current set. Inputs: Order ID (numeric REST id, converted to a gid://shopify/Order GID), Tags (comma-separated). Returns the order GID (id) and the full resulting tag list (tags).

- Action

**Add transaction to order**

Add a transaction to an order. Captures payment for the order's authorized amount. Inputs: Kind (default capture), Amount, Currency, Parent Transaction ID, plus the Order ID setting. Returns the transaction id, kind, status and order id.

- Action

**Adjust Inventory Quantity**

Change an inventory item's available quantity at a location by a positive or negative amount.

- Action

**Apply gift card adjustment**

Apply an adjustment (credit) to a Shopify gift card's balance. Inputs: Gift Card ID, Amount, optional Note. Returns the resulting credit transaction id, note, amount, creation time, and the gift card's numeric id.

- Action

**Change product option names**

Update a Shopify product's core fields and (re)name its product options. Inputs: Product ID plus optional Title, Body HTML, Handle, Type, Published scope, Tags, Template suffix, Vendor, and Option 1/2/3 name. Returns the updated product id, title, options (name+position), and updated_at.

- Action

**Change product option names and values**

Change a product's option names and their values. Inputs: Product ID, Option 1/2/3 Name, Option 1/2/3 Values (comma-separated). Returns the product id, title, and the resulting options array.

- Action

**Complete draft order**

Completes a draft order.

- Action

**Create Metafield Definition**

Create a metafield definition (namespace, key, type, validations) for an owner type.

- Action

**Create Order with Calculated Tax**

Creates an order for a product variant, with Shopify calculating the tax from the shipping address, and returns the order totals and tax lines.

- Action

**Create or Update Theme File**

Create or replace a file in a theme. The store's Shopify app needs the write_themes scope.

- Action

**Create product**

Creates a new product.

- Action

**Create product variant**

Creates a new variant on an existing Shopify product. Inputs: SKU, Price, Weight, Barcode, Option1-3, Compare At Price, Inventory Quantity, plus the Product ID setting. Returns the created variant id, sku, price, title, option1, product_id and inventory_item_id.

- Action

**Create Product with Variants**

Create a product with up to three options and its variants (price, SKU, barcode, inventory settings) in one step.

- Action

**Delete item from location**

Disconnect (deactivate) an inventory item from a location, removing the inventory level — GraphQL Admin API equivalent of.

- Action

**Delete product**

Deletes an existing product.

- Action

**Delete product variant**

Deletes an existing product variant.

- Action

**Delete Theme File**

Delete a file from a theme. The store's Shopify app needs the write_themes scope.

- Action

**Find custom collection by name**

Returns details for the specified custom collection. If the custom collection is not found, an error occurs.

- Action

**Find customer by email**

Find a Shopify customer by email address. GraphQL Admin API: customers(first:1, query:"email:...") connection query; returns the first matching customer's email and numeric (legacyResourceId) customer_id.

- Action

**Find location by name**

Find a Shopify location by its exact name and return its Location ID. Fails if no location matches or if more than one location shares the name. (GraphQL Admin API port of the REST locations.json lookup.)

- Action

**Find orders**

Finds orders based upon search criteria. Emits the IDs of any matching orders. Use the "get order" action to fetch details for found orders.

- Action

**Find product by title**

Finds a product by a title search. An error occurs if zero or multiple match.

- Action

**Find product variant by SKU**

Find a single Shopify product variant by its SKU. Searches product variants for an exact SKU match, fails if zero or more than one variant matches. Returns the variant's id, sku, price, title, product id, inventory item id, and the full variant object.

- Action

**Find product variant by title**

Finds a product variant by a title search. An error occurs if zero or multiple match.

- Action

**Get all product ids in custom collection**

Returns all products (and their numeric ids) in a given custom collection.

- Action

**Get Base URL**

Returns the connected Shopify store's base URL and derives the store subdomain (store_name) from it. Pure-compute helper; makes no Shopify API call (nothing to migrate to GraphQL).

- Action

**Get customer**

Retrieve a single Shopify customer by Customer ID. Returns the customer's id, email, phone, state, first/last name, tags, created/updated timestamps, total spent, and orders count.

- Action

**Get customer metafield value**

Get a customer's metafield value by namespace and key. Returns its type, value, and numeric metafield id.

- Action

**Get fulfillment order**

Returns details for the specified order ID and fulfillment order ID. If either the order or fulfillment order is not found, an error occurs. Use the "get fulfillment order ids for order" action to fetch the fulfillment order ids for an order.

- Action

**Get fulfillment order ids for order**

Get the fulfillment order IDs for a Shopify order. Given a numeric Order ID, returns the count of fulfillment orders and their IDs.

- Action

**Get fulfillment order line items**

Lists the line items on a fulfillment order, with the quantity still left to fulfill.

- Action

**Get inventory item**

Returns details for the specified inventory item.

- Action

**Get inventory quantity**

Get available inventory quantity for an inventory item, optionally filtered to a single location.

- Action

**Get locations**

Retrieve the list of Shopify store locations. Returns each location's id, legacyResourceId, name, active state, and address.

- Action

**Get metafields for customer**

Get all metafields for a Shopify customer by Customer ID. Returns the list of metafield records (id, namespace, key, value, type) for the customer.

- Action

**Get metafields for product**

Retrieve all metafields for a product (up to 250). Takes the numeric Product ID setting and returns the list of metafields (id, namespace, key, value, type).

- Action

**Get order**

Get an order from Shopify by its numeric Order ID. Reads the order via the GraphQL Admin API (order(id:) query) and returns its name, email, currency, created date, total price, financial status, fulfillment status, and the full order object.

- Action

**Get product**

Returns all fields for the specified product ID. If the product is not found, an error occurs.

- Action

**Get product count: active products**

Returns a count of active products.

- Action

**Get product count: all products**

Returns a count of all products.

- Action

**Get product count: archived products**

Returns the number of archived products in the Shopify store.

- Action

**Get product count: draft products**

Returns the number of draft products in the Shopify store (status:draft).

- Action

**Get product metafield value**

Returns the value of a single product metafield identified by Namespace and Key for the given Product ID.

- Action

**Get Product Options**

Get a product's options and their values.

- Action

**Get product variant**

Get a single Shopify product variant by its numeric Variant ID. Returns id, sku, price, title, inventory_quantity, product_id, inventory_item_id, and the full variant object.

- Action

**Get product variant by SKU**

Look up a single Shopify product variant by its SKU. Searches product variants for the given SKU, fails if zero or more than one match. Returns the matched variant's id, sku, price, title, product id, inventory item id, and the full variant object.

- Action

**Get Sales Tax Rates by Location**

Returns the sales tax lines and total tax rate that apply at each active store location.

- Action

**Get Theme File**

Get a theme file's contents by theme and filename.

- Action

**Move fulfillment order line item**

Changes the location which is assigned to fulfill a number of unfulfilled fulfillment order line items.

- Action

**Order - add discount code**

Append a discount code to an in-progress order object before it is submitted to Shopify. GraphQL-shaped: the discount entry carries DraftOrderAppliedDiscountInput fields (title/code, value, valueType FIXED_AMOUNT|PERCENTAGE, amount) so the assembled order is ready for the draftOrderCreate / draftOrderUpdate GraphQL mutation. Mirrors the REST builder that appended {code, amount, type} to order.discount_codes; same inputs (Code, Type, Amount, Order) and outputs (order, discount_codes).

- Action

**Order - add line item**

Appends a line item to an in-memory order object (built by Order - initialize) before the order is created. Carries the same inputs (Variant ID, Quantity, Price, Total discount, Origin location ID, Is gift card, Fulfillment status).

- Action

**Order - add line item property**

Adds a custom line-item property (name/value pair) to the LAST line item of an in-flight Shopify order object being assembled in the Order builder chain (initialize -> add line item -> add line item property -> create). Pure in-memory mutation of the draft order; no API call. Returns the updated order object and its JSON encoding. (No REST->GraphQL change applies: this op never called the REST Admin API; it is a local order-builder helper. The eventual draftOrderCreate/orderCreate happens in the separate 'Order - create' op.)

- Action

**Order - add line item tax line**

Adds a tax line to the last line item of an in-memory order payload (builder, no API call). This op shapes the legacy order JSON structure; it does not call Shopify. Same inputs/outputs as the REST builder. Note: this never touched the Shopify REST API, so there is no GraphQL request equivalent — per-line-item user-supplied tax_lines are a REST Order-payload construct with no GraphQL counterpart (GraphQL computes tax lines server-side).

- Action

**Order - create**

Creates a new order.

- Action

**Order - initialize**

Starts a new Shopify order in your automation from the customer email, currency, billing and shipping addresses, tags, taxes and status you choose. It does not contact Shopify: pass the result through the Order - add steps (line items, discount codes) and then Order - create to place the order.

- Action

**Remove tags from customer**

Remove one or more comma-separated tags from a Shopify customer (looked up by email). GraphQL Admin API port: finds the customer via a customers(query:"email:...") query, then calls the tagsRemove mutation with the customer GID and the tag list. Returns the customer's numeric id and remaining tags.

- Action

**Remove tags from order**

Removes the given comma-separated tags from a Shopify order (by Order ID). Uses the GraphQL Admin API tagsRemove mutation; tags not present are ignored. Returns the order id and its remaining tags.

- Action

**Send customer invite**

Sends an account invite to a customer specified by their email address.

- Action

**Set Product Variant Metafield**

Create or update a metafield value on a product variant.

- Action

**Two-way sync add or update a customer**

Two-way sync: find a Shopify customer by email (or by the previously mapped customer id) and update it, otherwise create a new customer. Sets email, name, phone, note, tags, marketing consent and a single address. GraphQL Admin API port of the legacy REST customers create/update flow. Returns the customer id and updated_at.

- Action

**Update customer**

Updates an existing customer.

- Action

**Update Customer Default Address**

Updates a customer's default address, or adds one as the default if they have none. Fields left blank are not changed.

- Action

**Update Customer Email Marketing Consent**

Sets a Shopify customer's email marketing consent state and opt-in level.

- Action

**Update inventory item**

Updates a Shopify inventory item (sku, cost, tracked, country code of origin, harmonized system code). Takes the numeric Inventory Item ID.

- Action

**Update inventory quantity**

Set the absolute available inventory quantity for an inventory item at a specific location. GraphQL inventorySetQuantities mutation (name: available) replacing the REST inventory_levels/set.json endpoint. Returns the resulting available quantity, inventory item id, and location id.

- Action

**Update order**

Update an existing Shopify order's financial status by Order ID. Returns the order's numeric id, name, updated timestamp, and financial status.

- Action

**Update order as fulfilled**

Marks an order's fulfillment order as fulfilled by creating a fulfillment, optionally attaching tracking number/company and notifying the customer. GraphQL fulfillmentCreateV2 mutation.

- Action

**Update order line item as fulfilled**

Creates a fulfillment for an order's fulfillment order (optionally a specific line item) with tracking info, via the GraphQL fulfillmentCreateV2 mutation.

- Action

**Update product**

Update an existing product in Shopify (GraphQL Admin API, productUpdate mutation). Updates title, description, vendor, product type, tags, and/or status on the product identified by the Product ID setting; only provided fields are changed. Returns the product id, title, handle, status, updated timestamp, and admin GraphQL id.

- Action

**Update product variant**

Updates an existing variant of a Shopify product — its price, compare-at price, SKU, barcode, weight and option values. Fields left blank keep their current values.

## Each app on its own

- [ **HubSpot** HubSpot is your all-in-one stop for all of your marketing software needs.](https://apiant.ai/connections/hubspot)
- [ **Shopify** Shopify is a commerce platform for online stores and retail point-of-sale.](https://apiant.ai/connections/shopify)

Reviews

## What our customers say

## More from HubSpot

- [ **HubSpot to Salesforce** Salesforce is a leading enterprise customer relationship management (CRM) platform.](https://apiant.ai/connect/hubspot-to-salesforce)
- [ **HubSpot to Google Sheets** Google Sheets](https://apiant.ai/connect/hubspot-to-google-sheets)
- [ **HubSpot to Stripe** Stripe is a payment processing platform for online businesses.](https://apiant.ai/connect/hubspot-to-stripe)
- [ **HubSpot to QuickBooks Online** QuickBooks Online accounting — manage customers, invoices, bills, payments, vendors, expenses, and more via...](https://apiant.ai/connect/hubspot-to-quickbooks-online)
- [ **HubSpot to Pipedrive** Pipedrive is a sales CRM and pipeline management tool.](https://apiant.ai/connect/hubspot-to-pipedrive)
- [ **HubSpot to JIRA** Atlassian JIRA Cloud — issue tracking and project management.](https://apiant.ai/connect/hubspot-to-jira)

## More into Shopify

- [ **Salesforce to Shopify** Salesforce is a leading enterprise customer relationship management (CRM) platform.](https://apiant.ai/connect/salesforce-to-shopify)
- [ **Google Calendar to Shopify** Google Calendar is a time management tool providing scheduling features, event reminders, and integration...](https://apiant.ai/connect/google-calendar-to-shopify)
- [ **Google Drive to Shopify** Google Drive is a cloud storage solution for uploading, sharing, and collaborating on files across devices...](https://apiant.ai/connect/google-drive-to-shopify)
- [ **QuickBooks Online to Shopify** QuickBooks Online accounting — manage customers, invoices, bills, payments, vendors, expenses, and more via...](https://apiant.ai/connect/quickbooks-online-to-shopify)
- [ **Pipedrive to Shopify** Pipedrive is a sales CRM and pipeline management tool.](https://apiant.ai/connect/pipedrive-to-shopify)
- [ **ActiveCampaign to Shopify** ActiveCampaign is a marketing automation, email marketing, and CRM platform.](https://apiant.ai/connect/activecampaign-to-shopify)

Questions

## HubSpot and Shopify, answered

###

### Will a Shopify order create a duplicate contact in HubSpot?

No. The flow first runs Find contact by email in HubSpot and then uses Add or update contact, so an existing record is updated instead of duplicated. A new contact is created only when no match is found for that email address.

###

### Can a HubSpot deal reaching a stage change something in Shopify?

Yes. The Deal stage changed trigger in HubSpot can run Add tags to customer in Shopify, so the shopper record carries the tag you choose. Other Shopify actions such as Add or update customer can be used the same way.

###

### What can start an automation from HubSpot?

Any of HubSpot's 29 triggers in the catalog, including Deal stage changed, Form submitted, New associated object and New blog post. Describe the moment in plain language and your agent picks the right one.

###

### What can your agent do in Shopify when something happens in HubSpot?

Any of Shopify's 78 actions, including Add or update customer, Add tags to customer, Create Metafield Definition and Create Order with Calculated Tax. Your agent maps the data both ways and tests every scenario before it ships.

###

### Can it also run from Shopify to HubSpot?

Yes. When something happens in Shopify, your agent can act in HubSpot too. This page covers both directions: Shopify's triggers and HubSpot's actions are listed here as well.

###

### Do I have to build a connector for HubSpot or Shopify?

No. Both are in the catalog with their triggers and actions. You describe the automation; your agent builds it, tests every scenario and keeps it running.

###

### Can my AI client use HubSpot and Shopify without building an automation?

Yes. With your AI client connected to APIANT, ask it to do something in either app once and it runs that action on the spot. Ask for an automation and your agent builds it, tests every scenario and keeps it running. One connection covers both.

###

### What happens when something fails?

Your agent works that out for you. It plans the failure paths along with the happy path, then tests every scenario before it ships.

###

### Is there a free plan?

Yes. Every plan includes the agent, including free, and building from your own AI client spends no assistant credits.
