Metadata

Get Notes Metadata

Requires admin privileges

GET/api/customers/notes/metadata
Query parameters
Response

OK

Body
idinteger (int64)
reference_typeNoteReferenceType (enum)
businesscustomermembershipCardorderpoint_earnedsubscriptiontransactionreservationappointmentevent
reference_idinteger (int64)
typenullable string
detailsnullable string
created_onstring (date-time)
statusNoteStatus (enum)
openclosed
remindernullable string
user_idinteger (int64)
company_idinteger (int64)
customer_idinteger (int64)
confidentialboolean
priorityboolean
tagsnullable array of string
subjectnullable string
customerCustomerSummary (object)
userUser (object)
assigneesnullable array of NoteAssignee (object)
messagesnullable array of NoteMessage (object)
Request
const response = await fetch('/api/customers/notes/metadata', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "reference_type": "",
    "type": "text",
    "details": "text",
    "created_on": "2024-10-06T20:34:51.296Z",
    "status": "",
    "reminder": "text",
    "confidential": false,
    "priority": false,
    "tags": [
      "text"
    ],
    "subject": "text",
    "customer": {
      "company_name": "text",
      "company_title": "text",
      "first_name": "text",
      "middle_name": "text",
      "last_name": "text",
      "full_name": "text",
      "locale": "text",
      "is_member": false,
      "was_member": false,
      "has_applied": false,
      "flag": "",
      "email": "name@gmail.com",
      "mobile": {
        "country_code": "text",
        "number": "text",
        "full": "text"
      },
      "phone": {
        "country_code": "text",
        "number": "text",
        "full": "text"
      },
      "profile_photo": "text",
      "vip": false,
      "home_house_id": "text",
      "birthdate": "text",
      "anniversary_date": "text",
      "created_on": "2024-10-06T20:34:51.296Z"
    },
    "user": {
      "status": "active",
      "first_name": "text",
      "last_name": "text",
      "full_name": "text",
      "email": "text",
      "username": "text",
      "profile_photo": "text",
      "employee_id": "text",
      "mobile_number": "text",
      "business_location_id": "text",
      "enable2_fa": "text",
      "modified_on": "text",
      "created_by": "text",
      "role": "text"
    },
    "assignees": [
      {
        "status": "active",
        "created_on": "2024-10-06T20:34:51.296Z",
        "first_name": "text",
        "last_name": "text",
        "full_name": "text",
        "email": "text",
        "username": "text",
        "profile_photo": "text",
        "employee_id": "text",
        "mobile_number": "text",
        "business_location_id": "text",
        "enable2_fa": "text",
        "modified_on": "text",
        "created_by": "text",
        "role": "text"
      }
    ],
    "messages": [
      {
        "message": "text",
        "attachment": "text",
        "posted_by": {
          "status": "active",
          "first_name": "text",
          "last_name": "text",
          "full_name": "text",
          "email": "text",
          "username": "text",
          "profile_photo": "text",
          "employee_id": "text",
          "mobile_number": "text",
          "business_location_id": "text",
          "enable2_fa": "text",
          "modified_on": "text",
          "created_by": "text",
          "role": "text"
        },
        "created_on": "2024-10-06T20:34:51.296Z"
      }
    ]
  }
]