# Connect Zapier or Make (/merchants/shop-apps)

"Connect an app", in your shop's settings, sends an event to a Zapier or Make webhook each time
someone pays in your shop, opens the link to a free product, or a shop subscription ends. Your Zap or
scenario then does the rest: for example, it adds the buyer to your course or membership tool, or takes
them out when their subscription ends. For Telegram groups and Discord roles you need no app: see
[Community access](/merchants/shop-communities).

![Shop settings, Connect an app before it is connected: the two steps, the Webhook URL field, the Connect button, and What Fianto sends with purchase.paid, purchase.claimed and subscription.ended.](/screenshots/shop/settings-app.webp)

## Before you start [#before-you-start]

* You have a shop. See [Create your shop](/merchants/shop-create).
* In Zapier, a Zap that starts with a “Webhooks by Zapier → Catch Hook” trigger, or in Make, a scenario
  that starts with a “Custom webhook”.
* Your password, and your two-factor code if two-factor is on.

## Steps [#steps]

**Step 1.**

### Copy the webhook URL [#copy-the-webhook-url]

In Zapier, add a “Webhooks by Zapier → Catch Hook” trigger (or in Make, a “Custom webhook”), and copy
its URL. It starts with `https://hooks.zapier.com/` or, for Make, `https://hook.make.com/` or a regional
host such as `https://hook.eu1.make.com/`.

**Step 2.**

### Paste it in your shop's settings [#paste-it-in-your-shops-settings]

On the Shop page, click **Settings**. Under "Connect an app" ("Open access automatically in your course
or membership tool."), paste the URL into "Webhook URL" and click **Connect**. Fianto asks for your
password (and a fresh code when two-factor is on): "Connecting an app that receives every buyer’s email
needs your password and a fresh code." The panel then says "Connected to Zapier" (or Make), tagged
"Active".

**Step 3.**

### Send a test [#send-a-test]

Click **Send a test**: Fianto sends a sample `purchase.paid` event. The panel says "Delivered", or why it
did not arrive, for example "Your app did not answer in time. Try again in a minute." Use the sample to
map the fields in your Zap or scenario.

**Step 4.**

### Ask for what your app needs [#ask-for-what-your-app-needs]

Your app usually needs the buyer's email. For each product it gives access to, set **Buyer email** to
"Required" under "After a purchase" (see [Products and delivery](/merchants/shop-products)). On a
membership the editor reminds you: "Your connected app needs the buyer’s email to give access. Set Buyer
email to Required." Usernames you ask for under "Also ask for" travel with the event too.

## What Fianto sends [#what-fianto-sends]

| Event                | Sent when                                |
| -------------------- | ---------------------------------------- |
| `purchase.paid`      | someone pays                             |
| `purchase.claimed`   | someone opens the link to a free product |
| `subscription.ended` | a subscription ends                      |

"What’s in it?" lists the fields: Shop, Product, Price, Amount paid, Buyer email, Order id, Subscription
id, Interval, Paid at (or ended at), Claimed at, plus the usernames the buyer gave. **Amount paid** is
the payment's own figure in its own currency: US dollars, with no Fianto fee, for a card sale. These events go only
to the connected app: they are not the webhooks your developers receive on the Shop application (see
[Shop sales in your integration](/developers/shop-sales)).

## Replace or disconnect [#replace-or-disconnect]

**Replace URL** saves a new webhook URL. **Disconnect** asks "Disconnect your app?": "Fianto stops sending
purchases to it. Buyers who already have access keep it." Both ask for your password again.

## Check it worked [#check-it-worked]

> "Connect an app" shows "Connected to Zapier" (or Make) and "Active", **Send a test** says "Delivered",
> and the sample shows up in your Zap's or scenario's history.

## Troubleshooting [#troubleshooting]

| You see | Why | Fix |
|---|---|---|
| "Paste the webhook URL from Zapier (https://hooks.zapier.com/…) or Make (https://hook.eu1.make.com/…)." | The URL is not a Zapier or Make webhook address. | Copy the URL from the Catch Hook or Custom webhook step again. |
| "Your app answered with an error (…). Check that the Zap or scenario is on." | Zapier or Make refused the event. | Turn the Zap or scenario on, then send a test again. |
| "Paused: your app stopped accepting events. Check it, then replace the URL to start again." | Your app kept refusing events, so Fianto stopped sending them. | Fix the Zap or scenario, then click Replace URL and save its URL again. |

## See also [#see-also]

- [Community access](/merchants/shop-communities): Telegram groups and Discord roles, with no app needed.

- [Products and delivery](/merchants/shop-products): Buyer email, usernames and what each buyer gets.

- [Publish and manage](/merchants/shop-publish): Your shop's settings page.