# Delete member

This method can be used to delete the member from the loyalty program.

Endpoint: POST /userdelete
Version: 3.0.0
Security: 

## Request fields (application/json):

  - `id` (string, required)
    Enter the unique ID of the loyalty member that needs to be deleted.
    Example: "jacklee2023"

  - `requestedBy` (string, required)
    Enter the email address of the individual who has requested the member be deleted.
    Example: "jason.limit3@gmail.com"

## Response 200 fields (application/json):

  - `Data` (object)
    Displays the following parameters-

  - `Data.siteId` (string)
    Displays Annex Cloud site ID for the loyalty program.
    Example: "29235480"

  - `Data.id` (string)
    Displays the unique ID of the deleted loyalty member.
    Example: "jacklee2023"

  - `Data.requestedBy` (string)
    Displays the unique ID of the individual who has requested to delete the information of another loyalty member.
    Example: "user@domain.com"

  - `Data.email` (string)
    Displays the email address of the loyalty member.
    Example: "jacklee2023@gmail.com"

  - `Data.firstName` (string)
    Displays the first name of the loyalty member.
    Example: "John"

  - `Data.lastName` (string)
    Displays the last name of the loyalty member.
    Example: "Deo"

  - `Data.optInStatus` (string)
    Displays the opt-in status as YES for opt-in or NO for opt-out. The default opt-in status is YES.
    Example: "YES"

  - `Data.status` (string)
    If the activity-based membership status flag is OFF- Displays the loyalty member’s status as active or inactive. By default, the status is active and can be changed to inactive as per the client’s request. If the activity-based membership status flag is ON- Displays the member status based on the defined activity-based criteria.
    Example: "ACTIVE"

  - `Data.phone` (string)
    Displays the phone number of the loyalty member.
    Example: "44-32456"

  - `Data.birthDate` (string)
    Displays the date of birth of the loyalty member in yyyy-MM-dd format.
    Example: "1989-12-11"

  - `Data.anniversaryDate` (string)
    Displays the loyalty member's anniversary date, which can be their birthdate, the date they joined the loyalty program or marriage date in yyyy-MM-dd format.
    Example: "2023-12-11"

  - `Data.createdDate` (string)
    Displays the date and time in yyyy-MM-dd’T’HH:mm:ssZ format on which the loyalty member was created.
    Example: "2024-08-08T07:00:12+0000"

  - `Data.updatedDate` (string)
    Displays the date and time in yyyy-MM-dd’T’HH:mm:ssZ format on which the loyalty member was updated.
    Example: "2024-08-08T07:00:12+0000"

  - `Data.message` (string)
    Displays the message related to success of the loyalty member's deletion.
    Example: "Member deleted successfully."


## Response 201 fields

## Response 400 fields

## Response 404 fields

## Response 405 fields
