Shopify Refer a Friend Integration (Advanced)

You can find the first part of the document here.

Integration Phase:

For this part, We will see an example with Klaviyo integration.

Klaviyo Integration with Digioh

Click on Integration From Digioh Account. We will create four integrations step by step.

Klaviyo integration

Integration number 1:
Select RAF Invitation Integration with Shopify App

RAF integration with Shopify

Form Post Url: https://phplaravel-692809-2652143.cloudwaysapps.com/api/coupon
Post Type: JSON
Field mapping:

Field mapping

Integration number 2
RAF Invitation Integration with Klavyio after Shopify App response

RAF App response

Form Post Url: https://a.klaviyo.com/api/v2/list/list_id/members?api_key=
list_id: is your klaviyo list id
api_key: will be your klaviyo api key
Post type: JSON Raw
For Klaviyo List id please visit this link

List Info

And click on the list name and copy the list id from the top URL
List Name

Field mapping:
Go to Integration Advanced Settings and map your fields:

{"profiles":[{"email":"[EMAIL]","coupon_code":"[INTEGRATION|61802|json.coupon_code]"}]}

Advanced integration

We use the Digioh Piping integration, it depends on a parent integration. When we get the response from parent integration, this integration will trigger and send the data to Klaviyo.
Here we are getting the coupon code in response from Shopify App (integration id 61802). After the response is complete, we integrate that coupon with Klaviyo.

Integration number 3:
RAF Referrer Reward Integration with Shopify App

Raf vs shopify app

Form Post Url: https://phplaravel-692809-2652143.cloudwaysapps.com/api/referrer/coupon
Post Type: JSON

Field mapping:

Field mapping 3

Integration number 4:
RAF Referrer Reward Klaviyo Integration

Integration number 4

Form Post Url: https://a.klaviyo.com/api/v2/list/list_id/members?api_key=
list_id: is your klaviyo list id
Api_key : your klaviyo api key
Post Type: JSON Raw
For Klaviyo List id please visit this link and follow the same steps mentioned in Integration number 2.

Field mapping:

{"profiles":[{"email":"[EMAIL]","coupon_code":"[INTEGRATION|61802|json.coupon_code]"}]}

Field mapping 4

Same above, we use the Digioh Piping integration. It depends on parent integration. When we get the response from parent integration, this integration will trigger and send the data to Klaviyo.
Here we are getting the referrer email in response from Shopify App(integration id 61818). After the response is complete, we integrate that email with Klaviyo.

If you have any questions about setting up Digioh Shopify Refer a Friend, send us an email at contact@digioh.com, and we’ll be glad to help!