Skip to content

Shopify

Shopify connects your flow to your Shopify store. With a single component you can look up products, orders, customers, transactions and shipments; create products, orders and customers; change or delete them; and mark an order as shipped with its tracking number.

You choose what to do with two fields: Operation (the action) and Entity (what it acts on). The component only shows the fields that combination needs.

When to use it

  • Prepare a summary of the previous day’s orders every morning.
  • Add to the store the products that arrive in a supplier’s catalog.
  • Update a customer’s details when they change in another tool.
  • Mark an order as shipped and notify the customer with the tracking number.
  • Give a customer service agent access to orders so it can tell people where their shipment is.

Configuration

The component needs a Shopify API credential with your store’s address, the Shopify app’s client ID and secret key, and the API version. See Credentials.

FieldWhat it does
Credential (required)Your Shopify store’s credential.
OperationThe action: Get, Create, Update or Delete. Default: Get.
EntityWhat it acts on: Product, Order, Customer, Transaction (payment transaction) or Fulfillment (shipment). Default: Product.
Entity IDThe item’s identifier in Shopify. It doesn’t appear when creating. Required to update and delete. For Transaction and Fulfillment, it is the order identifier.

What you can do with each entity

EntityGetCreateUpdateDelete
ProductYesYesYesYes
OrderYesYesYesYes
CustomerYesYesYesYes
TransactionYes, those of an orderNoNoNo
FulfillmentYes, those of an orderYes: marks the order’s pending items as shippedNoNo

Looking up (Get)

FieldWhat it does
Entity IDWhen filled in, only that item is returned. When empty, a list is returned.
SearchOptional. A text to filter the list: only items containing it are shown.
LimitAdvanced option. The maximum number of items in the list. Default: 10.
Order ByAdvanced option. The field the list is sorted by. Put a hyphen in front for reverse order, for example -created_at. Default: created_at (creation date).

Creating or updating a product

FieldWhat it does
Product TitleThe product name. Required when creating.
Include Additional FieldsAdvanced option. Turn it on to add more product details.
Additional FieldsWhich extra details you want to fill in. Each one shows its own field: Body HTML (description, formatting allowed), Product Type, Vendor, Tags, Image, Price, Handle (the product’s address in the store), Options (such as size or color), Published At, Published Scope and Template Suffix.

With Options you set how many options the product has and, for each one, its name (Option Name) and its values separated by commas (Option Value). Shopify creates one variant per combination. In Product Price you can give one price for all variants or one per variant, separated by commas.

Creating or updating an order

FieldWhat it does
Customer IDThe order’s customer. Required when creating.
Number of Line ItemsHow many lines the order has. For each one, Product ID, Variant ID, Quantity and Grams appear. Default: 1.
Include Additional FieldsAdvanced option. Turn it on to add more order details.
Select Additional FieldsWhich extra details you want to fill in: Billing Address, Discount Codes, Email, Fulfillment Status, Inventory Behavior, Note, Send Fulfillment Receipt and Send Receipt (send confirmations to the customer), Shipping Address, Source Name (order source), Tags and Test (test order).

Creating or updating a customer

First Name, Last Name, Customer Email, Customer Phone, Customer Tags (comma-separated) and Customer Note. When creating, fill in at least one.

Recording a shipment (Create with Fulfillment)

FieldWhat it does
Entity IDThe identifier of the order being shipped.
Tracking NumberOptional. The shipment’s tracking number.
Tracking CompanyOptional. The carrier.
Notify CustomerSends the customer Shopify’s shipping notification. Off by default.

Output

The Result output returns what Shopify sends back: the items looked up, or the item created or updated with all its details. When deleting, it returns a confirmation message. If the requested item doesn’t exist, it returns nothing.

Connect it to an agent, to Parse Data or to a spreadsheet. The component can also be used as a tool by an agent, which decides what to look up or change based on the conversation.

Example

A shop wants to notify customers when their order ships:

  1. The warehouse records each order and its tracking number in a spreadsheet.
  2. Add Shopify and choose Create in Operation and Fulfillment in Entity.
  3. Connect the order identifier to Entity ID and the number to Tracking Number, enter the carrier in Tracking Company and turn on Notify Customer.
  4. Shopify marks the order as shipped and the customer receives the notification with the tracking number.

Good practices

  • Try the operations that create, change or delete with a test product or customer before using them with real data.
  • Deleting in Shopify cannot be undone from NappAI.
  • Shopify Webhook: starts the flow when something happens in your Shopify store.
  • WooCommerce: the same idea for WooCommerce stores.