Skip to main content
DELETE
/
partner
/
delete
Delete Partner
curl --request DELETE \
  --url https://api.example.com/partner/delete \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "email": "<string>"
}
'
{
  "message": "<string>"
}

Overview

This endpoint allows you to delete an existing partner from the system. Authentication is required via JWT token in the access_token cookie. Both the partner ID and email must be provided to confirm the deletion.

Request Body

id
string
required
Unique identifier of the partner to deleteExample: "P001"
email
string
required
Email address of the partner (used for confirmation)Example: "[email protected]"

Response

message
string
Success message confirming partner deletionExample: "Socio Eliminado Exitosamente"

Example Request

curl -X DELETE https://api.example.com/partner/delete \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN" \
  -d '{
    "id": "P001",
    "email": "[email protected]"
  }'

Example Response

200 Success
{
  "message": "Socio Eliminado Exitosamente"
}
400 Bad Request
{
  "message": "Socio no encontrado o datos inválidos"
}
401 Unauthorized
{
  "message": "Token no enviado o inválido"
}
500 Internal Server Error
{
  "message": "Error interno del servidor"
}
This action is irreversible. Make sure you want to permanently delete the partner before making this request. Both the ID and email must match an existing partner for the deletion to succeed.

Build docs developers (and LLMs) love