> 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 sync Action Pages, set API credentials, and customize metadata for order automation.

**Order Desk** enables you to automate and streamline your order management workflow by integrating directly with Anedot.

## Connecting Anedot to Order Desk

1. Navigate to **Settings → Integrations → Directory** in your Anedot dashboard.
2. Click **+ New Connection**, then select **Order Desk**.
3. **Action Page Selection**
   * By default, all Action Pages will sync with Order Desk.
   * To **exclude** specific pages, enter a comma-separated list of Action Page IDs.
   * You can also **limit the integration** to a specific Team’s Action Pages.
4. Enter your **Order Desk API Key**. If you need help locating it, contact [Order Desk Support](https://www.orderdesk.com/contact/).
5. Enter your **Order Desk Store ID**.
6. *Optionally*, enter a comma-separated list of **hidden fields** to send additional order-item metadata.
7. Click **Save** to complete the connection.

*You can modify Action Pages, Team filters, and credentials at any time.*

## Data Relays

* **Financial Pages Only:** Anedot sends relays exclusively for financial Action Pages.
* **Manual Pushes:** Resend failed or unsent relays with **Push Unsent** (supports date ranges).
* **Relay Failure Handling:** After five consecutive failed relay attempts, the integration is marked inactive until reactivated.

## Field Mapping

| Anedot Field                                                                                                                    | Order Desk Field                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| email                                                                                                                           | email                                                                                                                |
| paymentMethod {cardMonth} / paymentMethod {cardYear}                                                                            | cc\_exp                                                                                                              |
| address {city} phone address {region} address {country} address {line1} address {line2} lastName firstName address {postalCode} | customer / shipping {city} {phone} {state} {country} {address1} {address2} {last\_name} {first\_name} {postal\_code} |
| (Donation) id                                                                                                                   | source\_id                                                                                                           |
| "0"                                                                                                                             | tax\_total                                                                                                           |
| created\_at                                                                                                                     | date\_added                                                                                                          |
| totalAmount (x100); frequency; product flags                                                                                    | order\_items {price} {is\_donation} {donation\_frequency} {quantity} {delivery\_type}                                |
| totalAmount (x100)                                                                                                              | order\_total                                                                                                         |
| VISA / MASTERCARD / DISCOVER / AMEX / EFT / PAYPAL                                                                              | payment\_type                                                                                                        |
| fund identifier; source; order id; source\_code; account metadata                                                               | order\_metadata                                                                                                      |
| "0"                                                                                                                             | shipping\_total                                                                                                      |
| "FREE"                                                                                                                          | shipping\_method                                                                                                     |
| masked card last four                                                                                                           | cc\_number\_masked                                                                                                   |
| totalAmount (x100)                                                                                                              | processor\_balance                                                                                                   |

## Payload Data

### Request Body

```json
{"email":"admin@anedot.com","cc_exp":"12/2034","customer":{"city":"New Orleans","phone":"2252501301","state":"LA","company":"","country":"US","address1":"1340 Poydras Street","address2":null,"last_name":"Dot","first_name":"Annie","postal_code":"70113"},"source_id":"dddc78757b4fffb4ba67d","tax_total":0,"date_added":"2023-02-17 15:18:02","order_total":50.0,"payment_type":"MASTERCARD","shipping_total":0,"shipping_method":"FREE","processor_balance":50.0}
```

### Response Status (Success)

```
201
```

### Response Status (Failure)

```
400
```


---

# 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.
