Remover endpoint
curl --request DELETE \
--url https://api.liquerapay.com/webhooks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liquerapay.com/webhooks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liquerapay.com/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.liquerapay.com/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.liquerapay.com/webhooks/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.liquerapay.com/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liquerapay.com/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": null,
"error": null,
"success": true
}{
"error": "UNAUTHORIZED",
"message": "Token inválido ou ausente",
"success": false
}{
"error": "FORBIDDEN",
"message": "Saques estão temporariamente bloqueados para este merchant",
"success": false
}{
"error": "NOT_FOUND",
"message": "Customer não encontrado",
"success": false
}Webhooks
Remover Endpoint
Remove permanentemente o endpoint. Eventos futuros não serão entregues a essa URL. Não existe rota para pausar/editar um endpoint sem removê-lo.
DELETE
/
webhooks
/
{id}
Remover endpoint
curl --request DELETE \
--url https://api.liquerapay.com/webhooks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liquerapay.com/webhooks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liquerapay.com/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.liquerapay.com/webhooks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.liquerapay.com/webhooks/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.liquerapay.com/webhooks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liquerapay.com/webhooks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": null,
"error": null,
"success": true
}{
"error": "UNAUTHORIZED",
"message": "Token inválido ou ausente",
"success": false
}{
"error": "FORBIDDEN",
"message": "Saques estão temporariamente bloqueados para este merchant",
"success": false
}{
"error": "NOT_FOUND",
"message": "Customer não encontrado",
"success": false
}Remove permanentemente um endpoint de webhook. Eventos futuros não
serão entregues a essa URL.
Resposta:
{
"data": null,
"error": null,
"success": true
}
A operação é irreversível. O
secret original é descartado —
se você cadastrar um endpoint com a mesma URL depois, será gerado
um secret novo. Hoje não existe uma forma de pausar um endpoint sem
removê-lo — para isso, delete e cadastre de novo quando quiser voltar
a receber eventos.Authorizations
Autentique suas requisições enviando o token no header
Authorization: Bearer <token>.
O token pode ser:
- Uma API key com prefixo
liq_, gerada em Dashboard Liquerapay → Configurações → API Keys. - Um JWT retornado pelo login do dashboard (uso interno).
Não há distinção de ambiente — toda chave vale para o único ambiente disponível (produção).
Path Parameters
Example:
"whk_018fa3b56c7d7e30a8b9"