/
NUTRINTG fromSHPF Config

NUTRINTG fromSHPF Config

How to integrate Shopify store with CDP

 Click here to expand...
 Create webhook in the Shopify store

Webhooks send required data to CDP Middleware after the appropriate event occurred, for example, customer created account.

  1. Go to the Notification settings page of the Shopify store:
    [name specific to this store].myshopify.com/admin/settings/notifications E.g. scholluk.myshopify.com/admin/settings/notifications
  2. Go to the Webhooks section at the bottom of the page
  3. Create 3 webhooks according to table Requirements:
    1. Click "Create webhook" button
    2. Choose "Event" type
    3. Choose "Format" type
    4. Provide "URL"
    5. Choose "Webhook API version"


REQUIREMENTS
EventFormatURLWebhook API version

Customer creation
(customers/create)

JSONhttps://api.cdp-rb.com/shopify/customer2019-04

Customer update
(customers/update)

JSONhttps://api.cdp-rb.com/shopify/customer2019-04

Order creation
(orders/create)

JSONhttps://api.cdp-rb.com/shopify/order2019-04


Provide below properties to Product Analyst of CDP Middleware:

  1. URL of the notification settings page of Shopify store, e.g. scholluk.myshopify.com/admin/settings/notifications
  2. Brand of the store, e.g. Dettol
  3. Properties of LDS documents accepted by customer (Privacy Policy, Terms and Conditions):
    BusinessId, RevisionId, ConsentAcceptedInd, ConsentDesc, MandatoryInd, CustomName, AgreementDate

  4. HMAC (provided at the bottom of Notifications Settings page). For security reasons add value in the online sheet HMAC SHPF  in green color (so that we knew it's new value). 



 Provide API credentials for this store to CDP Middleware team

Credentials will enable CDP Middleware to send requests to this store in order to fetch data of Abandoned checkout and more.

  1. Go to the "Manage Private Apps" page:
    [name specific to this store].myshopify.com/admin/apps/private/  E.g. scholluk.myshopify.com/admin/apps/private/ 
  2. Click Create a new private app.
  3. Set below properties
    Private app name: CDP Middleware [today's date]  E.g. CDP Middleware 29.07.2019
    Emergency developer email: [CDP Middleware Software Team Leader] At the moment: Kostiantyn.Ivanov@rb.com
    Permissions: Products, variants and collections - read access. Rest of the items should be set to "No access" for security reasons.

    Webhook API version: 2019-07

    and click Save.
  4. After page is refreshed, copy API key and Password and send in separate emails to CDP Middleware Software Team Leader.

Instruction for Middleware team

 Click here to expand...

New store rollout checklist

  1. Send request Epsilon to add account source codes and data source code
  2. Add HMAC and store URL to the HMAC list in order to pass validation byt its webhook
  3. Add store URL to Shopify URL Mapping.xlsx (by editing the file with Atlassian plugin - screenshot below) and its equivalent in the Mulesoft config. As we accept webhooks only from predefined URL's.


We had talked about a direct API for you to set up some of the metadata. So as it stands today this is what would have to happen for a new country/site:

1. RB inform Epsilon of the new country/site that will be upcoming
2. Epsilon sets up the appropriate brand_org_code, acct_src_Code, data_source_code, and data retention metadata
3. Epsilon maps the appropriate subscriptions to the sites
4. If this is a new country we have not brought in before we will need to get data in advance to do a DQA to see if there are any Agility Connect adjustments like we saw with Germany.
5. We would have to schedule the initial load coordinated with timing for the go-live.
6. Run the initial load test in UAT to confirm as well as a test UAT connection from the site via the API/middleware
7. Coordinate the production initial load and turn on the web site for production.


For adding new forms for an already converted site:

1. Epsilon would just to need to learn what the data source and expiry date is for the new form and add it to the metadata prior to the web site communicating data for the form.


Troubleshooting

 Click here to expand...
 CDP API responded with status 400. tatus 400. "Message": "The user is not authorized for this program."

Problem: After adding metadata for new source Epsilon CDP has not cleared the cache and has not given appropriate permissions on their API server.
Solution: Ask Epsilon CDP team to do so, by sending email to Puneet Akali Puneet.Akali@epsilon.com  and Ignacio Olea Ignacio.Olea@epsilon.com