Delete a Pix key entry
curl --request DELETE \
--url https://api.example.com/dict-hub/v1/entries/{entry_id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Account-Id: <x-account-id>' \
--header 'X-Reason: <x-reason>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/dict-hub/v1/entries/{entry_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Account-Id", "<x-account-id>")
req.Header.Add("X-Reason", "<x-reason>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {
method: 'DELETE',
headers: {
'X-Account-Id': '<x-account-id>',
'X-Reason': '<x-reason>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.example.com/dict-hub/v1/entries/{entry_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/dict-hub/v1/entries/{entry_id}"
headers = {
"X-Account-Id": "<x-account-id>",
"X-Reason": "<x-reason>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"type": "https://errors.lerian.studio/v1/PIX-0001",
"title": "Bad Request",
"status": 400,
"detail": "Your request is missing one or more required header params.",
"code": "PIX-0001"
}{
"type": "https://errors.lerian.studio/v1/PIX-0105",
"title": "Not Found",
"status": 404,
"detail": "Key entry does not exist.",
"code": "PIX-0105"
}{
"type": "https://errors.lerian.studio/v1/PIX-0106",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Key entry is not in ACTIVE status.",
"code": "PIX-0106"
}{
"type": "https://errors.lerian.studio/v1/PIX-0000",
"title": "Internal Server Error",
"status": 500,
"detail": "internal error",
"code": "PIX-0000"
}{
"type": "https://errors.lerian.studio/v1/PIX-0141",
"title": "Bad Gateway",
"status": 502,
"detail": "internal error",
"code": "PIX-0141"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Delete a Pix key entry
Marks a Pix key entry as DELETED. The entry is no longer active after the operation.
DELETE
/
entries
/
{entry_id}
Delete a Pix key entry
curl --request DELETE \
--url https://api.example.com/dict-hub/v1/entries/{entry_id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Account-Id: <x-account-id>' \
--header 'X-Reason: <x-reason>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/dict-hub/v1/entries/{entry_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Account-Id", "<x-account-id>")
req.Header.Add("X-Reason", "<x-reason>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {
method: 'DELETE',
headers: {
'X-Account-Id': '<x-account-id>',
'X-Reason': '<x-reason>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.example.com/dict-hub/v1/entries/{entry_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/dict-hub/v1/entries/{entry_id}"
headers = {
"X-Account-Id": "<x-account-id>",
"X-Reason": "<x-reason>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"type": "https://errors.lerian.studio/v1/PIX-0001",
"title": "Bad Request",
"status": 400,
"detail": "Your request is missing one or more required header params.",
"code": "PIX-0001"
}{
"type": "https://errors.lerian.studio/v1/PIX-0105",
"title": "Not Found",
"status": 404,
"detail": "Key entry does not exist.",
"code": "PIX-0105"
}{
"type": "https://errors.lerian.studio/v1/PIX-0106",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Key entry is not in ACTIVE status.",
"code": "PIX-0106"
}{
"type": "https://errors.lerian.studio/v1/PIX-0000",
"title": "Internal Server Error",
"status": 500,
"detail": "internal error",
"code": "PIX-0000"
}{
"type": "https://errors.lerian.studio/v1/PIX-0141",
"title": "Bad Gateway",
"status": 502,
"detail": "internal error",
"code": "PIX-0141"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Autorizaciones
JWT bearer token issued by the identity provider.
Encabezados
Account ID (UUID format)
Ejemplo:
"019606a1-3b4c-7d8e-9f01-234567890abc"
Reason for deletion: USER_REQUESTED, ACCOUNT_CLOSURE, RECONCILIATION, FRAUD, or RFB_VALIDATION
Ejemplo:
"ACCOUNT_CLOSURE"
Parámetros de ruta
Entry ID (UUID format)
Ejemplo:
"019606c3-5d6e-7f80-1b23-456789012cde"
Respuesta
No Content
¿Esta página le ayudó?

