contact created JSON
{
"event_code": "contact created",
"contact": {
"_id": {
"type": "objectId",
"desc": "contact id on ohochat"
},
"social_profile": {
"platform": {
"type": "String",
"enum": ["facebook", "line", "instagram"]
},
"id": {
"type": "String",
"desc": "line user id, FB user id"
},
"platform_id": {
"type": "String",
"desc": "line oa channel id, FB page id"
},
"platform_name": {
"type": "String",
"desc": "line oa channel name, FB page name"
}
},
"platform_display_name": "String",
"display_name": "String",
"first_name": "String",
"last_name": "String",
"customer_id": "String",
"phone": "String",
"email": "String",
"country": "String",
"city": "String",
"gender": "String",
"age": "String",
"birth_date": "Date",
"chat_tags": [{
"_id": ObjectId,
"keyword": "String",
}],
"contact_tags": [{
"_id": ObjectId,
"keyword": "String",
}],
}
}
contact updated JSON
{
"event_code": "contact updated",
"contact": {
"_id": {
"type": "objectId",
"desc": "contact id on ohochat"
},
"social_profile": {
"platform": {
"type": "String",
"enum": ["facebook", "line", "instagram"]
},
"id": {
"type": "String",
"desc": "line user id, FB user id"
},
"platform_id": {
"type": "String",
"desc": "line oa channel id, FB page id"
},
"platform_name": {
"type": "String",
"desc": "line oa channel name, FB page name"
}
},
"platform_display_name": "String",
"display_name": "String",
"first_name": "String",
"last_name": "String",
"customer_id": "String",
"phone": "String",
"email": "String",
"country": "String",
"city": "String",
"gender": "String",
"age": "String",
"birth_date": "Date",
"chat_tags": [{
"_id": ObjectId,
"keyword": "String",
}],
"contact_tags": [{
"_id": ObjectId,
"keyword": "String",
}],
},
"updated_field": [
"contact_tags"
]
}