Skip to content

Connect Tiendanube with Replifier

Replifier has no native Tiendanube integration. You connect it through Zapier or Make, which talk to the public Replifier API with an API key. This guide lists what you can automate and which endpoints are behind each step. Typical use: send your store customers and paid orders to Replifier as contacts and events, and stop messaging those who unsubscribe.

  1. In Replifier, create an API key with only the scopes contacts.read and contacts.write. Add webhooks.manage if you want the instant triggers from Replifier (see below). Copy the key when you create it: it starts with rpf_live_.
  2. Copy the ID of the brand (it starts with brd_). If you limit the key to one brand, a request for another brand returns 404.
  3. Make sure you can sign in to Zapier or Make and to Tiendanube.

The Replifier app asks for the key and the brand ID, and checks them by reading your lists. If you do not see the app in the directory yet, use the generic step instead: Webhooks by Zapier (Custom Request) or the HTTP module in Make, with the base address https://api.replifier.com and the header Authorization: Bearer rpf_live_…. If Zapier or Make has no Tiendanube connector for your account, register the webhooks order/paid and customer/created through the Tiendanube API, pointing at a Catch Hook (Webhooks by Zapier) or a Custom webhook (Make). The notice carries only identifiers, so add a step that reads the order or customer from Tiendanube.

Use a Tiendanube trigger as the start and one of these Replifier steps as the action. Two common flows:

  • When a customer is created, create or update the contact in Replifier and, if you want, subscribe it to a list.
  • When an order is paid, send a custom event such as tiendanube.order_paid (a name you choose) with the total and the currency.
Action in Zapier or Make Replifier endpoint
Create contact POST /v1/brands/{brand}/contacts
Find contact GET /v1/brands/{brand}/contacts/lookup
Update contact PATCH /v1/contacts/{contact}
Subscribe to a list POST /v1/lists/{list}/members
Remove from a list DELETE /v1/lists/{list}/members/{contact}
Send a custom event POST /v1/brands/{brand}/events

Subscribing a contact to a list is recorded in the consent log as done by the API with your key (source: api). Whoever connects the key vouches that the person gave their consent.

Replifier can notify Zapier or Make the moment something happens, through REST hooks. The Zap or scenario subscribes by itself when you turn it on and unsubscribes when you turn it off. The triggers available today are contact unsubscribed (contact.unsubscribed) and campaign sent (campaign.sent). A typical use:

  • When someone unsubscribes in Replifier (contact.unsubscribed), store that flag on the customer in your own sheet or tool so you stop marketing to them.

If you need to subscribe by hand, for example from Webhooks by Zapier, call POST /v1/hooks with the event and the address that will receive it. The brandId is required only when the key is not limited to one brand:

Terminal window
curl -X POST https://api.replifier.com/v1/hooks \
-H "Authorization: Bearer $REPLIFIER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"event":"contact.unsubscribed","targetUrl":"https://hooks.zapier.com/…","brandId":"brd_…"}'

The response gives the hook ID. Keep it: DELETE /v1/hooks/{hook} unsubscribes it (204).

{ "id": "whk_…", "brandId": "brd_…", "event": "contact.unsubscribed", "targetUrl": "https://hooks.zapier.com/…" }

Replifier signs every delivery with the X-Replifier-Signature header. It does not return a signing secret, so treat the address you registered as secret. To build the next steps, GET /v1/hooks/samples/{event} returns a sample payload.

The accepted events are message.sent, message.failed, contact.created, contact.updated, contact.unsubscribed, campaign.started, campaign.sent, campaign.failed, flow.email_sent; WhatsApp: whatsapp.message.received, whatsapp.message.status, whatsapp.template.status; and engagement: message.received, message.delivered, message.read, message.replied, link.clicked, conversion.recorded. Call GET /v1/hooks/samples/{event} to get the exact payload of each one. As an action in your Zap or scenario you can also enroll a contact in an active flow with POST /v1/brands/{brand}/flows/{flow}/enrollments (scope flows.write).

Code When it happens What to do
401 The key is missing, mistyped or revoked. Paste the full key again in the connection.
403 api_key_scope The key lacks a needed scope, for example webhooks.manage for hooks. Create a new key with the scope and update the connection.
404 The key is limited to another brand, or the hook belongs to another organization. Use the key and brand ID of the same brand.
400 validation_failed The address you gave to POST /v1/hooks is not valid or is not public. Use the https address that Zapier or Make gives you.

A test Zap or scenario creates the contact in the brand from Tiendanube, and a trigger you turn on shows its sample payload and receives a real delivery.