> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/integrations/integration-automation-tools/zapier.md).

# Zapier

Connect Anedot to Zapier to send donations, form submissions, and refunds to thousands of apps, set up Zaps, manage connections, and map payload fields.

**Zapier** is an automation platform that connects your fundraising account to more than 9,000 apps through workflows called Zaps, which start when a donation is completed, a form is submitted on an Action Page, or a donation is refunded or voided. You start the connection in **Settings > Integrations**. This article covers connecting Anedot to Zapier, using Webhooks by Zapier, data relays, finding your data in Zapier, field mapping, and payload examples.

## Before You Begin

You'll need:

* A Zapier account.
* **Integrations: Edit** permissions. Integrations: Edit permissions also require **Action Pages: View** and **Integrations: View** permissions. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).
* Your Anedot login email address. It isn't case-sensitive.
* A user role that isn't limited by a Team. See [Teams](https://docs.anedot.com/settings/access/teams.md).

{% hint style="warning" %}
If the Anedot user connected to Zapier is assigned to a Team, Zapier shows "Unable to create subscription." when you turn on a Zap with an Anedot trigger. Connect a user who isn't assigned to a Team, or remove the user's Team assignment in **Settings > Users**.
{% endhint %}

## Connect Anedot to Zapier

Each Zap uses the email address and API token of the user who connected it.

### Step 1: Set Up the Connection in Anedot

