Our app is integrated with Clover customer DB, and sometimes we need to call the Customer update API (https://docs.clover.com/reference/handlersupdatecustomer).
Recently, we are seeing a lot of 500 Internal Server errors being returned by this endpoint (which previously worked normally) - on both production and sandbox.
Example of an API call:
$ curl --request POST --url https://sandbox.dev.clover.com/v3/merchants/{mId}/customers/{cId} --header 'Authorization: Bearer <token> Content-Type: application/json' --data ' { "emailAddresses": [ { "emailAddress": "username@domain.com", "id": ".....", "verifiedTime": 1644663534000 } ], "phoneNumbers": [ { "id": "...", "phoneNumber": "11111111111" } ], "id": "....", "firstName": "firstname", "lastName": "lastname" } '
After some debugging, it looks like the issue is the verifiedTime attribute of email address (if I omit the attribute, the update is successful).