> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandectes.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to connect Omnisend to Pandectes for customer data requests

### Overview

When a customer asks for a copy of their personal data, to be erased, or to correct their details, the data in your Shopify store is only part of the answer. If you use **Omnisend** for email and SMS marketing, Omnisend also holds data about that customer: their contact details and whether they are subscribed to your emails and text messages.

The Omnisend integration connects Pandectes GDPR Compliance to your Omnisend account. Once it is connected, the data requests you answer in Pandectes reach Omnisend too: you can get what Omnisend holds about the customer, unsubscribe them, and correct their name, and Pandectes can unsubscribe customers who ask to be erased without a click.

This article explains how to connect Omnisend, which action runs on its own, and how to use it when you answer a data request.

### Before you start

* You need an **Omnisend** account for your store, and access to its **Store settings** to create an API key.
* You need a Pandectes plan that includes customer data requests (**Basic** or higher).
* Your customers send their requests from your **Customer Data Requests** page. See [How to create a customer data request page](/en/article/how-to-create-a-customer-data-request-page-n3c66b/) if you haven't set one up yet.

### What the integration does

* **Copy of the data (access and portability):** get the customer's Omnisend contact in the request and download it as a JSON file.
* **Erasure:** unsubscribe the customer from Omnisend email and SMS marketing, then delete the contact in Omnisend and check from the request that it is gone.
* **Correction (rectification):** update the customer's first and last name in Omnisend from the request.
* **History:** every action is recorded on the request under **History**, so you can show what was done and when.

Pandectes talks to Omnisend in the background. Nothing changes on your storefront, and your Omnisend forms, campaigns and automations keep working as before.

### How to connect Omnisend

1. In the Pandectes app, open **Integrations**. You find the **Omnisend** card under **All integrations** or **Marketing & Ads**. Click **Configure**.
2. In a new browser tab, open Omnisend and go to **Store settings > API keys**. Click **Create API key**.
3. Name the key **Pandectes**, give it the **Contacts** permission, and copy the key.

   ||| Omnisend shows the key only once, so copy it before you close the window. Keep it private: anyone who has it can read and change your Omnisend contacts.

4. Back in Pandectes, paste the key in **Omnisend API key** and click **Connect**. Pandectes checks the key with Omnisend before it saves it.
5. When the key works, a **Connected** badge appears next to **Omnisend** at the top of the page, and the **Your Omnisend key** section shows the last four characters of your key, the Omnisend store it belongs to, and the date it was connected. Pandectes stores the key encrypted and never shows it again in full.

The **Omnisend** card on the **Integrations** page now shows **Connected**.

### Choose the automatic action

On the same Omnisend page, the **Automatic actions** section sets what is done in Omnisend once a customer confirms a data request. Pandectes runs it every few minutes, for requests confirmed after you connected Omnisend.

* **Unsubscribe the customer from Omnisend email and SMS:** for erasure requests. It stops campaigns and automations reaching the customer. On by default.

Check or uncheck it and click **Save**.

||| Omnisend doesn't let apps delete contacts. Unsubscribing stops Omnisend sending to the customer; to erase the contact, delete it in Omnisend as shown below.

### How to use it in a data request

1. In the Pandectes app, click **Reports & analytics**, then click **View report** on the **Customer data requests** card.
2. Open a request with the eye icon.
3. Click **Omnisend** in the request to open its section. You see the actions for that request type:
   * Any request: **Get Omnisend data** shows whether Omnisend has a contact for the customer's email, and their email marketing and SMS status. Then click **Download Omnisend data** to save everything Omnisend returns for the customer as a JSON file, to keep with the request or send to the customer.
   * Erasure: **Unsubscribe in Omnisend**. Then click **Open Omnisend contacts**, find the customer's email in Omnisend, and delete the contact there. Back in the request, click **Check it's deleted** to confirm the contact is gone.
   * Correction: enter the name in **First name** and **Last name** and click **Update name in Omnisend**.
4. Check **History** for every action taken on the request, automatic or from the request, with its date and result.
5. Send the customer their answer, then click **Mark fulfilled**.

If Omnisend has no contact for the customer's email, the section says so. Omnisend matches the customer by the email in the request.

|| Pandectes reports what Omnisend holds about a customer. It doesn't give legal advice, so ask a legal professional what your answer to a specific request must include.

### Replace or remove the key

Open **Integrations** and click **Configure** on the **Omnisend** card.

* To use a new key, for example after you create a new one in Omnisend, paste it in **Omnisend API key** and click **Replace key**. Your automatic action and the connection date stay the same.
* To remove the connection, click **Disconnect**. Pandectes deletes the key, and the **Omnisend** section no longer appears in your data requests.

### Troubleshooting

**This doesn't look like an Omnisend API key**
The text you pasted isn't a whole API key. Copy the key again from Omnisend. If you no longer have it, create a new key: Omnisend shows a key only once.

**Omnisend didn't accept this key**
Check that the key has the **Contacts** permission, and that you created it in the Omnisend account of the store where Pandectes is installed. If it still fails, create a new key in Omnisend and paste it again.

**Omnisend no longer accepts the saved key**
The key was deleted or changed in Omnisend, so data requests can't reach Omnisend. Create a new key in Omnisend and click **Replace key** on the Omnisend page in Pandectes.

**Omnisend returned an error**
Omnisend may be briefly unavailable. Wait a moment and try again. The automatic action retries a failed step up to 3 times, then records the failure under **History** in the request.

**The automatic action didn't run**
The automatic action only runs for erasure requests the customer confirmed after you connected Omnisend, and it runs every few minutes. Check **Automatic actions** on the Omnisend page and look at **History** in the request.

**The Omnisend section doesn't appear in a request**
Check that the **Omnisend** card on the **Integrations** page shows **Connected**, and that your plan includes customer data requests.

### Related articles

* [How to connect Judge.me to Pandectes for customer data requests](/en/article/how-to-connect-judge-me-to-pandectes-1465svp/)
* [How to create a customer data request page](/en/article/how-to-create-a-customer-data-request-page-n3c66b/)