Connect your Shopify store
The Shopify integration brings your customers and your paid orders into Replifier. Customers become contacts and every paid order is recorded as a conversion event, so you can see which campaigns sell. This guide explains the permissions it asks for, what is synced and what is not, how webhooks work and what the shopify_* errors mean.
Permissions the app asks for
Section titled “Permissions the app asks for”Replifier connects as a Shopify app with OAuth authorization, using version 2025-10 of the Shopify API and only these read permissions:
| Permission | What it uses it for |
|---|---|
read_customers |
Read your customers (email and name). |
read_orders |
Read your orders to record the paid ones. |
Replifier cannot change products, orders, customers or prices in your store. The token Shopify issues is stored encrypted.
Connect the store
Section titled “Connect the store”- In the app, open the brand’s Shopify integration and enter your store address:
my-store.myshopify.com(it also accepts justmy-store). This is the.myshopify.comaddress, not your own domain; you can find it in the Shopify admin, under Settings. - Replifier takes you to Shopify so you can authorize the app. You have 10 minutes to finish; if it expires, start again.
- Shopify sends you back to the app with the store connected. Replifier registers the webhooks and starts syncing your customers and paid orders in the background.
With the API it is the same process: POST /v1/brands/{brand}/shopify/connect with {"shop": "my-store"} and the captures.write permission returns the authorizeUrl that the browser must open. Each brand connects one store, and a store can belong to only one brand.
What is synced and what is not
Section titled “What is synced and what is not”Customers. Every customer with a valid email becomes a contact of the brand, with email, first name and last name. If the contact already exists, only the missing data is filled in. A customer without a usable email is skipped.
What does not travel:
- Marketing consent. Shopify is not proof of email consent in Replifier: contacts arrive with no lists and no consent, and you decide how to subscribe them. An email that is already suppressed in the brand keeps its status.
- Phone numbers, addresses, catalog products and refunds or cancellations after a purchase.
Orders. Every paid order is recorded as the custom event shopify.order_paid, with its total as the value and its currency, marked as a conversion. That is how Replifier attributes it to the campaign that drove it. The event carries:
shop,orderId,orderNameanditemCount;- up to 20 products with
sku,title,quantityandprice; - up to 5 discount codes.
An order with no email, total or currency is not recorded. Each order counts once: the webhook and the initial sync share the same key (order:<id>).
Webhooks
Section titled “Webhooks”When you connect, Replifier subscribes the store to these topics, delivered to https://api.replifier.com/shopify/webhooks:
| Topic | What Replifier does |
|---|---|
orders/paid |
Records the shopify.order_paid event. |
customers/create and customers/update |
Creates or completes the contact. |
app/uninstalled |
Disconnects the store and deletes the encrypted token. |
Every delivery carries the X-Shopify-Hmac-Sha256 header: the HMAC-SHA256 of the raw body, in base64, signed with the app secret. Replifier verifies it in constant time before reading the body and answers 401 with shopify_unauthorized if it does not match. An unknown or already disconnected store with a valid signature gets 200 so Shopify stops retrying. The body is capped at 2 MB and, if a store sends too many requests in a row, the response is 429 with Retry-After: 60.
Initial sync
Section titled “Initial sync”When you connect, Replifier first brings in the customers and then the paid orders, in steps of up to 4 pages of 250 records. The cron advances pending steps; to speed them up, use POST /v1/shopify/{integration}/sync and repeat it until the response has done: true. If Shopify fails halfway, the progress is kept and the next run continues where it stopped.
Disconnect
Section titled “Disconnect”DELETE /v1/shopify/{integration} (or the button in the app) deletes the webhooks, revokes the token in Shopify and removes the encrypted token. The contacts and events you already received are kept. If the response has revoked: false, Shopify did not answer: the token was already deleted in Replifier, but uninstall the app from the Shopify admin to close the access.
shopify_* errors
Section titled “shopify_* errors”Each error has its own page in the error catalog:
| Code | When it happens | What to do |
|---|---|---|
shopify_shop_invalid |
The address does not look like your-store.myshopify.com (400). |
Enter your store’s .myshopify.com address. |
shopify_already_connected |
The brand already has a store connected (409). | Disconnect the current one before connecting another. |
shopify_unauthorized |
The signature, state or time of the request is not valid (401). | Start the connection again from the app; if you did not start it, ignore the notice. |
shopify_unavailable |
The Shopify app is not configured on the service or Shopify did not answer (503). | Try again later; if it persists, contact support. |
If the app shows reason=shop_in_use when you return from Shopify, that store is already connected to another brand: disconnect it there first.
Done when
Section titled “Done when”The app shows your Shopify store as connected, the counters of synced customers and orders go up, and a paid test order appears as the shopify.order_paid event in your custom events.