๐Ÿงช Tests and Simulations: Creating Custom API Endpoints, Testing OAuth Workflows, and Advanced Payment Automations

5. โŒ Example: Deleting a Member (DELETE Request)

Description:

This example will demonstrate how to delete a member using a DELETE request.

Steps:

  1. In Postman, set the request method to DELETE.
  2. Enter the URL:
    https://your-site.com/wp-json/mp/v1/members/{member_id} Replace {member_id} with the ID of the member you want to delete (e.g., 3).
  3. In the Authorization tab, select Bearer Token and add your API Key.
  4. Click Send.

Expected Response:

A confirmation showing that the member has been deleted:

{
"deleted": true,
"id": 3
}