> 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/ecommerce-financial-membership/order-desk.md).

# Order Desk

Connect Anedot to Order Desk to send donation orders from your Action Pages, manage your connection, and review field mapping, metadata, and payload data.

The **Order Desk** integration sends an order to your Order Desk store when a donor completes a donation on your Action Pages, and you'll find it in **Settings > Integrations**. This article covers how to connect Anedot to Order Desk, manage your connection, understand data relays, find your data, and review field mapping and payload data.

## 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 an Order Desk API Key and Store ID from **Store Settings > API** in Order Desk.

## Connect Anedot to Order Desk

### Step 1: Get Your Order Desk API Key and Store ID

To get your API Key and Store ID:

1. In Order Desk, go to **Store Settings**.
2. Click the **API** tab.
3. Create an API Key. Order Desk shows an API Key and a Store ID.
4. Copy both values.

You'll use both values when you create the connection in Anedot.

{% hint style="warning" %}
Sending an invalid Store ID can block your store from the Order Desk API rather than returning an error. Confirm that the Store ID is correct before you save the connection.
{% endhint %}

{% hint style="info" %}
An API key gives full access to your Order Desk store. If a key is exposed, generate a new one from the same **API** tab, and the previous key stops working immediately.
{% endhint %}

### Step 2: Create the Connection in Anedot

To create the connection:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **Order Desk**. The card is in the Fulfillment category and is described as "Send Action Page order data to Order Desk."
4. Choose which Action Pages to include:
   * Leave **All Action Pages** checked to include all current and future pages. (Optional) In **Exclude Pages**, enter a comma separated list of Action Page IDs, with no spaces.
   * Uncheck **All Action Pages** and choose pages in **Selected pages** to include only the pages you pick.
5. (Optional) In **Team**, leave **All teams** or choose a team to include only that team's pages.
6. Enter your **Order Desk API key**.
7. Enter your **Order Desk store ID**.
8. (Optional) In **Hidden fields for order-items metadata**, enter a comma-separated list of hidden field labels to send with the order, for example `my_hidden_field_key1,my_hidden_field_key2`.
9. Click **Create integration**.

Anedot shows "Integration created." and the connection appears in your integrations list. Nothing is sent to Order Desk when the connection is created.

{% hint style="info" %}
Anedot matches each entry in **Hidden fields for order-items metadata** to a custom-field response label, not the field's internal name. Hidden fields that are not on this list are not sent.
{% endhint %}

## Manage Your Connection

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

### Edit A Connection

After you create the connection, the list shows **Integration** followed by a number, for example "Integration 42", until you enter a **Name** in **Edit**.

To edit a connection:

1. Go to **Settings > Integrations**.
2. Click **Edit** on your Order Desk connection.
3. Enter a **Name** for the connection.
4. (Optional) Update the Action Page scope, **Exclude Pages**, or **Team**.
5. (Optional) Check or uncheck **Enabled**.
6. Leave the **Credentials/details JSON** box as it is.
7. Click **Save integration**.

Anedot shows "Integration updated." and applies your changes to new sends.

{% hint style="info" %}
**Name** is required to save the Edit form. **Provider** shows `order_desk` and can't be changed.
{% endhint %}

{% hint style="warning" %}
The **Credentials/details JSON** box can hold your hidden-fields list. The API key and Store ID are not shown or changed in Edit, so to use a different API key or Store ID, delete the connection and connect again.
{% endhint %}

### Turn A Connection Off or On

**Enabled** is on by default after you create the connection. Uncheck **Enabled** and click **Save integration** to stop new sends, including Push. Check **Enabled** and click **Save integration** to start sending again.

Anedot turns **Enabled** off after five authorization failures (HTTP 401 or 403) in a row without a success in between. Other failures do not turn it off.

To turn a connection back on after authorization failures:

1. Go to **Settings > Integrations**.
2. Click **Edit** on your Order Desk connection.
3. Check **Enabled**.
4. Click **Save integration**.

Anedot starts sending again. If **Enabled** turns off again after you save, delete the connection and connect again with a valid API key and Store ID, then use **Push unsent**.

### Push Unsent Donations

**Push unsent** sends donations in a date range that have not already been successfully sent to Order Desk with the same API key. Donations that were sent successfully are not sent again.

To push unsent donations:

1. Go to **Settings > Integrations**.
2. Click **Push unsent** on your Order Desk connection.
3. Choose a **Start date** and **End date**.
4. Start the push.

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

{% hint style="info" %}
The range can be up to 31 days, and the start date must be within the last 12 months. Wait about five minutes between pushes.
{% endhint %}

{% hint style="info" %}
**Team**, Action Page scope, and **Exclude Pages** apply to Push as well as live sends. Push does nothing when **Enabled** is off.
{% endhint %}

