Skip to main content

Klaviyo Sync

If you run your marketing in Klaviyo, Weave can send each member's loyalty moments there as events on their Klaviyo profile, with their balances and tiers as profile properties. You build flows and segments in Klaviyo on loyalty data without writing a receiver.

For example, a coffee chain triggers a Klaviyo flow on Loyalty Tier Achieved to send a Gold welcome email, and builds a segment of members whose loyalty_balance is over 1,000 points.

What Weave sends​

Each moment becomes one Klaviyo event, named by its metric:

Klaviyo metricWeave event typeEvent properties
Loyalty Points Earnedprogram.bank.program.currency.issuedpoints, currency_code
Loyalty Points Redeemedprogram.bank.program.currency.withdrawnpoints, currency_code
Loyalty Tier Achievedcustomer.tier.issuedtier_code, tier_name
Loyalty Reward Issuedcustomer.coupon.issuedcoupon_code, offer_code, offer_name
Loyalty Badge Earnedcustomer.badge.issuedbadge_code, badge_name

Every event also carries loyalty_event_id.

Weave matches the member's Klaviyo profile by external_id (the Weave customer ID), plus their email and phone number when they have them. It sets these profile properties, read at the moment each event is sent:

Profile propertyValue
loyalty_member_idThe Weave customer ID.
loyalty_balanceThe member's balances.
loyalty_tierThe member's tiers.
loyalty_programsThe programs the member belongs to.

Weave never sends a member who has been erased or who withdrew email marketing consent, including a retry queued before they did.

Create a Klaviyo key​

In Klaviyo, create a private API key with:

  • read access to Accounts
  • write access to Events and Profiles

Connect it​

Create a webhook endpoint with the KLAVIYO connector and the key as its credential. There's no URL to send, because Weave knows where Klaviyo is.

curl -X POST https://api.loomloyalty.com/webhooks/endpoints \
-H "Authorization: Bearer $LOOM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpointType": "CLIENT",
"connectorKind": "KLAVIYO",
"credential": "YOUR_KLAVIYO_PRIVATE_KEY",
"description": "Klaviyo",
"filterTypes": [
"program.bank.program.currency.issued",
"program.bank.program.currency.withdrawn",
"customer.tier.issued",
"customer.coupon.issued",
"customer.badge.issued"
]
}'

Choose the moments to send in filterTypes. A Klaviyo endpoint takes only the five event types above.

Weave reads your Klaviyo account once to check the key before it saves anything. The key is never shown again, so the endpoint has no signing secret to read or rotate. To replace the key, update the endpoint with a new credential.

Error codeMeaning
WEBHOOK_KLAVIYO_KEY_REJECTEDKlaviyo didn't accept the key. Nothing was saved. Check the key's access and try again.
WEBHOOK_KLAVIYO_UNAVAILABLEKlaviyo didn't answer the key check. Nothing was saved. Retry later.
WEBHOOK_KLAVIYO_EVENT_TYPE_NOT_SUPPORTEDfilterTypes names an event type Klaviyo doesn't receive.

Test it​

Send a test message from the endpoint (POST /webhooks/endpoints/{endpointId}/test-messages, or Developers, then Webhooks in the Dashboard). It lands in Klaviyo as Loyalty Test Event on a profile with the external ID loom-loyalty-test-profile, never on a real member.

Deliveries​

Deliveries show in the Dashboard under Developers, then Webhooks, like any other endpoint. Weave retries when Klaviyo is busy or down. If Klaviyo later refuses the key, for example because it was revoked, Weave turns the endpoint off at once. Create a new key and update the endpoint.