Send credit notification email with Klaviyo
To automate email notifications for Koin, you can use Shopify Flow along with an email service. There are two methods to set up email notifications: using Shopify Email and Klaviyo.
This instruction is for the case you use Klavio app to send automated email.
Here is a tutorial video to set up the store credit with Klaviyo:
Below is the step-by-step instructions.**
2.1 Create Shopify Flow
Step 1: Open Shopify Flow
Step 2: Select a Trigger from Koin
Step 3: Select Klaviyo as the action from Shopify Email > choose Track an Event
Step 4: Fill information and activate the Flow
Some required fields:
- Klaviyo Public API Key: Navigate to "Account > Settings > API Keys" inside Klaviyo app to get your public API key
- Customer Email Address: the type of customers email that you want to sent the notification to. The default one is {{customer.email}}
- Event Name: Choose a name you want. It will appear on the customer profile's event timeline.
- Event Properties: Add variable > choose **stringifyTransaction: {{stringifyTransaction}}**
Then Turn on the Flow.
2.2 Create order to transfer trigger to Klaviyo
Create a test order on your store to activate the Flow above.
If you’re using a different trigger event, just make sure the test order passes through that specific event to continue.**
2.3 Create email on Klaviyo
Step 1: Go to your Klaviyo portal > Content > Templates > Create
Step 2: Design the Notification email that you want to send to the customers.
Klaviyo provides many type of blocks for you to design an eye-catching and professional email.
Step 3: Show the exact amount of credit on the email.
This step requires adding a dynamic variable to the text area, below are some available variables:
event.formattedAmount|default:''
: the credit amount of this order, in the display-ready value, includes currency. For example: $10.00 or €10.00
Amount
The credit amount of this order, but showing as a raw number. For example: 10.
balance
The total balance of the customers, but showing as a raw number. For example: 25
formattedBalance
The total balance of the customers, but showing in the display-ready value, includes currency. For example: $25.00 or €25,50
"You have earned ${{ event.formattedAmount|default:'' }} with this order." and the actually amount the customer earned is £10.
Then the message on the email will show as "You have earned £10.00 with this order."**
Other elements on the emails can be designed with Klaviyo design tools.
2.4 Create a Klaviyo Flow to automatically send the email
If you're already familiar with Klaviyo Flow, feel free to skip this stepStep 1: Go to your Klaviyo portal > Flows > Create Flow > Build your own
Step 2: Set up Flow.
- Trigger: open Your Metrics > Shopify > Choose the exact event that was sent from Shopify. In this case, it’s Koin Credit Issued.
- Add action > choose Email > set up the Title, sender information…
- On Templates section > choose Select Template and choose the one you set up on the previous step.
- Optional: if you want to add some delay time before sending or set up condition for the flow, explore the Klaviyo Flow and add it into the flow.
- Review and Turn on the Flow.
Updated on: 11/08/2025
Thank you!