Skip to main content
Problem Solver III
June 3, 2024
Solved

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

  • June 3, 2024
  • 2 replies
  • 92 views

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

    This topic has been closed for replies.
    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.

    2 replies

    dartacusAuthor
    Problem Solver III
    June 3, 2024

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

    cdetdiAnswer
    Problem Solver III
    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.