Skip to main content
DELETE
https://api.fegora.com
/
cuenta
/
{id}
Eliminar una cuenta
curl --request DELETE \
  --url https://api.fegora.com/cuenta/{id} \
  --header 'Authorization: Bearer <token>'
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.fegora.com/cuenta/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.fegora.com/cuenta/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "codigo": "FEG_BUSINESS_RULE_VIOLATION",
  "mensaje": "No existe una cuenta con el identificador 12345678",
  "masInformacion": "https://developer.fegora.com",
  "severidad": 2
}
{
"codigo": "FEG_UNAUTHORIZED",
"mensaje": "No está autorizado para acceder a este recurso",
"masInformacion": "https://developer.fegora.com",
"severidad": 2
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Cuenta eliminada.