ออบเจ็กต์ Member

แอตทริบิวต์

  • member_id string จำเป็น

    ตัวระบุเฉพาะของสมาชิก

  • facility_id string อย่างใดอย่างหนึ่งระบุประเภทตัวระบุสถานที่ที่กำหนดค่าไว้สำหรับการผสานรวมของคุณ: ใช้ facility_id สำหรับการผสานรวมแบบ Direct Link หรือใช้ linking_identifier สำหรับการผสานรวมแบบ Linking Identifier อย่าส่งทั้งสองค่า API จะใช้ประเภทตัวระบุที่กำหนดค่าไว้สำหรับบัญชีพาร์ทเนอร์ของคุณและละเว้นอีกค่าหนึ่ง ดูข้อมูลเพิ่มเติม

    ตัวระบุเฉพาะของสถานที่จาก Performance Hub

  • linking_identifier string อย่างใดอย่างหนึ่งระบุประเภทตัวระบุสถานที่ที่กำหนดค่าไว้สำหรับการผสานรวมของคุณ: ใช้ facility_id สำหรับการผสานรวมแบบ Direct Link หรือใช้ linking_identifier สำหรับการผสานรวมแบบ Linking Identifier อย่าส่งทั้งสองค่า API จะใช้ประเภทตัวระบุที่กำหนดค่าไว้สำหรับบัญชีพาร์ทเนอร์ของคุณและละเว้นอีกค่าหนึ่ง ดูข้อมูลเพิ่มเติม

    ค่าตัวระบุเฉพาะของแต่ละตำแหน่งที่ตั้งที่พาร์ทเนอร์ใช้ (เช่น "Branch ID", "Location Code", "Store Number") ดูข้อมูลเพิ่มเติม

  • first_name string จำเป็น

    ชื่อจริงของสมาชิก

  • last_name string จำเป็น

    นามสกุลของสมาชิก

  • email string ไม่บังคับ

    ที่อยู่อีเมล

  • mobile_phone string ไม่บังคับ

    หมายเลขโทรศัพท์มือถือในรูปแบบ E.123 (เช่น "+1 415 555 2671")

  • address object ไม่บังคับ

    ออบเจ็กต์ที่อยู่ทางกายภาพซึ่งมีพร็อพเพอร์ตีต่อไปนี้:

    • address_line_1 (string) - ที่อยู่บรรทัดหลัก
    • address_line_2 (string, ไม่บังคับ) - ที่อยู่บรรทัดที่สอง
    • city (string) - ชื่อเมือง
    • state (string) - รหัสรัฐ/จังหวัด
    • postal_code (string) - รหัสไปรษณีย์
    • country (string) - รหัสประเทศ ISO 3166-1 alpha-2 (เช่น "AU", "US")
    • country_name (string, ไม่บังคับ) - ชื่อประเทศแบบเต็ม
  • date_of_birth string ไม่บังคับ

    วันเกิดในรูปแบบ YYYY-MM-DD

  • gender string ไม่บังคับ

    เป็นค่าใดค่าหนึ่งต่อไปนี้ male, female, non_binary, prefer_not_to_say หรือ unknown

  • type string ไม่บังคับ

    ประเภทสมาชิก (เช่น staff, member, prospect)

  • tags array ไม่บังคับ

    สตริงหรือข้อความช่วยเหลือแบบย่อสำหรับจัดหมวดหมู่และระบุสมาชิกบางราย (เช่น ["vip", "personal-training", "student"])

  • membership_status string ไม่บังคับ

    สถานะสมาชิกปัจจุบัน (เช่น active, expired, on_hold)

  • membership_plans array ไม่บังคับ

    อาร์เรย์ของแผนสมาชิกที่เชื่อมโยงกับสมาชิก

  • profile_picture string ไม่บังคับ

    รูปโปรไฟล์ที่เข้ารหัสแบบ Base64 (ไม่บังคับ)

  • created string ไม่บังคับ

    การประทับเวลาแบบ ISO 8601 ของเวลาที่สร้างสมาชิก

  • updated string ไม่บังคับ

    การประทับเวลาแบบ ISO 8601 ของเวลาที่อัปเดตสมาชิกครั้งล่าสุด

  • access_time_windows array ไม่บังคับ

    สแนปช็อตที่สมบูรณ์ซึ่งแหล่งข้อมูลเป็นเจ้าของ ของ Access Time Windows แบบกำหนดวันเวลาแน่นอนและ/หรือแบบรายสัปดาห์ที่เกิดซ้ำ เว้นฟิลด์นี้ไว้เพื่อให้สแนปช็อตไม่เปลี่ยนแปลง หรือส่งอาร์เรย์ว่างพร้อมเวอร์ชันที่ใหม่กว่าเพื่อเพิกถอน ดูรูปแบบ การตรวจสอบความถูกต้อง การจับคู่ขอบเขต และหลักการแทนที่ได้ที่ Access Time Windows

  • access_time_windows_revision integer จำเป็นเมื่อมี access_time_windows

    จำนวนเต็มที่ไม่ติดลบ ปลอดภัยสำหรับ JSON และเพิ่มขึ้นทางเดียว สำหรับสตรีมของสมาชิก/แหล่งข้อมูลนี้ จำเป็นทุกครั้งที่มี access_time_windows

ออบเจ็กต์ Member

{
  "member_id": "member_11111",
  "facility_id": "550e8400-e29b-41d4-a716-446655440000",
  // "linking_identifier": "branch_downtown",  // If using linking identifier
  "first_name": "John",
  "last_name": "Smith",
  "email": "john.smith@example.com",
  "mobile_phone": "+61 412 345 678",
  "date_of_birth": "1985-06-15",
  "gender": "male",
  "type": "member",
  "tags": ["vip", "personal-training"],
  "profile_picture": "/9j/4AAQSkZJRgABAQAAAQ...",
  "membership_status": "current",
  "created": "2024-01-15T10:30:00Z",
  "updated": "2024-01-20T14:45:00Z",
  "access_time_windows_revision": 1842,
  "access_time_windows": [
    {
      "external_id": "access-4b1782",
      "kind": "absolute",
      "from": 1792053000,
      "to": 1792058400,
      "timezone": "Australia/Perth",
      "scope_key": "after_hours_entry",
      "label": "Temporary site access"
    }
  ],
  "address": {
    "address_line_1": "456 Bourke Street",
    "address_line_2": "Apt 12",
    "city": "Melbourne",
    "state": "VIC",
    "postal_code": "3000",
    "country": "AU",
    "country_name": "Australia"
  },
  "membership_plans": [
    {
      "membership_plan_id": "plan_99999",
      "name": "Unlimited Monthly",
      "start_date": "2024-01-01T00:00:00Z",
      "status": "current",
      "is_current": true,
      "end_date": null
    }
  ]
}