Magento DSR integration

Automate privacy request handling by integrating MineOS with Magento.

✓ Preview✓ Delete✓ Anonymize✓ Get a copy

Missing an action you need, or an integration we don't support yet? Contact your Customer Success Manager.

This integration automates privacy requests for Magento. MineOS looks up the Magento customer that matches the requester's email address, then lets you preview, anonymize or copy it. The Magento + Twilio type also removes the customer's text messages from Twilio.

How It Works

  • Preview: before MineOS changes or copies anything, you can preview what it found for the requester. With the Magento type, that is the matching customers (ID, email address and name) and orders (order ID, creation date and product ID). With the Magento + Twilio type, it is the Twilio messages found for the customer's phone numbers.
  • Anonymize: with the Magento type, MineOS replaces the customer's email address with a generated placeholder address and clears the customer's name, date of birth and addresses. On the customer's orders it replaces the email address with the same placeholder and clears the name fields.
  • Get a copy: with the Magento type, MineOS sends the requester a copy of their Magento customer and order data.
  • Delete: with the Magento + Twilio type, MineOS finds the phone numbers on the customer's addresses and order billing addresses in Magento by email, then deletes the SMS and WhatsApp messages sent to those numbers in Twilio. If no phone number is found, the task is reported as not found.

Choose the right integration type

Integration typeWhat it does
MagentoPreviews, anonymizes and copies the requester's customer and order data.
Magento + TwilioPreviews and deletes the messages sent to the requester's phone number in Twilio. Does not copy.

What MineOS Does in Magento

MineOS works with Magento customers and orders through the Magento REST API, and, with the Magento + Twilio type, with Twilio messages.

Magento

  • Finds the requester by: email address — MineOS searches customers whose email matches the requester's email, and orders whose customer_email equals it. All matching customers and orders are included.

  • Preview shows: for each customer, id, email and name (firstname and lastname); for each order, entity_id, created_at and product_id.

  • Delete: anonymizes instead of deleting. MineOS generates one placeholder address in the form <random ID>@emaildomain.com, then:

    • on each matching customer, sets email to the placeholder, sets firstname and lastname to a blank space, empties middlename, prefix and dob, and removes all addresses;
    • on each matching order, sets customer_email to the placeholder and empties customer_firstname, customer_lastname, customer_middlename, customer_prefix and customer_suffix.

    Customers and orders are not deleted, and other order details (such as the billing address, items and totals) are not changed.

  • Get a copy includes: the matching customer records with their properties, such as id, email, firstname, middlename, lastname, prefix, suffix, dob, taxvat, created_at, updated_at, created_in, addresses (street, city, postcode, country, telephone, company, VAT ID) and newsletter subscription status; and the first matching order with all its properties as returned by Magento, including its billing_address.

Magento + Twilio

  • Finds the requester by: email address — MineOS searches Magento customers by email and orders by customer_email, and collects the telephone of every customer address and every order billing_address. For each phone number, it lists the Twilio messages sent to that number by SMS (To = the number) and by WhatsApp (To = whatsapp: plus the number), up to 1,000 messages per search. If no phone number is found in Magento, the task is reported as not found.
  • Preview shows: for each message, its sid, to and status.
  • Delete: permanently deletes each message found from your Twilio account. Nothing is changed in Magento.

Before You Start

  • Make sure you have permission to create integrations in your Magento admin portal.
  • For Magento + Twilio, you also need permission to create API keys in Twilio, and customer phone numbers in Magento must use an international format such as +1234567890.

Setting Up

Step 1: Create an integration in Magento

  1. Log in to your Magento admin portal and go to System → Integrations → Add New Integration.
  2. Enter a name (for example, MineOS) and a contact email address. Leave the other fields empty.
  3. Open the API tab and grant access to these resources (both integration types look up the customer and their orders): under Sales, Operations → Orders → Actions; under Customers, All Customers.
  4. Click Save, then click Activate next to the integration and click Allow.
  5. Copy the Access Token and your Magento store URL.

Step 2 (Magento + Twilio only): Create a Twilio API key

  1. Log in to Twilio and go to Account → General settings. Copy the Account SID.
  2. Go to Account → Keys & Credentials → API keys and click Create API Key.
  3. Name the key, choose the Standard key type and click Create.
  4. Copy the key SID and Secret.

Step 3: Connect in MineOS

  1. Log in to MineOS. On the left sidebar, click Inventory → Data Sources. Click Add Data Source, search for Magento and click Add.
  2. Open the Magento data source → Integrations tab → Request Handling section → select Integration.
  3. In the Integration type dropdown, choose Magento or Magento + Twilio.
  4. Fill in Magento API Key (the access token) and Magento domain. Enter the domain as a full URL, including https:// (for example, https://store.example.com). For Magento + Twilio, also fill in Twilio Account Id (SID), Twilio API Key SID and Twilio API Key secret.
  5. Click Test your integration so MineOS can verify the credentials.
  6. Click Test & Save.

You're done! MineOS has been connected to your Magento store.

Using several integration types together

If you send SMS or WhatsApp messages to your Magento customers through Twilio, add Magento + Twilio next to Magento, so a deletion request covers both the requester's store data and the messages sent to them.

Each integration type is a separate instance of the Magento data source, and you can add all of them to the same workflow:

  1. On the left sidebar, click Inventory and open the Magento data source.
  2. Go to the DSR & integrations tab and click Add instance.
  3. Under Action for fulfilling requests, select Integration. In the Integration Type dropdown, choose the next type (Magento or Magento + Twilio), then click Set up integration and connect it as described in Setting Up.
  4. Repeat steps 2 and 3 for each integration type you want to use.
  5. Open the privacy right's Eligibility & workflows tab. Under Data sources to process, click + Add and add each Magento instance. Add both to your deletion workflow, and the Magento instance to get a copy.

When a request comes in, MineOS runs every instance in the workflow and shows each one as a separate line in the request.

Using the Integration in Requests

To handle requests automatically, add the Magento integration to the workflows of the privacy rights it should handle: deletion (Magento + Twilio), or get a copy and anonymization (Magento).

Need Help?

If you need any help with this integration, please contact your Customer Success Manager. They will be happy to assist you!


Did this page help you?