Please find the list of acceptable values for the country field here
The Upsert API will adhere to the configuration defined under the “Allow Duplicate Contact” setting at the Location level. If the setting is configured to check both Email and Phone, the API will attempt to identify an existing contact based on the priority sequence specified in the setting, and will create or update the contact accordingly.
If two separate contacts already exist—one with the same email and another with the same phone—and an upsert request includes both the email and phone, the API will update the contact that matches the first field in the configured sequence, and ignore the second field to prevent duplication.
Request
Provide your bearer token in the Authorization header when making requests to protected resources.
Headers
Access Token
API Version
Body
This field will overwrite all current tags associated with the contact. To update a tags, it is recommended to use the Add Tag or Remove Tag API instead.
User's Id
Responses
200
Successful response
Body
visitorId is the Unique ID assigned to each Live chat visitor.
422
Unprocessable Entity
Body
401
Unauthorized
Body
400
Bad Request