To get your API token:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Select **Zapier**. It's listed under the **Outgoing** category.
4. Click **Copy** next to the **API token** field.
5. Confirm that "Copied API token." appears.

   ![Anedot Zapier connection: API Token in connection drawer](https://1576281756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuNikYKWprVDzRjF4GER%2Fuploads%2Fdtge5e6cRr06OlkflwcT%2Fzapier-anedot-setup.png?alt=media)
6. (Optional) Sign in to Zapier in the builder below the token to browse Zap templates and see and manage your existing Zaps.

Your API token is copied and ready to paste when Zapier asks you to connect your Anedot account.

{% hint style="info" %}
The Zapier panel has no form to save. The API token is your own personal API token, not the account API key shown in the **API Key** section of Settings > Integrations.
{% endhint %}

### Step 2: Create a Zap in Zapier

To create a Zap with an Anedot trigger:

1. In Zapier, click **+ Create** in the left sidebar.
2. Select **Zap workflows**. The Zap editor opens in a new tab or window.
3. Select the **Trigger** step.
4. Search for and select **Anedot**. The right sidebar opens to the **Setup** tab.
5. Click the **Trigger event** field and select one of these triggers:

   * **AP Donation Completed**
   * **Submission Created**
   * **Donation Refunded/Voided**

   ![Zapier: Create Zap with Anedot trigger events](https://1576281756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuNikYKWprVDzRjF4GER%2Fuploads%2FDUxvzZiCaDfUGA6QY3Md%2Fzapier-create-zap.png?alt=media)
6. In the **Account** field, click **Sign in** if you're connecting Anedot for the first time. If you've connected before, click **Select** to choose an existing account, or click **+ Connect a new account**.
7. In the window that opens, enter your Anedot login email address and the API token you copied, then follow the prompts to allow Zapier to access your Anedot account.

   ![Zapier: Allow Zapier to access your Anedot account](https://1576281756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuNikYKWprVDzRjF4GER%2Fuploads%2FPbP7EH8OihDtEbBAK5G2%2Fzapier-trigger.png?alt=media)
8. Select the **Configure** tab.
9. Add your **Account UID**. When you're signed in to Anedot, your Account UID is the part of the URL right after `/accounts/`, for example `/accounts/<Account UID>/settings/integrations`. It's 21 characters long.
10. (Optional) Enter an **Action Page ID** to limit the Zap to one Action Page. If this field is empty, the Zap includes all Action Pages.

    ![Zapier: Anedot trigger Account UID and Action Page ID](https://1576281756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuNikYKWprVDzRjF4GER%2Fuploads%2FHBCyNpOj7NCFb4kaeWtw%2Fzapier-action.png?alt=media)

Your Anedot trigger is set up and ready to test.

{% hint style="info" %}
If no window opens, turn off your pop-up blocker and try again.
{% endhint %}

### Step 3: Test and Publish Your Zap

To finish the Zap:

1. Select the **Test** tab.
2. Click **Test trigger**.
3. Review and select a record.
4. Click **Continue with selected record**.
5. Select the **Action** step.
6. Search for and select the app you want to send data to.
7. Choose the **Action event**.
8. Connect the **Account** for that app.
9. Map fields from the Anedot trigger to the action. See [Field Mapping](https://docs.anedot.com/integrations/integration-automation-tools/zapier.md#field-mapping).
10. Click **Publish** in the upper right.

Your Zap turns on, and a Zapier connection appears in your **Settings > Integrations** list named "Zapier - \[your email address]". When the Zap is limited to one Action Page, the name also includes ": \[Action Page name] - \[Action Page ID]".

{% hint style="info" %}
A Zap only triggers on new data that occurs after it's published. You can see its activity in **Zap History** in Zapier.
{% endhint %}

## Use Webhooks by Zapier Instead

Need an event or field the Anedot triggers don't include? Connect your Zap to an Anedot Webhook instead. Webhooks offer every Webhook event, such as **Donation partially refunded**, **Donation chargeback**, and **Commitment created**, and the full donation payload.

### Step 1: Copy the Webhook URL in Zapier

To get a webhook URL:

1. In the Zap editor, click the **Trigger** step.
2. Search for and select **Webhooks by Zapier**.
3. Click the **Event** dropdown and select **Catch Hook**.
4. Click **Continue**.
5. (Optional) Enter a **Pick Off A Child Key**.
6. Click **Continue**.
7. In the **Test** tab, click **Copy** next to the webhook URL.

Your Zapier webhook URL is copied. It starts with <https://hooks.zapier.com>, which Anedot accepts as a Webhook URL.

### Step 2: Add a Webhook in Anedot

To send events to the Zapier URL:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Select **Webhook**.
4. Choose the Action Page scope.
5. Enter a **Name**.
6. Paste the Zapier URL into **Webhook URL**.
7. Leave **Integration enabled** checked.
8. Choose the events you want to send.
9. Click **Create integration**.

Anedot sends the events you chose to your Zap. For full setup details, see [Connect Anedot to a Webhook](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#connect-anedot-to-a-webhook).

### Step 3: Test the Trigger in Zapier

To pull in your webhook data:

1. After Anedot sends data to the URL, return to the **Test** tab in Zapier.
2. Click **Test trigger**.

Zapier separates each field in the webhook data so you can map it in your action.

## Data Relays

### What Each Trigger Sends

| Trigger                      | Event                                    | When It Triggers                       | What It Sends                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------------------- | ---------------------------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AP Donation Completed**    | `donation_completed`                     | An Action Page donation is completed.  | A donation payload with 52 fields, including account, submission ID, donation details (card, fund, fees, products), amounts, frequency, Action Page, donor name, contact and address, employment, IP address, referrer, source code, custom fields, consent, commitment, date, and status. See [Field Mapping](https://docs.anedot.com/integrations/integration-automation-tools/zapier.md#field-mapping). |
| **Submission Created**       | `submission_created`                     | A form is submitted on an Action Page. | The standard submission payload, the same as Webhooks, including a `donations` list.                                                                                                                                                                                                                                                                                                                       |
| **Donation Refunded/Voided** | `donation_refunded` or `donation_voided` | A donation is refunded or voided.      | The standard donation payload, the same as Webhooks, with every donation field. `event_amount` and `net_amount` are negative.                                                                                                                                                                                                                                                                              |

All three triggers start a Zap instantly.

{% hint style="info" %}
Submission Created and Donation Refunded/Voided send the standard Webhook payload, which also has UTM fields, `mobile_phone`, `organization`, `bitcoin_address`, `event`, and `event_tickets`. To receive these fields for completed donations, use Webhooks by Zapier with an Anedot Webhook. See [Use Webhooks by Zapier Instead](https://docs.anedot.com/integrations/integration-automation-tools/zapier.md#use-webhooks-by-zapier-instead).
{% endhint %}

### Delivery And Retries

Anedot sends each event to your Zap as an HTTPS POST with a JSON body that has two keys, `event` and `payload`. Requests use the same headers and signature as Webhooks. See [Verify Webhook Requests](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#verify-webhook-requests).

* **Delivered**: A request counts as delivered when Zapier responds with a 2xx status.
* **Retries**: Failed requests are retried automatically after 1 minute, then 2, then 3, adding a minute each time. See [Retries](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#retries).
* **Stopped sending**: Anedot stops sending after 1,000 failed attempts in a row, or after 10 if the endpoint returns 404 or can't be reached. Any successful delivery resets the count. The count also resets every Sunday at 1:00 AM Central Time for connections that are still sending. See [When a Webhook Stops Sending](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#when-a-webhook-stops-sending).
* **Failure emails**: Users with the **Integration sync failed** notification turned on get an email when a request fails. See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).
* **Request log**: Every live request is logged in **Settings > Integrations > Integration Requests** with its status, the request sent, and Zapier's response. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

When a Zapier connection stops sending after too many failed attempts, Anedot emails Owners, Super Admins, Admins, and users who have **Integrations: Edit permissions**. This email doesn't depend on notification settings, and it's separate from the **Integration sync failed** email. The subject is "Anedot \[connection name] Webhook Deactivated." The connection name is set when the Zap is created, such as "Zapier - " followed by your Zapier account email. If the Zap is limited to one Action Page, the name also includes the page name and page ID. The email names the connection, the account, and the destination host, asks you to review the errors under **Integrations**, and lists <help@anedot.com>.

A stopped connection can still show as enabled in the Integrations list, with **Enabled** checked.

If your Zapier connection stops sending after too many failed requests, contact our Support team at <help@anedot.com>. After the connection is sending again, use **Push unsent** to send the events you missed.

### Manage A Zapier Connection

Each Zapier row in **Settings > Integrations** has **Edit**, **Push unsent**, **Test**, and **Delete** buttons. **Test**, **Push unsent**, and **Delete** need Integrations: Edit permissions. To change what a Zap does, edit the Zap in Zapier.

To send a test request:

1. Go to **Settings > Integrations**.
2. Click **Test** in the Zapier row.

Anedot shows "Test webhook sent." The test uses the first matching record in your fundraising account or built-in sample data. If the Zap is on, the test request runs the Zap like a live event.

To resend events the Zap missed, click **Push unsent** in the Zapier row and choose a date range of up to 31 days within the last 12 months. Pushed events can arrive out of order. After a push, wait about five minutes before starting another one. See [Push Unsent](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent).

To delete a Zapier connection:

1. Go to **Settings > Integrations**.
2. Click **Delete** in the Zapier row.
3. Click **OK** when asked "Delete this integration?"

Anedot stops sending to that Zap right away, including any failed events waiting to be retried.

{% hint style="warning" %}
Deleting the integration in Anedot doesn't remove the Zap. Turn off or delete the Zap in Zapier too.
{% endhint %}

When you turn off or delete a Zap in Zapier, Zapier removes its connection and Anedot deletes the matching Zapier integration from your **Settings > Integrations** list.

## Find Your Data in Zapier

When you map fields in the Zap editor, use the search tool to find Anedot fields. Nested payload fields appear with double underscores, for example `payload__email`, `payload__donation__card_type`, or `payload__donations__fund__name`.

If a field isn't in the field list, type it in double curly brackets with the double-underscore path, for example `{{payload__donation__fund__name}}`.

![Zapier: manual field entry example with payload path](https://1576281756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQuNikYKWprVDzRjF4GER%2Fuploads%2FSMCyo2IZLBdjGeFpCubP%2Fzapier-data-relays.png?alt=media)

When you click **Test trigger**, Anedot returns up to two recent records from your account. If your account has no records, or your access is limited by a Team, Zapier shows fixed sample data instead.

{% hint style="info" %}
Test records can differ from live data. Check the request in **Settings > Integrations > Integration Requests** to see exactly what Anedot sent.
{% endhint %}

## Field Mapping

These tables list the Zapier field name for each payload field. For full field definitions, see [Field Mapping](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#field-mapping) in Webhooks (API).

{% hint style="info" %}
All plain values are sent as strings, and true or false values are sent as "true" or "false". Dates such as `created_at` are in UTC, and fields ending in `_iso8601` use ISO 8601 format.
{% endhint %}

### AP Donation Completed and Donation Refunded/Voided

Donation payloads have a single `donation` object, so nested donation fields use `payload__donation__`.

| Zapier Field                                       | Description                                                                                                   | Included In                   |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `event`                                            | Event name: `donation_completed`, `donation_refunded`, or `donation_voided`                                   | All donation triggers         |
| `payload__account_name`                            | Fundraising account name                                                                                      | All donation triggers         |
| `payload__account_uid`                             | Account UID                                                                                                   | All donation triggers         |
| `payload__submission_id`                           | ID of the submission the donation belongs to                                                                  | All donation triggers         |
| `payload__donation__id`                            | Donation ID                                                                                                   | All donation triggers         |
| `payload__donation__card_last_digits`              | Last digits of the card                                                                                       | All donation triggers         |
| `payload__donation__card_type`                     | Card type, such as visa                                                                                       | All donation triggers         |
| `payload__donation__credit_card_expiration`        | Card expiration date                                                                                          | All donation triggers         |
| `payload__donation__donation_project`              | Donation project                                                                                              | All donation triggers         |
| `payload__donation__products__name`                | Product name                                                                                                  | All donation triggers         |
| `payload__donation__products__internal_identifier` | Product internal identifier                                                                                   | All donation triggers         |
| `payload__donation__fees__anedot_fees__amount`     | Anedot fee amount                                                                                             | All donation triggers         |
| `payload__donation__fees__vendor_fees`             | Vendor fees                                                                                                   | All donation triggers         |
| `payload__donation__fund__id`                      | Fund ID                                                                                                       | All donation triggers         |
| `payload__donation__fund__identifier`              | Fund identifier                                                                                               | All donation triggers         |
| `payload__donation__fund__name`                    | Fund name                                                                                                     | All donation triggers         |
| `payload__origin`                                  | Donation origin, such as hosted                                                                               | All donation triggers         |
| `payload__commitment_uid`                          | Commitment ID, empty for one-time donations                                                                   | All donation triggers         |
| `payload__event_amount`                            | Amount for this event, negative for refunds and voids                                                         | All donation triggers         |
| `payload__amount_in_dollars`                       | Donation amount in dollars                                                                                    | All donation triggers         |
| `payload__net_amount`                              | Net amount after fees, negative for refunds and voids                                                         | All donation triggers         |
| `payload__frequency`                               | Donation frequency, such as once                                                                              | All donation triggers         |
| `payload__action_page_id`                          | Action Page ID                                                                                                | All donation triggers         |
| `payload__action_page_name`                        | Action Page name                                                                                              | All donation triggers         |
| `payload__donor_profile_id`                        | Donor profile ID                                                                                              | All donation triggers         |
| `payload__payment_method_id`                       | Payment method ID                                                                                             | All donation triggers         |
| `payload__created_at`                              | Date created, in UTC                                                                                          | All donation triggers         |
| `payload__created_at_iso8601`                      | Date created, in ISO 8601                                                                                     | All donation triggers         |
| `payload__updated_at`                              | Date updated, in UTC                                                                                          | All donation triggers         |
| `payload__updated_at_iso8601`                      | Date updated, in ISO 8601                                                                                     | All donation triggers         |
| `payload__address_line_1`                          | Address line 1                                                                                                | All donation triggers         |
| `payload__address_line_2`                          | Address line 2                                                                                                | All donation triggers         |
| `payload__address_city`                            | City                                                                                                          | All donation triggers         |
| `payload__address_region`                          | State or region                                                                                               | All donation triggers         |
| `payload__address_postal_code`                     | Postal code                                                                                                   | All donation triggers         |
| `payload__address_country`                         | Country                                                                                                       | All donation triggers         |
| `payload__email`                                   | Donor email address                                                                                           | All donation triggers         |
| `payload__phone`                                   | Donor phone number                                                                                            | All donation triggers         |
| `payload__first_name`                              | Donor first name                                                                                              | All donation triggers         |
| `payload__middle_name`                             | Donor middle name                                                                                             | All donation triggers         |
| `payload__last_name`                               | Donor last name                                                                                               | All donation triggers         |
| `payload__title`                                   | Donor title                                                                                                   | All donation triggers         |
| `payload__suffix`                                  | Donor suffix                                                                                                  | All donation triggers         |
| `payload__occupation`                              | Donor occupation                                                                                              | All donation triggers         |
| `payload__employer_name`                           | Donor employer name                                                                                           | All donation triggers         |
| `payload__currently_employed`                      | Whether the donor is employed, "true" or "false"                                                              | All donation triggers         |
| `payload__ip_address`                              | Donor IP address                                                                                              | All donation triggers         |
| `payload__is_recurring_commitment`                 | Whether the donation is part of a recurring commitment, "true" or "false"                                     | All donation triggers         |
| `payload__recurring`                               | Whether the donation is recurring, "true" or "false"                                                          | All donation triggers         |
| `payload__referrer`                                | Referrer URL                                                                                                  | All donation triggers         |
| `payload__referrer_to_form`                        | Referrer URL recorded with the submission                                                                     | All donation triggers         |
| `payload__source_code`                             | Source code                                                                                                   | All donation triggers         |
| `payload__custom_field_responses`                  | Custom field responses, one field per response, such as `payload__custom_field_responses__volunteer_interest` | All donation triggers         |
| `payload__communications_consent_email`            | Email consent, "true" or "false"                                                                              | All donation triggers         |
| `payload__communications_consent_phone`            | Phone consent, "true" or "false"                                                                              | All donation triggers         |
| `payload__check_number`                            | Check number                                                                                                  | All donation triggers         |
| `payload__commitment_index`                        | Which payment in the commitment's schedule this donation is, empty for one-time donations                     | All donation triggers         |
| `payload__commitment_recurring_until`              | Date the commitment recurs until, empty for one-time donations                                                | All donation triggers         |
| `payload__date`                                    | Donation date, in UTC                                                                                         | All donation triggers         |
| `payload__date_iso8601`                            | Donation date, in ISO 8601                                                                                    | All donation triggers         |
| `payload__name`                                    | Donor full name                                                                                               | All donation triggers         |
| `payload__payment_description`                     | Payment method description, such as Visa •••• 4242                                                            | All donation triggers         |
| `payload__source`                                  | Payment source, such as credit\_card                                                                          | All donation triggers         |
| `payload__status`                                  | Donation status, such as completed, refunded, or voided                                                       | All donation triggers         |
| `payload__utm_campaign`                            | UTM campaign                                                                                                  | Donation Refunded/Voided only |
| `payload__utm_content`                             | UTM content                                                                                                   | Donation Refunded/Voided only |
| `payload__utm_medium`                              | UTM medium                                                                                                    | Donation Refunded/Voided only |
| `payload__utm_source`                              | UTM source                                                                                                    | Donation Refunded/Voided only |
| `payload__utm_term`                                | UTM term                                                                                                      | Donation Refunded/Voided only |
| `payload__mobile_phone`                            | Donor mobile phone number                                                                                     | Donation Refunded/Voided only |
| `payload__organization`                            | Organization                                                                                                  | Donation Refunded/Voided only |
| `payload__bitcoin_address`                         | Bitcoin address                                                                                               | Donation Refunded/Voided only |
| `payload__event`                                   | Event information                                                                                             | Donation Refunded/Voided only |
| `payload__event_tickets`                           | Event tickets                                                                                                 | Donation Refunded/Voided only |

### Submission Created

Submission payloads have a `donations` list, so nested donation fields use `payload__donations__`.

| Zapier Field                                    | Description                                        |
| ----------------------------------------------- | -------------------------------------------------- |
| `event`                                         | Event name: `submission_created`                   |
| `payload__id`                                   | Submission ID                                      |
| `payload__account_name`                         | Fundraising account name                           |
| `payload__account_uid`                          | Account UID                                        |
| `payload__action_page_id`                       | Action Page ID                                     |
| `payload__action_page_name`                     | Action Page name                                   |
| `payload__donation_amount`                      | Donation amount, such as $25.00                    |
| `payload__donations__id`                        | Donation ID                                        |
| `payload__donations__fees__anedot_fees__amount` | Anedot fee amount                                  |
| `payload__donations__fees__vendor_fees`         | Vendor fees                                        |
| `payload__donations__fees_paid_by_donor`        | Whether the donor paid the fees, "true" or "false" |
| `payload__donations__fund__id`                  | Fund ID                                            |
| `payload__donations__fund__identifier`          | Fund identifier                                    |
| `payload__donations__fund__name`                | Fund name                                          |
| `payload__donations__gross_amount`              | Gross amount                                       |
| `payload__donations__net_amount`                | Net amount after fees                              |
| `payload__card_type`                            | Card type, such as visa                            |
| `payload__card_last_digits`                     | Last digits of the card                            |
| `payload__card_expiration`                      | Card expiration date                               |
| `payload__payment_method_type`                  | Payment method type, such as credit\_card          |
| `payload__pledge`                               | Pledge, "true" or "false"                          |
| `payload__pledge_capture_date`                  | Pledge capture date                                |
| `payload__product_id`                           | Product ID                                         |
| `payload__product_code`                         | Product code                                       |
| `payload__product_name`                         | Product name                                       |
| `payload__product_value`                        | Product value                                      |
| `payload__donor_profile_id`                     | Donor profile ID                                   |
| `payload__email`                                | Donor email address                                |
| `payload__phone`                                | Donor phone number                                 |
| `payload__mobile_phone`                         | Donor mobile phone number                          |
| `payload__first_name`                           | Donor first name                                   |
| `payload__middle_name`                          | Donor middle name                                  |
| `payload__last_name`                            | Donor last name                                    |
| `payload__title`                                | Donor title                                        |
| `payload__suffix`                               | Donor suffix                                       |
| `payload__organization`                         | Organization                                       |
| `payload__occupation`                           | Donor occupation                                   |
| `payload__employer_name`                        | Donor employer name                                |
| `payload__currently_employed`                   | Whether the donor is employed, "true" or "false"   |
| `payload__address_line_1`                       | Address line 1                                     |
| `payload__address_line_2`                       | Address line 2                                     |
| `payload__address_city`                         | City                                               |
| `payload__address_region`                       | State or region                                    |
| `payload__address_postal_code`                  | Postal code                                        |
| `payload__address_country`                      | Country                                            |
| `payload__bitcoin_address`                      | Bitcoin address                                    |
| `payload__ip_address`                           | Donor IP address                                   |
| `payload__referrer`                             | Referrer URL                                       |
| `payload__referrer_to_form`                     | Referrer URL recorded with the submission          |
| `payload__source_code`                          | Source code                                        |
| `payload__utm_campaign`                         | UTM campaign                                       |
| `payload__utm_content`                          | UTM content                                        |
| `payload__utm_medium`                           | UTM medium                                         |
| `payload__utm_source`                           | UTM source                                         |
| `payload__utm_term`                             | UTM term                                           |
| `payload__communications_consent_email`         | Email consent, "true" or "false"                   |
| `payload__communications_consent_phone`         | Phone consent, "true" or "false"                   |
| `payload__custom_field_responses`               | Custom field responses, one field per response     |
| `payload__created_at`                           | Date created, in UTC                               |
| `payload__created_at_iso8601`                   | Date created, in ISO 8601                          |
| `payload__updated_at`                           | Date updated, in UTC                               |
| `payload__updated_at_iso8601`                   | Date updated, in ISO 8601                          |
| `payload__event`                                | Event information                                  |
| `payload__event_tickets`                        | Event tickets                                      |

## Payload Data

These examples use sample data for a demo account, City Food Pantry. Your requests use your own account's data.

### Request Headers

The **X-Integration-Event** header matches the trigger event: `submission_created`, `donation_completed`, `donation_refunded`, or `donation_voided`.

```json
{
  "User-Agent": "Anedot-Hookshot/574e628",
  "X-Request-Id": "0b6f3c2e-8d41-4a97-b5e0-6c1d9f2a7e38",
  "X-Request-Signature": "8f3c1a7e5b9d2f40c6e8a1b3d5f7092e4c6a8b0d2f4e6a8c0b2d4f6e8a0c2e4b",
  "X-Integration-Event": "donation_completed",
  "X-Integration-Id": "4a8e2c6f-1b3d-4f5a-9c7e-2d0b8f6a4c1e"
}
```

### Request Body (Submission Created)

```json
{
  "event": "submission_created",
  "payload": {
    "account_name": "City Food Pantry",
    "account_uid": "a7c31e09b2d54f8e6a120",
    "action_page_id": "5b2e8f1c-3d4a-4e7b-9c61-0f8a2d7e4b13",
    "action_page_name": "Give to City Food Pantry",
    "bitcoin_address": "",
    "address_line_1": "1200 Main St",
    "address_line_2": "Apt 4",
    "address_city": "Springfield",
    "address_region": "IL",
    "address_postal_code": "62701",
    "address_country": "US",
    "card_type": "visa",
    "card_last_digits": "4242",
    "card_expiration": "12/2028",
    "communications_consent_email": "true",
    "communications_consent_phone": "false",
    "created_at": "2026-11-03 15:04:12 UTC",
    "created_at_iso8601": "2026-11-03T15:04:12Z",
    "currently_employed": "true",
    "donation_amount": "$25.00",
    "donor_profile_id": "c18f5d3e-72a9-4b6c-8e01-d4f9a6b3c257",
    "email": "jordan.rivera@example.com",
    "employer_name": "Springfield Public Schools",
    "first_name": "Jordan",
    "pledge": "false",
    "pledge_capture_date": "",
    "id": "9e4c2a71-6b58-4f03-a1d9-3c7e5b20f846",
    "ip_address": "203.0.113.24",
    "last_name": "Rivera",
    "middle_name": "",
    "mobile_phone": "",
    "occupation": "Teacher",
    "organization": "",
    "payment_method_type": "credit_card",
    "phone": "2175550142",
    "product_code": "",
    "product_id": "",
    "product_name": "",
    "product_value": "",
    "referrer": "https://secure.anedot.com/city-food-pantry/5b2e8f1c-3d4a-4e7b-9c61-0f8a2d7e4b13",
    "referrer_to_form": "https://www.cityfoodpantry.org/donate",
    "source_code": "fall-drive",
    "suffix": "",
    "title": "",
    "updated_at": "2026-11-03 15:04:13 UTC",
    "updated_at_iso8601": "2026-11-03T15:04:13Z",
    "utm_campaign": "fall-food-drive",
    "utm_content": "",
    "utm_medium": "email",
    "utm_source": "newsletter",
    "utm_term": "",
    "custom_field_responses": {},
    "donations": [
      {
        "id": "d3f81a6c05e9b274c1d8e",
        "fees": {
          "anedot_fees": {
            "amount": "1.30"
          },
          "vendor_fees": []
        },
        "fees_paid_by_donor": "false",
        "fund": {
          "id": "e6b4c2a8-91d7-4f35-b0e3-5a8c7d1f2e94",
          "identifier": "1001",
          "name": "General Fund"
        },
        "gross_amount": "25.0",
        "net_amount": "23.70"
      }
    ],
    "event": {},
    "event_tickets": []
  }
}
```

### Request Body (AP Donation Completed)

```json
{
  "event": "donation_completed",
  "payload": {
    "account_name": "City Food Pantry",
    "account_uid": "a7c31e09b2d54f8e6a120",
    "submission_id": "9e4c2a71-6b58-4f03-a1d9-3c7e5b20f846",
    "donation": {
      "id": "d3f81a6c05e9b274c1d8e",
      "card_last_digits": "4242",
      "card_type": "visa",
      "credit_card_expiration": "12/2028",
      "donation_project": "",
      "products": [],
      "fees": {
        "anedot_fees": {
          "amount": "1.03"
        },
        "vendor_fees": []
      },
      "fund": {
        "id": "e6b4c2a8-91d7-4f35-b0e3-5a8c7d1f2e94",
        "identifier": "1001",
        "name": "General Fund"
      }
    },
    "origin": "hosted",
    "commitment_uid": "",
    "event_amount": "25.00",
    "amount_in_dollars": "25.0",
    "net_amount": "23.97",
    "frequency": "once",
    "action_page_id": "5b2e8f1c-3d4a-4e7b-9c61-0f8a2d7e4b13",
    "action_page_name": "Give to City Food Pantry",
    "donor_profile_id": "c18f5d3e-72a9-4b6c-8e01-d4f9a6b3c257",
    "payment_method_id": "2d7a9c4e-1f63-4b85-9e2a-7c0b5d8f3a61",
    "created_at_iso8601": "2026-11-03T15:04:12Z",
    "created_at": "2026-11-03 15:04:12 UTC",
    "updated_at": "2026-11-03 15:04:12 UTC",
    "updated_at_iso8601": "2026-11-03T15:04:12Z",
    "address_line_1": "1200 Main St",
    "address_line_2": "Apt 4",
    "address_city": "Springfield",
    "address_region": "IL",
    "address_postal_code": "62701",
    "address_country": "US",
    "email": "jordan.rivera@example.com",
    "phone": "2175550142",
    "first_name": "Jordan",
    "last_name": "Rivera",
    "middle_name": "",
    "occupation": "Teacher",
    "employer_name": "Springfield Public Schools",
    "title": "",
    "suffix": "",
    "ip_address": "203.0.113.24",
    "is_recurring_commitment": "false",
    "recurring": "false",
    "referrer": "https://secure.anedot.com/city-food-pantry/5b2e8f1c-3d4a-4e7b-9c61-0f8a2d7e4b13",
    "referrer_to_form": "https://www.cityfoodpantry.org/donate",
    "source_code": "fall-drive",
    "custom_field_responses": {},
    "communications_consent_email": "true",
    "communications_consent_phone": "false",
    "currently_employed": "true",
    "check_number": "",
    "commitment_index": "",
    "commitment_recurring_until": "",
    "date": "2026-11-03 15:04:12 UTC",
    "date_iso8601": "2026-11-03T15:04:12Z",
    "name": "Jordan Rivera",
    "payment_description": "Visa •••• 4242",
    "source": "credit_card",
    "status": "completed"
  }
}
```

### Request Body (Donation Refunded)

Donation voided requests use the same fields, with a status of voided.

```json
{
  "event": "donation_refunded",
  "payload": {
    "account_name": "City Food Pantry",
    "account_uid": "a7c31e09b2d54f8e6a120",
    "bitcoin_address": "",
    "submission_id": "9e4c2a71-6b58-4f03-a1d9-3c7e5b20f846",
    "origin": "hosted",
    "commitment_uid": "",
    "event_amount": "-25.00",
    "amount_in_dollars": "25.0",
    "net_amount": "-25.00",
    "frequency": "once",
    "action_page_id": "5b2e8f1c-3d4a-4e7b-9c61-0f8a2d7e4b13",
    "action_page_name": "Give to City Food Pantry",
    "donor_profile_id": "c18f5d3e-72a9-4b6c-8e01-d4f9a6b3c257",
    "payment_method_id": "2d7a9c4e-1f63-4b85-9e2a-7c0b5d8f3a61",
    "created_at_iso8601": "2026-11-03T15:04:12Z",
    "created_at": "2026-11-03 15:04:12 UTC",
    "updated_at": "2026-11-04 10:15:40 UTC",
    "updated_at_iso8601": "2026-11-04T10:15:40Z",
    "address_line_1": "1200 Main St",
    "address_line_2": "Apt 4",
    "address_city": "Springfield",
    "address_region": "IL",
    "address_postal_code": "62701",
    "address_country": "US",
    "email": "jordan.rivera@example.com",
    "phone": "2175550142",
    "first_name": "Jordan",
    "last_name": "Rivera",
    "middle_name": "",
    "mobile_phone": "",
    "organization": "",
    "occupation": "Teacher",
    "employer_name": "Springfield Public Schools",
    "title": "",
    "suffix": "",
    "ip_address": "203.0.113.24",
    "is_recurring_commitment": "false",
    "recurring": "false",
    "referrer": "https://secure.anedot.com/city-food-pantry/5b2e8f1c-3d4a-4e7b-9c61-0f8a2d7e4b13",
    "referrer_to_form": "https://www.cityfoodpantry.org/donate",
    "source_code": "fall-drive",
    "communications_consent_email": "true",
    "communications_consent_phone": "false",
    "currently_employed": "true",
    "check_number": "",
    "commitment_index": "",
    "commitment_recurring_until": "",
    "date": "2026-11-03 15:04:12 UTC",
    "date_iso8601": "2026-11-03T15:04:12Z",
    "name": "Jordan Rivera",
    "payment_description": "Visa •••• 4242",
    "source": "credit_card",
    "status": "refunded",
    "utm_campaign": "fall-food-drive",
    "utm_content": "",
    "utm_medium": "email",
    "utm_source": "newsletter",
    "utm_term": "",
    "custom_field_responses": {
      "volunteer_interest": "Weekend food sorting"
    },
    "donation": {
      "id": "d3f81a6c05e9b274c1d8e",
      "card_last_digits": "4242",
      "card_type": "visa",
      "credit_card_expiration": "12/2028",
      "donation_project": "",
      "products": [],
      "fees": {
        "anedot_fees": {},
        "vendor_fees": []
      },
      "fund": {
        "id": "e6b4c2a8-91d7-4f35-b0e3-5a8c7d1f2e94",
        "identifier": "1001",
        "name": "General Fund"
      }
    },
    "event": {},
    "event_tickets": []
  }
}
```

### Response Body

Zapier replies to a successful request with JSON like this example.

```json
{
  "attempt": "01865164-44d2-ed12-db18-3ffeab6c5c71",
  "id": "01865164-44d2-ed12-db18-3ffeab6c5c71",
  "request_id": "01865164-44d2-ed12-db18-3ffeab6c5c71",
  "status": "success"
}
```

## Related Articles

* [Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md)
* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Notifications](https://docs.anedot.com/get-started/security/notifications.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/integrations/integration-automation-tools/zapier.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
