Advertisement
huyhung94

BeeIQ - Add contact

Jan 22nd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.66 KB | None | 0 0
  1. POST /listeners/5c45b0a59499c1a405150592/6edca6e53b2577961a9634917a43dcf02903fc2a HTTP/1.1
  2. Host: onaclover.beeiq.co
  3. Content-Type: application/json
  4.  
  5. # Error:
  6. {
  7.     "success": false,
  8.     "message": "Resource not found"
  9. }
  10.  
  11. # Payload:
  12. {
  13.     "senderUser": "hainp@wefit.vn",
  14.     "data": [
  15.         {
  16.             "actionType": "add-contact",
  17.             "data": {
  18.                 "contactType": "customer",
  19.                 "type": 0,
  20.                 "name": "Huy",
  21.                 "lastname": "Nguyen",
  22.                 "title": "This is title",
  23.                 "passport": "1945295865",
  24.                 "gender": 1,
  25.                 "dateOfBirth": "Fri Jan 01 1993 00:00:00 GMT+0700 (ICT)",
  26.                 "emails": [
  27.                     {
  28.                         "value": "huy.nguyen@htklabs.com"
  29.                     }
  30.                 ],
  31.                 "phones": [
  32.                     {
  33.                         "value": "01234567890"
  34.                     }
  35.                 ],
  36.                 "addresses": [
  37.                     {
  38.                         "street": "58 Ton That Dam",
  39.                         "city": "Da Nang",
  40.                         "state": "Thanh Khe",
  41.                         "zip": "5100000",
  42.                         "country": "VN"
  43.                     }
  44.                 ],
  45.                 "websites": [
  46.                     {
  47.                         "value": "htk-inc.com"
  48.                     }
  49.                 ],
  50.                 "im": [
  51.                     {
  52.                         "protocol": "Facebook",
  53.                         "value": "Huy Nguyen Viet"
  54.                     }
  55.                 ]
  56.             }
  57.         }
  58.     ]
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement