Open joeynmq opened 3 days ago
The customer encountered the 409 Conflict error when sending Identify events to Klaviyo.
Having reviewed our integration code here, we will first attempt to create a new profile in Klaviyo. If the first request returns with a 409 error code, we will then send a second request to update the existing profile with the given profile ID:
const profile = await request(`${API_URL}/profiles/`, { method: 'POST', json: profileData }) ... if (response?.status === 409) { const profile = await request(`${API_URL}/profiles/${id}`, { method: 'PATCH', json: profileData })
ASAP once approved
https://segment.atlassian.net/browse/KCS-1535
Proposed changes
The customer encountered the 409 Conflict error when sending Identify events to Klaviyo.
Having reviewed our integration code here, we will first attempt to create a new profile in Klaviyo. If the first request returns with a 409 error code, we will then send a second request to update the existing profile with the given profile ID:
Merge timing
ASAP once approved
Related issues (optional)
https://segment.atlassian.net/browse/KCS-1535