Hi,
I have been receiving corrupted error message when I try to create a contact using this endpoint → POST - contacts/v1/contact. I am working on handling error scenario in our integration, so I know the cause of the error. but the error response message that I received seems to be corrupted. I am unable to read thorugh the error message due to this issue.
Example
{
properties: {
firstname: 'Trial_01',
hs_lead_status: '99656+6666',
email: 'this@example.com',
range: '50',
number_input: '555',
drop_down: 'Option 3',
phone: '9888',
}
So this is an example error case scenario where i know the hs_lead_status cannot be set to ‘99656+6666’ because it has fixed set of values.
Error Message Response I got -
Property values were not valid: [{"isValid":false,"message":"99656+6666 was not one of the allowed options: [label: \"New\"\nvalue: \"NEW\"\ndisplay_order: 0\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Open\"\nvalue: \"OPEN\"\ndisplay_order: 1\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"In Progress\"\nvalue: \"IN_PROGRESS\"\ndisplay_order: 2\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Open Deal\"\nvalue: \"OPEN_DEAL\"\ndisplay_order: 2\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Unqualified\"\nvalue: \"UNQUALIFIED\"\ndisplay_order: 3\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Attempted to Contact\"\nvalue: \"ATTEMPTED_TO_CONTACT\"\ndisplay_order: 4\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Connected\"\nvalue: \"CONNECTED\"\ndisplay_order: 5\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n, label: \"Bad Timing\"\nvalue: \"BAD_TIMING\"\ndisplay_order: 6\ndouble_data: 0.0\nhidden: false\ndescription: \"\"\nread_only: false\n]","error":"INVALID_OPTION","name":"hs_lead_status"}]
Since its is corrupted, I am unable to get data out of it. Any help would be great.
Thanks