Skip to main content
Solved

Possible bug with API calls to https://a.klaviyo.com/api/v1/person/


Forum|alt.badge.img+5

Hi,

I’m aware that I need to update to the newer API, but...

When using the v1 API (via cUrl) to check to see if a profile has email consent, the response field $consent only includes sms even though the profile is subbed for email and sms.

Here’s my profile:

But the API response is:

{"object": "person", "id": "THE_ID", "$address2": "", "$longitude": -0.0827, "$latitude": 51.4483, "$address1": "", "$region": "Southwark", "$city": "KINGSBRIDGE", "$country": "GBR", "$zip": "MY POSTCODE", "$title": "Mr", "$phone_number": "+MY NUMBER", "$last_name": "Dart", "$email": "MY EMAIL ADDRESS", "$locale": "", "$first_name": "Gareth", "$organization": "", "$timezone": "", "$id": "", "MailChimp Rating": 2, "Expected Date Of Next Order": "05/21/2024", "active": 0, "orphan": 0, "is_uk": 1, "is_row": 0, "is_ml": 0, "hs_cust_id": "187483", "hs_contact_type": "cust_table", "hs_subscribed_date": "2018-06-25 15:28:58", "hs_no_of_orders": 0, "hs_order_total_gbp": 0, "hs_last_ordered_datetime": "2018-06-26 16:48:06", "hs_marked_as_fraud": "0", "hs_product_tags_purchased": [], "hs_brands_purchased": ["Herring", "Saphir", "Wildsmith"], "hs_date_of_last_return": "2022-01-14 09:35:32", "hs_returned_product_ids": ["18878", "11614", "8712"], "hs_last_shoe_size_bought": "9 F - Medium", "hs_last_non_shoe_size_bought": "8 F - Medium", "updated": "2024-06-03 08:15:02", "$consent": ["sms"], "$consent_timestamp": "2024-04-19T14:20:56.006Z", "is_cordwainer": 1, "$source": "Neutral modern", "Newsletter gender": ["Everything"], "$consent_method": "Klaviyo Form", "$consent_form_id": "U24LLg", "$consent_form_version": 13289838, "$phone_number_region": "GB", "email": "MY EMAIL ADDRESS", "first_name": "Gareth", "last_name": "Dart", "created": "2022-04-03 13:24:32"}

 

Is this normal behaviour?

Many thanks,

Gareth

Best answer by cdetdi

Yes this is normal on API v1 where consent tag is used for SMS not for email subscription which uses lists subscribes. This changes a bit in the latest API.

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Forum|alt.badge.img+5
  • Author
  • Problem Solver III
  • 58 replies
  • June 3, 2024

EDIT: I have verified that I’m using the correct private key for my production account.


Forum|alt.badge.img+6
  • Problem Solver III
  • 38 replies
  • Answer
  • June 4, 2024

Yes this is normal on API v1 where consent tag is used for SMS not for email subscription which uses lists subscribes. This changes a bit in the latest API.