### Delete A Connection

To delete a connection:

1. Go to **Settings > Integrations**.
2. Click **Delete** on your Order Desk connection.
3. Confirm "Delete this integration?"

Anedot shows "Integration deleted." and stops sending to Order Desk. Records already in Order Desk are not changed.

{% hint style="danger" %}
Deleting a connection can't be undone. To send to Order Desk again, you'll need to connect again with your API key and Store ID.
{% endhint %}

## Data Relays

### What Anedot Sends

* **Donation Pages:** Anedot sends an order when a donation is completed. One order is sent per submission. After one donation on that submission is sent successfully, the submission's other donations are not sent.
* **Commitments:** The first donation of a commitment is sent and can include the commitment amount, uid, and frequency.
* **Paid Event Pages:** If the event creates a donation, Anedot sends it the same way as a Donation Page.
* **Products:** If the submission has products, they're added as extra order lines with a $0 price and a `delivery_type` of `ship`. The donation line uses a `delivery_type` of `noship`.
* **Hidden fields:** Values for the labels in **Hidden fields for order-items metadata** are sent in the first order item's `metadata`. A label with no matching response is sent as null.

Amounts are sent in dollars as a number, for example `25.0` for $25.00. The first item's `price`, `order_total`, and `processor_balance` all equal the submission total.

### Records Anedot Skips

Anedot does not send these records, and no Integration Requests row is created when a send is skipped:

* Recurring charges after the first donation of a commitment
* Lead Pages
* A free Event registration with no donation
* Refunds, voids, chargebacks, ACH returns, and settled events
* Abandoned Actions
* Later edits and commitment changes
* Donations on a connection with **Enabled** unchecked
* A donation already sent successfully to Order Desk with the same API key
* Donations after the connection is deleted
* Hidden fields that are not in the **Hidden fields for order-items metadata** list

### Delivery And Retries

Each send appears in **Settings > Integration Requests** with one of these results:

* **Success:** Order Desk returned any HTTP 2xx response.
* **Failure:** Order Desk returned any other HTTP status. Fix the cause, then use **Push unsent**.
* **Error:** Anedot could not complete the request. The row may show "No HTTP status." These attempts can be tried again automatically.

If a row ends in Failure, Anedot can email users who have the **Integration sync failed** notification turned on in the Integrations section of their notification settings. This notification is off by default. The subject is "Anedot" followed by the connection **Name** and "Integration Failed", or "Anedot OrderDesk Integration Failed" when the connection has no name. See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).

