A few days ago we started getting 400’s in response to list subscribe calls where we weren’t in the past. I’ve scrubbed these examples of PII
On August 27, we sent:
POST https://a.klaviyo.com/api/v2/list/list_identifer/subscribe?api_key=:censored:
{
"profiles": l{
"email": "first.last@gmail.com",
"$first_name": "First",
"$last_name": "Last",
"$phone_number": "5191234567",
"$city": "Kincardine",
"$region": "Ontario",
"$country": "Canada",
"$zip": "N2Z 3A8"
}]
}
which returned a 200 and subscribed the user to the list.
However, now, as of August 31, we send
POST https://a.klaviyo.com/api/v2/list/list_identifier/subscribe?api_key=:censored:
{
"profiles": l{
"email": "first_last@hotmail.com",
"$first_name": "first",
"$last_name": "last",
"$phone_number": "5192345678",
"$city": "Windsor",
"$region": "Ontario",
"$country": "Canada",
"$zip": "N9H 2L3"
}]
}
And we get back a 400 with the detail "+5199199294 is not a valid phone number.”
It seems like on Wednesday you changed the API and/or backend to not add a “+” instead of a “+1” when seeing Canada. It would be great to go back to the old behavior where supplying the Country field was sufficient to get the phone number into the database.