# Shopify app overview

Audience: Logistics Manager

How the Shopify app connects your store to Pyck

The Pyck Shopify app links a Shopify store to your warehouse. It copies your shop data into Pyck so the warehouse knows what to pick, and it lets Pyck report back what it shipped and what is on the shelf.

## The two directions

Everything the app does falls into one of two directions.

| Direction | What travels | When |
| --- | --- | --- |
| Shopify to Pyck | Products, customers and orders | Whenever the record changes in Shopify, and on demand for the whole catalog |
| Pyck to Shopify | Shipped orders with tracking, and stock counts if you switch that on | Whenever the warehouse reports a shipped order; stock on a timer or whenever Pyck reports a movement |

Shopify remains the shop and Pyck remains the warehouse; neither replaces the other.

### Shopify to Pyck

When you create or change a product, a customer or an order, Shopify tells the app, the app reads the current record from Shopify and writes it into Pyck. Products arrive as items your pickers can find, orders arrive as picking orders. A product variant with no SKU is never sent, because Pyck identifies stock by SKU. If only some of your Shopify locations are run through Pyck, you can limit orders to those locations; see [Only send orders from some locations](https://docs.pyck.cloud/latest/shopify/setup.md#only-send-orders-from-some-locations).

A new order is only sent once it is ready to ship: it is paid, Shopify validated its shipping address without any issue, and Shopify sees no fraud risk. Until then it is held back, and it goes to Pyck by itself as soon as Shopify reports it as clean. An order Pyck already has keeps receiving its updates. See [A new order is held back from Pyck](https://docs.pyck.cloud/latest/shopify/troubleshooting.md#a-new-order-is-held-back-from-pyck).

Everything that comes from Shopify is kept together in one field of the Pyck record, `shopify`, and replaced on every update. Fields your warehouse maintains in Pyck stay as they are. See [What a sync overwrites in Pyck](https://docs.pyck.cloud/latest/shopify/data-mapping.md).

You can also send everything at once. The **Sync now** button on the **Overview** page walks your whole store, which is how you bring an existing store over on day one. It first shows what it will send and where, and sends only once you choose **Send now**. See [Check what will be sent](https://docs.pyck.cloud/latest/shopify/setup.md#check-what-will-be-sent).

#### Limiting sync now to recent records

Before anything is sent, **Sync now** opens a confirmation that counts what will go. Its **Send records from** choice limits the run to **Last 7 days**, **Last 14 days**, **Last 30 days** or **Last 60 days**. It starts on **Everything**, which sends the whole store. A short window is useful when you connect a warehouse that only needs the recent orders, or when you catch up after an outage.

* **Orders** count by the date they were placed.
* **Products** and **customers** count by when they last changed in Shopify.

The counts in the confirmation change to match your choice, and the title names it, for example "Send the last 14 days to Pyck?". The order location filter from **Settings** still applies within the window. Orders Pyck already holds are updated as usual.

Without full order access, Shopify only lets the app read orders from the last 60 days. Older orders are not sent, even with **Everything** chosen, and the confirmation tells you so.

The window applies to that one run only and is not saved as a setting. Changes in Shopify keep syncing as they happen, however old the record. The result message, the **Overview** activity line (for example "Full sync · last 14 days · 120 sent") and the run's entry on the **Activity** page (for example "Last 14 days · Synced: 120, Failed: 0") all name the window that was used.

### Pyck to Shopify

When the warehouse has picked and packed an order, Pyck calls the app and the app marks the order fulfilled in Shopify, with the tracking number if there is one. The customer gets their shipping email from Shopify as usual.

If your warehouse records serial numbers, Pyck can also note which serial numbers went into each order line, and a **Serial numbers** card on the Shopify order page lists them. See [Serial numbers on the order page](https://docs.pyck.cloud/latest/shopify/serial-numbers.md).

Pyck can also drive your stock counts. This is off until you switch it on. See [Warehouse stock](https://docs.pyck.cloud/latest/shopify/stock.md) for how that works and what it overwrites.

## The overview page

Once setup is done, the app opens on **Overview**. It shows whether your store's data is reaching Pyck and anything that needs you. **Sync now** sits at the top right. It is greyed out while every warehouse is switched off, because it would send nothing.

* **Finish setting up Pyck** is the setup guide. It walks a new store through getting its warehouse ready, sending its catalog and, optionally, stock sync, and goes away once every step is done or skipped, or when you dismiss it. See [The setup guide on Overview](https://docs.pyck.cloud/latest/shopify/setup.md#the-setup-guide-on-overview).
* **The line at the top** says how things stand. When nothing needs you, it reads "Everything is reaching Pyck". When something does, it grows into a box with one row per item, each with a button that takes you to where you fix it, for example **Choose**, **Review and approve** or **Review metafields**. While the setup guide is getting its warehouse ready, the box leaves out the rows saying that this warehouse is switched off or waiting for its schema choice. The guide already says so, with the controls to fix it. With nothing else to say, the box is not shown. The headline says "Everything is reaching Pyck" only while production is switched on, setup is finished and nothing serious is open. Setup counts as finished once every step of the guide is done or skipped, or once the guide is dismissed after the catalog has been sent. Otherwise it counts what needs you, for example "One thing needs you", or reads "Nothing is being sent to Pyck" while every warehouse is switched off. Serious problems, such as every warehouse being switched off, appear as red banners above it.
* **Warehouses** lists each warehouse with its role, **Production** or **Test copy**. A warehouse that is switched on and working shows no badge. Otherwise it shows the same badge as on the **Warehouses** page: **Off**, **Choose schema** for a new warehouse waiting for the choice of its schema (a Pyck `DataType`), or **No API key**. The tile does not check Pyck, so it never shows **Ready** or **Not checked**; open the warehouse for a live check.
* **In Pyck** shows how many **Variants**, **Customers** and **Orders** have reached Pyck, with a bar under each that turns green when everything has arrived. The count reads, for example, "All 3,402", "1,204 of 1,210" or "0 of 26", and "None yet" for a kind your store has none of. A warehouse that also serves another store can hold more than this store sent it; that still reads "All". Variants without a SKU are counted in a note of their own, because Pyck can never hold them. The counts come from the production warehouse only, so with several warehouses its name appears next to the title and a note says the others are not counted. If the app cannot ask Pyck, the tile shows no counts. Instead it says why, for example "Could not count what is in Pyck: Pyck could not be reached.", with a link to **Warehouses**. Until your catalog has been sent, the tile shows no counts and reads "Nothing sent yet. Your catalog arrives after "Send everything now"." (or "Sync now" once the guide is gone): before that, the warehouse's totals could be another store's data, or data from an earlier setup.
* **Stock sync** shows whether stock sync is **On**, **Paused** or **Off**, and how: "Reads Pyck every hour" or "Pyck reports each change". It reads **Paused**, in orange, when you have chosen a mode but stock cannot sync because your production warehouse is switched off ("production is switched off — stock does not sync until you switch it back on.") or because there is no production warehouse ("No production warehouse — stock does not sync until you set one."). Only stock is paused: products, customers and orders still reach any test warehouse that is switched on. When it is on or paused, it shows **Locations paired** out of your active Shopify locations, and in the hourly mode **Last sync**, the latest run that finished successfully across all paired locations. While paused, these show what resumes once production is switched back on. See [Warehouse stock](https://docs.pyck.cloud/latest/shopify/stock.md).
* **Activity** lists the latest events, one line each. While the setup guide is shown, it appears only once the catalog has been sent. Each line has an icon for what the line is about: an order, a shipment, a product, a customer, a stock update, a full sync or setup. Pairing a Shopify location with a storage area, or removing that pairing, appears as, for example, "Main store paired with a storage area". A product variant's line names its SKU and product, for example "Item SHIRT-M of “Shirt” sent to Pyck". Each line ends in a badge: **Done**, **Failed**, **Partly done**, **Skipped** or **Waiting**. A line that failed, only partly went through or was skipped has a short reason under it, such as "Pyck could not be reached" or "No warehouse is switched on". Select the status badge or the reason to open that event's full details on the **Activity** page. See [Reasons on the Overview](https://docs.pyck.cloud/latest/shopify/troubleshooting.md#reasons-on-the-overview). Repeats of the same event are combined into one line, such as "×3 · last …". Skips with different reasons stay on separate lines.

At the foot of the page, **Help center** opens the **Help center** card under **Settings**, with links to these guides, the setup guide, test warehouses, troubleshooting and the support address. **Something looks wrong?** opens [When something looks wrong](https://docs.pyck.cloud/latest/shopify/troubleshooting.md), and **Contact support** writes to <support@pyck.io>.

## What a warehouse is

A **warehouse** is how the app shows one Pyck tenant your store syncs to. You set up your first one during [setup](https://docs.pyck.cloud/latest/shopify/setup.md), and it is called `production`, your live tenant.

A store can have several warehouses at once, and you manage them under **Warehouses**: the list shows each one with its role and status, and each has its own page for everything you can change about it. That is how you run a test or staging tenant alongside the live one, or in place of it before go-live: it receives a copy of your data so you can try things against real records, but it never ships an order and never changes your stock. Customer names, emails, phone numbers and street lines are replaced with made-up ones in those copies. Only one warehouse can be the production warehouse, and only that one is allowed to fulfil orders, write stock back and receive your customers' real details.

To run a test tenant before you go live, see [Running a test tenant before go-live](https://docs.pyck.cloud/latest/shopify/test-tenant.md).

Each warehouse has a short **label**, such as `production`, `stage` or `eu-prod`, and it is the warehouse's permanent name. Every switched-on warehouse receives every product, customer and order, except that a test order never reaches production. See [Sending data to several Pyck tenants](https://docs.pyck.cloud/latest/shopify/routing.md).

## Where to go next

* [Setup](https://docs.pyck.cloud/latest/shopify/setup.md): install the app and connect your first tenant.
* [What a sync overwrites in Pyck](https://docs.pyck.cloud/latest/shopify/data-mapping.md): which fields Shopify owns, which Pyck owns, and how files are handled.
* [Designing Pyck schemas for Shopify](https://docs.pyck.cloud/latest/shopify/schema-design.md): for developers: naming schema fields so the app fills them without setup.
* [Sending data to several Pyck tenants](https://docs.pyck.cloud/latest/shopify/routing.md): what each tenant receives, and which one may ship orders.
* [Running a test tenant before go-live](https://docs.pyck.cloud/latest/shopify/test-tenant.md): try Pyck on your real orders without shipping anything, then switch over.
* [Warehouse stock](https://docs.pyck.cloud/latest/shopify/stock.md): pairing locations, and letting Pyck own your counts.
* [Serial numbers on the order page](https://docs.pyck.cloud/latest/shopify/serial-numbers.md): showing the serial numbers Pyck shipped on each order.
* [When something looks wrong](https://docs.pyck.cloud/latest/shopify/troubleshooting.md): symptoms and what they mean.
