API Contacts - Error


#1

I’m getting API error, when I need to update a contact.

jSon I sent:
{“properties”:[{“property”:“firstname”,“value”:“XXXXXXXXXXXXXXXXXXXXX”},{“property”:“phone”,“value”:“XXXXXXXXXXXXXXX”},{“property”:“message”,“value”:“Hola, estamos interesados en recibir información sobre los valores y financiación de la Tiggo3. Gracias. Saludos”},{“property”:“departamento”,“value”:“PLANES DE AHORRO”},{“property”:“hubspot_owner_id”,“value”:“27935705”},{“property”:“origen_planes”,“value”:“adw_bus_fab”}]}

Hubspot Answer
{“status”:“error”,“message”:“Invalid JSON input: Invalid UTF-8 middle byte 0x6e at line 1, column 199”,“correlationId”:“ae8db1ff-e16c-4643-822c-c6b234051cc0”,“requestId”:“822b7ae268324e1797e930b56fa458aa”}


#2

I can’t tell if this particular thing is just a forum thing, but your quotes were all funny which caused issues with the json for me. Ultimately what I came up with that should work for you is:
{
“properties”: [{
“property”: “firstname”,
“value”: “XXXXXXXXXXXXXXXXXXXXX”
}, {
“property”: “phone”,
“value”: “XXXXXXXXXXXXXXX”
}, {
“property”: “message”,
“value”: "Hola,estamos interesados en recibir información sobre los valores y financiación de la Tiggo3.Gracias.Saludos "
}, {
“property”: “departamento”,
“value”: “PLANES DE AHORRO”
}, {
“property”: “hubspot_owner_id”,
“value”: “27935705”
}, {
“property”: “origen_planes”,
“value”: “adw_bus_fab”
}]
}