Update customer's notes
I am trying to update customer's notes field and getting a 400 response code about some invalid CustomFieldValue
I am sending only
{
"Note": {
"note": "Some text here"
}
}
Here is the response
PUT
https://api.merchantos.com/API/Account/{AID}/Customer/{CID}.json
resulted in a `400 Bad Request` response:
{
{
"httpCode":"400",
"httpMessage":"Bad Request",
"message":"Invalid CustomFieldValue date="2017-09-21T03:00:00-0400",
}
Why is this happening and how to fix it?
4 comments
Just tested this out and it worked fine for me
It works fine for some customers, but not for all.
The easiest fix is to have the customer go to the custom field setting and check "Include Time"
I am having a similar time. Testing in Postman I am trying to add a Note to the customers notes and am getting the following error:
{
"httpCode": "400",
"httpMessage": "Bad Request",
"message": "JSON Input was invalid. Error Message: Syntax error",
"errorClass": "InvalidArgumentException"
}
My PUT statement is:
https://api.lightspeedapp.com/API/Account/{{accountID}}/Customer/8694.json
and the body is:
{
"Note": {"note" : "This is a test note"}
}
I am going to try just doing it in php
It was a problem with Postman, the actual code worked!