For more about reading request rows, see [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

## Find Your Data in Order Desk

To find your data:

1. Go to **Settings > Integration Requests**.
2. Find the request for the donation and confirm it shows Success.
3. Review the order in your Order Desk store.

The order's `source_id` and `order_metadata.order_id` match the donation uid in Anedot, and `order_metadata.source` is `ANEDOT`.

## Field Mapping

| Anedot Value                                                                                          | Order Desk Field                               |
| ----------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| Donor email                                                                                           | `email`                                        |
| Card expiration date (`MM/YYYY`)                                                                      | `cc_exp`                                       |
| Masked card number (`xxxxxxxxxxxx` plus last four digits)                                             | `cc_number_masked`                             |
| Donor first name                                                                                      | `customer.first_name`, `shipping.first_name`   |
| Donor last name                                                                                       | `customer.last_name`, `shipping.last_name`     |
| Address line 1                                                                                        | `customer.address1`, `shipping.address1`       |
| Address line 2                                                                                        | `customer.address2`, `shipping.address2`       |
| City                                                                                                  | `customer.city`, `shipping.city`               |
| State                                                                                                 | `customer.state`, `shipping.state`             |
| Postal code                                                                                           | `customer.postal_code`, `shipping.postal_code` |
| Phone                                                                                                 | `customer.phone`, `shipping.phone`             |
| Country (always `US`)                                                                                 | `customer.country`, `shipping.country`         |
| Company (always an empty string)                                                                      | `customer.company`, `shipping.company`         |
| Donation uid                                                                                          | `source_id`                                    |
| Tax total (always `0`)                                                                                | `tax_total`                                    |
| Donation date in UTC (`YYYY-MM-DD HH:MM:SS`)                                                          | `date_added`                                   |
| Submission total in dollars                                                                           | `order_items[0].price`                         |
| Quantity                                                                                              | `order_items[].quantity`                       |
| Delivery type (`noship` for the donation line, `ship` for product lines)                              | `order_items[].delivery_type`                  |
| Donation frequency                                                                                    | `order_items[0].metadata.donation_frequency`   |
| Donation flag (always `"true"`)                                                                       | `order_items[0].metadata.is_donation`          |
| Hidden field values for listed labels                                                                 | `order_items[0].metadata` (keyed by label)     |
| Submission total in dollars                                                                           | `order_total`                                  |
| Payment type (`VISA`, `MASTERCARD`, `DISCOVER`, `AMEX`, `AMERICAN EXPRESS`, `EFT`, `PAYPAL`, or null) | `payment_type`                                 |
| Anedot account uid                                                                                    | `order_metadata.anedot_account_uid`            |
| Commitment amount (first donation of a commitment)                                                    | `order_metadata.anedot_commitment_amount`      |
| Commitment uid (first donation of a commitment)                                                       | `order_metadata.anedot_commitment_uid`         |
| Donation uid                                                                                          | `order_metadata.order_id`                      |
| Fund                                                                                                  | `order_metadata.fund`                          |
| Source code                                                                                           | `order_metadata.source_code`                   |
| Masked bank account number (`xxxxx` plus last four digits, empty for non-bank gifts)                  | `order_metadata.eft_account_number`            |
| Bank account type, such as `CHECKING` (empty for non-bank gifts)                                      | `order_metadata.eft_account_type`              |
| Donor email                                                                                           | `order_metadata.SSO_Ping_id`                   |
| Source (always `ANEDOT`)                                                                              | `order_metadata.source`                        |
| Shipping total (always `0`)                                                                           | `shipping_total`                               |
| Shipping method (always `FREE`)                                                                       | `shipping_method`                              |
| Submission total in dollars                                                                           | `processor_balance`                            |

## Payload Data

This example is a $25.00 one-time Visa donation from Annie Dot with no products and no hidden fields, as stored in **Settings > Integration Requests**. Values in angle brackets are placeholders.

```json
{
  "cc_exp": "<MM/YYYY>",
  "cc_number_masked": "xxxxxxxxxxxx<last4>",
  "customer": {
    "address1": "123 Main St",
    "address2": null,
    "city": "Baton Rouge",
    "company": "",
    "country": "US",
    "first_name": "Annie",
    "last_name": "Dot",
    "phone": "2255550123",
    "postal_code": "70801",
    "state": "LA"
  },
  "date_added": "<YYYY-MM-DD HH:MM:SS, UTC>",
  "email": "annie.dot@example.com",
  "order_items": [
    {
      "price": 25.0,
      "quantity": 1,
      "delivery_type": "noship",
      "metadata": {
        "donation_frequency": "<donation frequency>",
        "donation_subaccount": null,
        "is_donation": "true"
      }
    }
  ],
  "order_metadata": {
    "anedot_account_uid": "<account uid>",
    "anedot_commitment_amount": null,
    "anedot_commitment_uid": null,
    "order_id": "<donation uid>",
    "fund": "<fund identifier or empty>",
    "source_code": "<source code>",
    "eft_account_number": "",
    "eft_account_type": "",
    "SSO_Ping_id": "annie.dot@example.com",
    "source": "ANEDOT"
  },
  "order_total": 25.0,
  "payment_type": "VISA",
  "processor_balance": 25.0,
  "shipping": {
    "address1": "123 Main St",
    "address2": null,
    "address3": "",
    "address4": "",
    "city": "Baton Rouge",
    "company": "",
    "country": "US",
    "first_name": "Annie",
    "last_name": "Dot",
    "phone": "2255550123",
    "postal_code": "70801",
    "state": "LA"
  },
  "shipping_method": "FREE",
  "shipping_total": 0,
  "source_id": "<donation uid>",
  "tax_total": 0
}
```

## Troubleshooting

### An Order Isn't in Order Desk

Go to **Settings > Integration Requests** and look for a row for the donation. If there's no row, confirm that:

* **Enabled** is checked on the connection.
* The Action Page is included in your Action Page selection and isn't listed in **Exclude Pages**.
* The page belongs to the team you chose in **Team**, or **Team** is set to **All teams**.
* A donation was completed on the submission.
* The donation isn't a recurring charge after the first donation of a commitment.

### A Row Shows Failure

Review the response on the row, then confirm your API key and Store ID are correct. A 401 or 403 response usually points to the API key or Store ID. If **Enabled** turned off, follow the steps in [Turn A Connection Off or On](https://docs.anedot.com/integrations/ecommerce-financial-membership/order-desk.md#turn-a-connection-off-or-on). After you fix the cause, use **Push unsent** to send the donations again.

### A Row Shows Error

Anedot could not complete the request, and the row may show "No HTTP status." These attempts can be tried again automatically. If the donation still isn't in Order Desk, use **Push unsent**.

### You Need a Different API Key or Store ID

The API key and Store ID can't be changed in **Edit**. Delete the connection and connect again with the new values, then use **Push unsent** if needed.

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)
* [Hidden Fields](https://docs.anedot.com/action-pages/page-builder/hidden-fields.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/ecommerce-financial-membership/order-desk.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.
