Member / ข้อมูลสมาชิก

ใช้สำหรับดึงข้อมูลสมาชิก บัตรสมาชิก รายละเอียดของสมาชิก เพศ เดือนเกิด อีเมล รูปภาพ และอื่นๆ

endpoint
GET /api/business/this/member/{{receiver}}
GET /api/business/this/member/{{pointspot_id}}/basic
Request parameters
#PropertyDescription
1 receiver หมายเลขมือถือ หรือ PointSpot ID (member_badge_code)
GET Member by receiver
GET /api/business/this/member/{{receiver}} HTTP/1.1
Host: globalapi.pointspot.co
Authorization: Bearer {{business_token}}
Response parameters
#PropertyDescription
1 result สถานะของการทำงาน
2 is_proflie สถานะของ profile
3 is_register สถานะการสมัคร PointSpot
4 is_subscribe สถานะการเป็นสมาชิกธุรกิจ
5 is_hide_business สถานะการซ่อนธุรกิจ
6 member_badge_code รหัสสมาชิกของ Pointspot หรือ pointspot_id
7 first_name ชื่อ ของสมาชิก
8 last_name นามสกุล ของสมาชิก
9 email อีเมล
10 date_of_birth เดือนเกิดของสมาชิก (ไม่เก็บวันที่)
11 gender เพศ
12 photo_uri รูปภาพสมาชิก
13 country_code รหัสประเทศ
14 mobile_number หมายเลขมือถือ
15 balance พอยท์ของสมาชิก
16 first_subscribe_date วันที่กดสมัครสมาชิกธุรกิจครั้งแรก
17 subscribe_date วันที่กดสมัครสมาชิกธุรกิจครั้งสุดท้าย
18 hide_business แสดง / ซ่อน ธุรกิจ
19 block_noti_business สถานะการปิดไม่รับแจ้งเตือน
20 transaction_count จำนวนรายการของสมาชิก
21 trans_member_id # รายการบัตรสมาชิก
22 card_id # ข้อมูลบัตรสมาชิก
23 expiry_point จำนวนพอยท์ที่จะหมดอายุ
24 date_expirypoint วันที่หมดอายุของพอยท์
25 point_balance จำนวนพอยท์
26 point_pending จำนวนพอยท์ ที่ใช้แล้วรอการตัดพอยท์
RESPONSE
{
  "result": true,
  "route": "GET /api/business/127c0c37/member/{{mobile_number}}",
  "method": "api/Business Authorization/member",
  "eventDate": "2020-12-04T04:25:39.945Z",
  "data": {
    "is_profile": true,
    "is_register": true,
    "is_subscribe": true,
    "is_hide_business": false,
    "profile": {
      "member_badge_code": {{pointspot_id}},
      "first_name": "{{firstname}}",
      "last_name": "{{lastname}}",
      "email": "{{email}}",
      "date_of_birth": "{{birth_month}}",
      "gender": "male",
      "photo_uri": "{{image_url}}",
      "mobile_number": {{mobile_number}},
      "country_code": "+66",
      "business_code": "3bf54632",
      "first_subscribe_date": "2020-03-13T03:27:10.762Z",
      "balance": 0,
      "subscribe_date": "2020-03-13T03:27:10.762Z",
      "hide_business": false,
      "block_noti_business": false,
      "transaction_count": 0
    }
  }
}
Request parameters
#PropertyDescription
1 pointspot_id Pointspot ID หรือ member_badge_code
GET Member basic info by PointSpot ID
GET //api/business/this/member/{{pointspot_id}}/basic HTTP/1.1
Host: globalapi.pointspot.co
Authorization: Bearer {{business_token}}
Response parameters
เหมือนกับข้างบน
RESPONSE
{
  "result": true,
  "route": "GET /api/business/127c0c37/member/{{pointspot_id}}/basic",
  "method": "api/Business Authorization/member",
  "eventDate": "2020-12-04T04:04:35.308Z",
  "userInfo": {
    "member_badge_code": {{pointspot_id}},
    "is_registered": true,
    "create_date": "2018-02-09T10:56:02.006Z",
    "country_code": "+66",
    "mobile_number": "{{mobile_number}}",
    "first_subscribe_date": "2020-03-13T03:27:10.762Z",
    "business_code": "3bf54632",
    "point_balance": 0,
    "hide_business": false,
    "subscribe_date": "2020-03-13T03:27:10.762Z",
    "expiry_point": null,
    "date_expirypoint": null,
    "block_noti_business": false,
    "first_name": "{{firstname}}",
    "last_name": "{{lastname}",
    "email": "{{email}}",
    "date_of_birth": "{{birth_month}}",
    "gender": "{{gender}}",
    "photo_uri": "{{image_url}}",
    "trans_member_id": null,
    "card_id": null,
    "createtime": 1607054675335,
    "cacheExpire": 1607054735,
    "point_pending": 0
  }
}