> 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/political-campaign-tools/campaign-solutions.md).

# Campaign Solutions

Connect Anedot to Campaign Solutions to send completed donation data, manage your connection, and review field mapping, payload data, and troubleshooting.

The **Campaign Solutions** integration sends completed donation data from your Action Pages to Campaign Solutions, and lives in **Settings > Integrations**. This article covers how to connect Anedot to Campaign Solutions, manage your connection, review what Anedot sends, find your data in Campaign Solutions, and review field mapping, payload data, and troubleshooting.

## Before You Begin

* You need **Integrations: Edit permissions** to add, edit, push or delete a connection. Integrations: Edit permissions also require **Action Pages: View permissions** and **Integrations: View permissions**. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).
* You need a token provided by Campaign Solutions.

## Connect Anedot to Campaign Solutions

### Step 1: Get Your Campaign Solutions Token

You need a token provided by Campaign Solutions. If you don't have one yet, request it from Campaign Solutions.

### Step 2: Create the Connection in Anedot

To create the connection:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **Campaign Solutions**. The card is in the Digital Marketing category and is described as "Send Action Page data to Campaign Solutions."
4. Choose which Action Pages to include:
   * Leave **All Action Pages** checked to include all current and future pages. The checkbox includes the note "Includes future pages added after this integration is saved."
   * Uncheck **All Action Pages** and choose pages in **Selected pages** to include only the pages you pick.
5. (Optional) If **All Action Pages** is checked, enter a comma separated list of Action Page IDs, with no spaces, in **Exclude Pages** to leave those pages out.
6. Leave **Team** set to **All teams**, or choose a team to include only that team's pages. The help text is "Optionally limit this connection to one team."
7. Enter your token in **Token**. This field is required.
8. Click **Create integration**.

Anedot shows "Integration created." and the connection appears in your list of integrations as **Campaign Solutions Integration**.

{% hint style="info" %}
Nothing is sent to Campaign Solutions when you create the connection. Anedot starts sending with the next completed donation the connection covers.
{% endhint %}

**Name** and **Enabled** aren't on the create form. **Enabled** is on by default.

## Manage Your Connection

Each Campaign Solutions connection in **Settings > Integrations** has **Edit**, **Push unsent**, and **Delete** buttons.

### Edit A Connection

To edit a connection:

1. Go to **Settings > Integrations**.
2. Click **Edit** on the Campaign Solutions connection.
3. (Optional) Update your Action Page selection.
4. (Optional) Update **Team**, or leave **All teams**.
5. Leave **Name** as **Campaign Solutions Integration**. **Name** is required to save.
6. (Optional) Check or uncheck **Enabled**.
7. Leave the **Credentials/details JSON** box as it is. It shows only details, or "None" when empty. Credentials are never shown.
8. Click **Save integration**.

Anedot shows "Integration updated." and saves your changes.

The **Provider** field is disabled and shows `campaign_solutions`. There's no Test button.

{% hint style="info" %}
Your token isn't shown or changed in **Edit**. To use a different token, delete the connection and connect again.
{% endhint %}

### Turn A Connection Off or On

The **Enabled** checkbox controls whether Anedot sends new live donations to Campaign Solutions. When **Enabled** is off, Anedot doesn't send new live donations, and no Integration Requests row is created for those skipped live sends.

To turn live sends off or on:

1. Go to **Settings > Integrations**.
2. Click **Edit** on the Campaign Solutions connection.
3. Uncheck **Enabled** to stop new live sends, or check **Enabled** to start live sends again.
4. Click **Save integration**.

Anedot shows "Integration updated." and applies your change to new live donations.

{% hint style="info" %}
**Push unsent** still sends completed donations in the date range that haven't already been successfully sent, even when **Enabled** is off.
{% endhint %}

### Push Unsent Donations

**Push unsent** sends completed donations in a date range that haven't already been successfully sent to Campaign Solutions, including donations that failed or were never tried. Donations that were sent successfully aren't sent again. Only completed donations are sent, so Lead Pages and free Event Pages aren't included. Action Page scope, **Team**, and **Exclude Pages** still apply.

When you push unsent donations:

* The **Start date** and **End date** range can be up to 31 days.
* The **Start date** must be within the last 12 months.
* Wait about five minutes between pushes.

When the push begins, Anedot shows "Push started." For the full steps, see [Push Unsent](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent) in Webhooks (API).

