# Zapier

Zapier is a workflow automation platform that has connections to thousands of applications. With Zapier you can create workflows that are triggered by an action in one app and then perform an action in another app.&#x20;

The Bunny app in Zapier lets you perform the following actions:&#x20;

* Creating a new subscription in Bunny

### How to use Bunny in Zapier

The first step is to search for Bunny in Zapier and then click the **Add Connection** button to install the Bunny app.

<figure><img src="https://1350849115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbI5ndB_5fDbdrLXs5c%2Fuploads%2FXFn3EzLiXcXkQPowWR1l%2Fbunny-zap.png?alt=media&#x26;token=08f45f8b-6a86-450a-b3f0-42b0a2af8bac" alt=""><figcaption></figcaption></figure>

Now you can create a new Zap and select Bunny as the Action.&#x20;

Set the action Event to **Create subscription.**

#### Connect a Bunny account

To connect a Bunny account you must first [create an API client in Bunny](https://docs.bunny.com/guide/tour/access-control/api-clients).&#x20;

The API client will need the **standard:read** and **standard:write** scopes added to it.&#x20;

It must also have the **Client credentials grant** enabled.&#x20;

With those settings in place you can save the API client and a **Client ID** and **Client Secret** will be issued.&#x20;

<figure><img src="https://1350849115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbI5ndB_5fDbdrLXs5c%2Fuploads%2FSeqTekVYMHUHJOMeaquO%2Fzap-account.png?alt=media&#x26;token=698b9cc1-faee-42d0-9f5f-97264cc44480" alt=""><figcaption></figcaption></figure>

Connect the Bunny account in Zapier by copying the **Client ID** and **Client Secret** into the fields presented in the Zapier account connection popup window.  \
\
Set the **Base Url** to your Bunny instance url. e.g. <https://superdesk.bunny.com>

#### Mapping fields to create a subscription

In the configure tab you can map fields from a previous trigger or step in your Zap into Bunny.&#x20;

All fields are required and the most important field is the **Price list code** which you can obtain from your product catalog in Bunny.&#x20;

Price List Code is typically entered as text because you normally only have 1 type of subscription that you want to create. For example a trial subscription.&#x20;

The remaining fields will be mapped from a form or whatever else you have connected in Zapier.&#x20;

<figure><img src="https://1350849115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbI5ndB_5fDbdrLXs5c%2Fuploads%2Fj9oNnYSZMQskxtn48iQJ%2Fzap-fields.png?alt=media&#x26;token=3bde2b7f-d48c-440a-9ec4-b2ed852a7ffd" alt=""><figcaption></figcaption></figure>
