Skip to main content
All CollectionsIntegrationsEmail Integrations
How does Klaviyo Integration work?
How does Klaviyo Integration work?

Learn how to set up email flows in Klaviyo using yayloh events

Vineeta Pendse avatar
Written by Vineeta Pendse
Updated over 2 weeks ago

Use yayloh events to create custom flows in Klaviyo. yayloh creates events in Klaviyo for each return request and store credit, enabling you to set up targeted and personalized email campaigns.

In this article:


Important Notes:

  1. Event Visibility: yayloh events appear in Klaviyo only after a return request or store credit is created.

  2. BCC Emails: Add return_notifications@yayloh.com as a BCC recipient in your Klaviyo emails.

  3. Transactional Emails: Ensure all return notifications in Klaviyo are set as transactional (Read more)

  4. Deactivate yayloh Notifications: Once Klaviyo is live, deactivate email notifications in yayloh to avoid double messaging.


1. Return request event

The return request event enables you to send return confirmation emails directly from Klaviyo instead of yayloh.

a. Sample metrics for 'yayloh - return request' event.

Find all the event metrics in your Klaviyo.

commercialInvoiceExists: false
commercialInvoiceUrl:
includesClaim: false
includesExchange: false
includesReturn: true
labelExists: true
labelUrl: https://prod-shipping-label-yayloh.s3.amazonaws.com/2024-09-30/Return_shipping_label_65f1dc7f-2e5b-422e-9329-d61b0ead25f8.pdf
orderNumber: 991254
returnByType: {"return": [{"id": 9748086, "productSku": "X1392001", "sizeColorSku": null, "imageUrl": "https://cdn.shopify.com/s/files/1/0583/5508/9562/files/X1392001_PRODUCTPAGE.webp?v=1682689576", "name": "AA x Mulberry Top Handle Bag", "quantity": 1, "size": null, "color": "White/Black", "sellingPrice": 1330.0, "currencyCode": "SEK", "returnType": "return", "reasonText": "The fit is not as expected"}], "exchange": [], "claim": []}
returnedItems: {'id': 9748086, 'productSku': 'X1392001', 'sizeColorSku': None, 'imageUrl': 'https://cdn.shopify.com/s/files/1/0583/5508/9562/files/X1392001_PRODUCTPAGE.webp?v=1682689576', 'name': 'AA x Mulberry Top Handle Bag', 'quantity': 1, 'size': None, 'color': 'White/Black', 'sellingPrice': 1330.0, 'currencyCode': 'SEK', 'returnType': 'return', 'reasonText': 'The fit is not as expected'}
returnTypeSummary: return
shippingCompany: DHL
trackingNumber: 373325385311948465
trackingUrl: None

b. Example of a flow and segmentation in Klaviyo:

c. Use Cases and Examples:

  1. Return Confirmation Email (No Shipping Label)
    Trigger confirmation emails for customers in countries where your yayloh doesn’t generate return shipping labels.

  2. Return Confirmation Email (With Shipping Label)
    Send emails with a shipping label URL for customers in countries where your yayloh generates labels.

  3. Localized Emails

    Use Yayloh events and profile data in Klaviyo to send emails in a customer’s local language.
    Example: Send emails in French to customers in France.

  4. Claims management email (No Shipping Label)

    Create a separate email template that excludes the download button for the return label, allowing more controlled communication around claims. Labels can then be sent or withheld depending on your process for handling returned 'Claim' items.

  5. Adding product details in Klaviyo emails:
    Include product details from Yayloh events in your Klaviyo emails.

    Follow this video for step-by-step instructions.


2. Store-credit/Discount code event

This event lets you send store credit emails via Klaviyo.

a. Sample metrics for 'yayloh - store credit' event.

Find all the event metrics in your Klaviyo.

currencyCode: SEK
discountCode: YAYY-D8332FE2
storeCreditAmount: 568

Applicable to:

  • Shopify: For customers using discount codes as store credits.

  • Centra: For customers using vouchers as store credits.

b. Example of a store-credit flow in Klaviyo:

c. Use Cases and Examples:

  1. Automate store credit notifications.

    Trigger an email with discount code or voucher for customers who requested it as a refund method.


3. Targeted Campaigns

Leverage return request and store credit events for targeted campaigns. Here are a few ideas:

  • Exclusive Discounts: Offer additional discounts to customers who returned items without opting for an exchange.

  • Follow-Up Emails: Reach out to customers who returned specific products to gather feedback or offer size recommendations.

  • Incentives for Claims: Provide special offers to customers who filed claims, encouraging them to shop again.

Did this answer your question?