{% hint style="warning" %}
If sends have stopped even though **Enabled** still appears checked, or **Push unsent** shows "Push started." but no new Integration Requests row is created, follow the steps in [Sending Stopped While Enabled Is Checked](https://docs.anedot.com/integrations/political-campaign-tools/campaign-solutions.md#sending-stopped-while-enabled-is-checked).
{% endhint %}

### Delete A Connection

To stop sending donations to Campaign Solutions, delete the connection.

To delete a connection:

1. Go to **Settings > Integrations**.
2. Click **Delete** on the Campaign Solutions connection.
3. Confirm "Delete this integration?"

Anedot shows "Integration deleted." and stops sending donations to Campaign Solutions. Donations already in Campaign Solutions aren't changed.

{% hint style="danger" %}
Deleting a connection can't be undone. To send donations to Campaign Solutions again, connect again.
{% endhint %}

## Data Relays

### What Anedot Sends

Anedot sends one `donation_completed` JSON request for each completed donation, with your token in the `X-Request-Token` header.

* Anedot sends a `donation_completed` request when a donation is completed, including each successful recurring charge and paid Event Page donations.
* If a donation returns to Completed after a reversal, Anedot sends `donation_completed` again.
* Donations to multiple funds send one payload per donation. Each payload carries a single `donation.fund`.
* Conduit fund donations are sent.
* Custom field responses are included under `custom_field_responses`, keyed by the field label in lowercase with spaces turned into underscores.
* Source codes and UTM values are included (`source_code`, `utm_campaign`, `utm_content`, `utm_medium`, `utm_source`, `utm_term`).
* Amounts are dollars as strings, not cents. For a $25.00 gift, `event_amount` is `"25.00"` and `amount_in_dollars` is `"25.0"`. `net_amount` is the account's base amount as a string such as `"xx.xx"`.
* Dates are in UTC. Plain dates look like `"YYYY-MM-DD HH:MM:SS UTC"`. Keys ending in `_iso8601` look like `"YYYY-MM-DDTHH:MM:SSZ"`.
* Most payload values are strings. Empty values are sent as `""`, and true or false values are sent as `"true"` or `"false"`. `donation` and `custom_field_responses` are JSON objects.
* `phone` is the donation's phone, or `null` when it's blank, a placeholder, or the account's own number.
* Along with `X-Request-Token`, the request headers include `User-Agent` (`Anedot-Hookshot/<7-char rev>`), `X-Request-Id`, `X-Request-Signature`, `X-Integration-Event` (`donation_completed`), and `X-Integration-Id`.

### Records Anedot Skips

Anedot doesn't send these records to Campaign Solutions, and no row is created in **Settings > Integration Requests** when a record is skipped:

* Lead Pages
* Free Event Pages
* Refunds, voids, chargebacks, ACH returns, and settled events
* Abandoned Actions
* Later edits
* Commitment changes, such as a cancellation
* Donations that aren't tied to an Action Page

### Delivery And Retries

Every attempt to send a donation to Campaign Solutions appears in **Settings > Integration Requests**. Each row shows the request body, request headers, and the response. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

* **Success:** Campaign Solutions responded with HTTP 2xx, or HTTP 3xx with a Location header.
* **Failure:** Campaign Solutions responded with any other HTTP status. Failed items can be tried again automatically. Fix the cause, then use **Push unsent** if you still need to send them.
* **Error:** Anedot couldn't complete the request, for example because of a timeout or a connection failure.

Anedot stops sending after 1,000 failed attempts in a row. If Campaign Solutions returns a `404` or can't be reached, Anedot stops sending after 10 failed attempts in a row. Any successful delivery resets the count. The count also resets every Sunday at 1:00 AM Central Time for connections that are still sending.

When a row shows Failure, Anedot emails users who have the **Integration sync failed** notification turned on in the Integrations section of their notification settings. The email is sent for Failure rows, including retries, and isn't sent for Error rows. The subject is "Anedot Campaign Solutions Integration Webhook Failed". See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).

{% hint style="info" %}
The **Integration sync failed** notification is off by default. Turn it on in your notification settings to get emails about Failure rows.
{% endhint %}

When sending stops after too many failed attempts, Anedot sends a separate email to Owners, Super Admins, Admins, and users who have **Integrations: Edit permissions**. This email doesn't depend on notification settings. The subject is "Anedot Campaign Solutions Integration Webhook Deactivated." The email names the connection, the account, and the destination host, asks you to review the errors under **Integrations**, and lists <help@anedot.com>.

## Find Your Data in Campaign Solutions

To find a donation sent to Campaign Solutions:

1. Go to **Settings > Integration Requests**.
2. Look for a Success row for the donation.
3. Review the donation in Campaign Solutions.

After you confirm the Success row, you can review the donation in Campaign Solutions. What Campaign Solutions does with a donation after it accepts it is set by Campaign Solutions.

## Field Mapping

Anedot sends these headers with each request.

| Anedot Value         | Campaign Solutions Header |
| -------------------- | ------------------------- |
| Token                | `X-Request-Token`         |
| `donation_completed` | `X-Integration-Event`     |

Anedot sends these fields in the request body.

| Anedot Value                                                                | Campaign Solutions Field                                                                                                                                       |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `donation_completed`                                                        | `event`                                                                                                                                                        |
| Date in UTC                                                                 | `payload.date`                                                                                                                                                 |
| Full name                                                                   | `payload.name`                                                                                                                                                 |
| Email                                                                       | `payload.email`                                                                                                                                                |
| Phone (or null)                                                             | `payload.phone`                                                                                                                                                |
| First name                                                                  | `payload.first_name`                                                                                                                                           |
| Last name                                                                   | `payload.last_name`                                                                                                                                            |
| Donation object (id, fees, fund, products, card details)                    | `payload.donation`                                                                                                                                             |
| Gross amount as a dollar string, for example `"25.00"`                      | `payload.event_amount`                                                                                                                                         |
| Amount as a dollar string, for example `"25.0"`                             | `payload.amount_in_dollars`                                                                                                                                    |
| Account base amount as a dollar string                                      | `payload.net_amount`                                                                                                                                           |
| Source code                                                                 | `payload.source_code`                                                                                                                                          |
| UTM values                                                                  | `payload.utm_campaign`, `payload.utm_content`, `payload.utm_medium`, `payload.utm_source`, `payload.utm_term`                                                  |
| Custom field responses, keyed by lowercase label with spaces as underscores | `payload.custom_field_responses`                                                                                                                               |
| Action Page UUID                                                            | `payload.action_page_id`                                                                                                                                       |
| Action Page name                                                            | `payload.action_page_name`                                                                                                                                     |
| Account UID                                                                 | `payload.account_uid`                                                                                                                                          |
| Account name                                                                | `payload.account_name`                                                                                                                                         |
| `once` or the recurring frequency                                           | `payload.frequency`                                                                                                                                            |
| `"true"` or `"false"`                                                       | `payload.recurring`                                                                                                                                            |
| `"true"` or `"false"`                                                       | `payload.is_recurring_commitment`                                                                                                                              |
| `"true"` or `"false"`                                                       | `payload.currently_employed`                                                                                                                                   |
| Address fields                                                              | `payload.address_line_1`, `payload.address_line_2`, `payload.address_city`, `payload.address_region`, `payload.address_postal_code`, `payload.address_country` |
| Occupation                                                                  | `payload.occupation`                                                                                                                                           |
| Employer name                                                               | `payload.employer_name`                                                                                                                                        |
| Payment method label                                                        | `payload.payment_description`                                                                                                                                  |
| Status                                                                      | `payload.status`                                                                                                                                               |
| Origin                                                                      | `payload.origin`                                                                                                                                               |
| Source                                                                      | `payload.source`                                                                                                                                               |
| Submission UUID                                                             | `payload.submission_id`                                                                                                                                        |
| Commitment UUID, or empty                                                   | `payload.commitment_uid`                                                                                                                                       |

## Payload Data

These examples show a stored Integration Requests row for a $25.00 one-time card donation from Annie Dot (<annie.dot@example.com>). Values in angle brackets are placeholders.

Request headers:

```json
{"User-Agent":"Anedot-Hookshot/<7-char rev>","X-Request-Id":"<relay uuid>","X-Request-Signature":"<signature>","X-Integration-Event":"donation_completed","X-Integration-Id":"<integration uuid>","X-Request-Token":"<token>"}
```

Request body:

```json
{"event":"donation_completed","payload":{
 "custom_field_responses":{"<label_snake>":"<value>"},
 "donation":{"id":"<donation uid>","card_last_digits":"<last4>","card_type":"<type>",
  "credit_card_expiration":"<exp>","donation_project":"","products":[],
  "fees":{"anedot_fees":{"amount":"<x.xx>"},"vendor_fees":[]},
  "fund":{"id":"<fund id>","identifier":"<fund identifier>","name":"<fund name>"}},
 "account_name":"<account display name>","account_uid":"<account uid>",
 "submission_id":"<submission uuid>","origin":"<origin>","commitment_uid":"",
 "event_amount":"25.00","amount_in_dollars":"25.0","net_amount":"<net x.xx>",
 "frequency":"once","action_page_id":"<page uuid>","action_page_name":"<page name>",
 "donor_profile_id":"<uuid or empty>","payment_method_id":"<uuid>",
 "created_at":"<YYYY-MM-DD HH:MM:SS UTC>","created_at_iso8601":"<YYYY-MM-DDTHH:MM:SSZ>",
 "updated_at":"<YYYY-MM-DD HH:MM:SS UTC>","updated_at_iso8601":"<YYYY-MM-DDTHH:MM:SSZ>",
 "address_line_1":"<street>","address_line_2":"","address_city":"<city>","address_region":"<region>",
 "address_postal_code":"<postal code>","address_country":"<country>",
 "email":"annie.dot@example.com","phone":"<donation phone>",
 "first_name":"Annie","last_name":"Dot","middle_name":"","occupation":"<occupation or empty>",
 "employer_name":"<employer or empty>","title":"","suffix":"","ip_address":"<ip>",
 "referrer":"<referrer or empty>","referrer_to_form":"<referrer to form or empty>","source_code":"<source code or empty>",
 "communications_consent_email":"<true|false|>","communications_consent_phone":"<true|false|>",
 "currently_employed":"<true|false|>","check_number":"","commitment_recurring_until":"",
 "date":"<YYYY-MM-DD HH:MM:SS UTC>","date_iso8601":"<YYYY-MM-DDTHH:MM:SSZ>","name":"Annie Dot",
 "payment_description":"<payment method label>","recurring":"false",
 "is_recurring_commitment":"false","source":"<source>","status":"completed",
 "utm_campaign":"","utm_content":"","utm_medium":"","utm_source":"","utm_term":""}}
```

For a recurring monthly gift, `recurring` and `is_recurring_commitment` are `"true"`, `commitment_uid` and `commitment_recurring_until` are filled in, and `frequency` holds the frequency word. See [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md).

The response from Campaign Solutions is stored on each Integration Requests row. This article doesn't include a sample Campaign Solutions response.

## Troubleshooting

### A Donation Isn't in Campaign Solutions

* Check **Settings > Integration Requests** for a Success row for the donation.
* Confirm **Enabled** is checked if you expect live sends.
* Confirm the donation's Action Page is covered by your **All Action Pages** or **Selected pages** choice, isn't listed in **Exclude Pages**, and belongs to the **Team** you chose.
* Confirm the payment completed.
* Lead Pages and free Event Pages aren't sent.

### You Need to Use a Different Token

If your token is wrong or you need to use a different one, delete the connection and create a new one with a valid token. Then use **Push unsent** to send any donations that weren't sent.

### Sending Stopped While Enabled Is Checked

A connection that stopped sending after too many failed requests can still show as enabled, with **Enabled** checked. You may also see **Push unsent** show "Push started." with no new Integration Requests row. To start it sending again:

1. Fix the cause of the failed requests. Review the responses in **Settings > Integration Requests** to find it.
2. Go to **Settings > Integrations** and open the connection.
3. Click **Save integration**. You don't need to change any other fields. Saving starts the connection sending again.
4. Use **Push unsent** to send the donations you missed.

### A Row Shows Failure

Review the response on the Integration Requests row, fix the cause, and use **Push unsent** if needed.

### A Row Shows Error

Wait for automatic retries, or use **Push unsent** after the issue is resolved.

If the issue continues, contact our Support team at <help@anedot.com>.

## Related Articles

* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md)
* [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md)
* [Notifications](https://docs.anedot.com/get-started/security/notifications.md)
* [Political Campaign Tools](https://docs.anedot.com/integrations/political-campaign-tools.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/political-campaign-tools/campaign-solutions.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.
