curl --request POST \
--url https://api.liquerapay.com/withdrawals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"pixKey": "pagamentos@minhaloja.com",
"pixKeyType": "EMAIL",
"description": "Repasse semanal",
"taxId": "12345678900",
"clientCallbackUrl": "https://meusite.com/webhooks/liquerapay"
}
'import requests
url = "https://api.liquerapay.com/withdrawals"
payload = {
"amount": 5000,
"pixKey": "pagamentos@minhaloja.com",
"pixKeyType": "EMAIL",
"description": "Repasse semanal",
"taxId": "12345678900",
"clientCallbackUrl": "https://meusite.com/webhooks/liquerapay"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 5000,
pixKey: 'pagamentos@minhaloja.com',
pixKeyType: 'EMAIL',
description: 'Repasse semanal',
taxId: '12345678900',
clientCallbackUrl: 'https://meusite.com/webhooks/liquerapay'
})
};
fetch('https://api.liquerapay.com/withdrawals', 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/withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 5000,
'pixKey' => 'pagamentos@minhaloja.com',
'pixKeyType' => 'EMAIL',
'description' => 'Repasse semanal',
'taxId' => '12345678900',
'clientCallbackUrl' => 'https://meusite.com/webhooks/liquerapay'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.liquerapay.com/withdrawals"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"pixKey\": \"pagamentos@minhaloja.com\",\n \"pixKeyType\": \"EMAIL\",\n \"description\": \"Repasse semanal\",\n \"taxId\": \"12345678900\",\n \"clientCallbackUrl\": \"https://meusite.com/webhooks/liquerapay\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.liquerapay.com/withdrawals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 5000,\n \"pixKey\": \"pagamentos@minhaloja.com\",\n \"pixKeyType\": \"EMAIL\",\n \"description\": \"Repasse semanal\",\n \"taxId\": \"12345678900\",\n \"clientCallbackUrl\": \"https://meusite.com/webhooks/liquerapay\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liquerapay.com/withdrawals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 5000,\n \"pixKey\": \"pagamentos@minhaloja.com\",\n \"pixKeyType\": \"EMAIL\",\n \"description\": \"Repasse semanal\",\n \"taxId\": \"12345678900\",\n \"clientCallbackUrl\": \"https://meusite.com/webhooks/liquerapay\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "with_018f91023e4a7d20e5f6",
"amount": 5000,
"fee": 50,
"status": "COMPLETED",
"createdAt": "2026-04-19T20:00:00.000Z"
},
"error": null,
"success": true
}Solicitar Saque
Solicita um saque do seu saldo disponível para uma chave PIX.
Atenção:
- O valor mínimo é de 50 centavos (R0,50),maˊximo100.000.000(R 1.000.000,00)
- O saque inclui uma taxa que é debitada junto: o débito total é
amount + fee - Só é permitido um saque em andamento por vez (
PENDING/PROCESSING) — uma nova solicitação enquanto houver um em curso retorna400 - Saques podem estar bloqueados se
withdrawalsEnabledestiver desativado para o merchant clientCallbackUrldefine o callback específico deste saque no merchant autenticado; a API cria ou atualiza internamente o endpoint para os eventos de conclusão e falha
curl --request POST \
--url https://api.liquerapay.com/withdrawals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"pixKey": "pagamentos@minhaloja.com",
"pixKeyType": "EMAIL",
"description": "Repasse semanal",
"taxId": "12345678900",
"clientCallbackUrl": "https://meusite.com/webhooks/liquerapay"
}
'import requests
url = "https://api.liquerapay.com/withdrawals"
payload = {
"amount": 5000,
"pixKey": "pagamentos@minhaloja.com",
"pixKeyType": "EMAIL",
"description": "Repasse semanal",
"taxId": "12345678900",
"clientCallbackUrl": "https://meusite.com/webhooks/liquerapay"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 5000,
pixKey: 'pagamentos@minhaloja.com',
pixKeyType: 'EMAIL',
description: 'Repasse semanal',
taxId: '12345678900',
clientCallbackUrl: 'https://meusite.com/webhooks/liquerapay'
})
};
fetch('https://api.liquerapay.com/withdrawals', 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/withdrawals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 5000,
'pixKey' => 'pagamentos@minhaloja.com',
'pixKeyType' => 'EMAIL',
'description' => 'Repasse semanal',
'taxId' => '12345678900',
'clientCallbackUrl' => 'https://meusite.com/webhooks/liquerapay'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.liquerapay.com/withdrawals"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"pixKey\": \"pagamentos@minhaloja.com\",\n \"pixKeyType\": \"EMAIL\",\n \"description\": \"Repasse semanal\",\n \"taxId\": \"12345678900\",\n \"clientCallbackUrl\": \"https://meusite.com/webhooks/liquerapay\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.liquerapay.com/withdrawals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 5000,\n \"pixKey\": \"pagamentos@minhaloja.com\",\n \"pixKeyType\": \"EMAIL\",\n \"description\": \"Repasse semanal\",\n \"taxId\": \"12345678900\",\n \"clientCallbackUrl\": \"https://meusite.com/webhooks/liquerapay\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liquerapay.com/withdrawals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 5000,\n \"pixKey\": \"pagamentos@minhaloja.com\",\n \"pixKeyType\": \"EMAIL\",\n \"description\": \"Repasse semanal\",\n \"taxId\": \"12345678900\",\n \"clientCallbackUrl\": \"https://meusite.com/webhooks/liquerapay\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "with_018f91023e4a7d20e5f6",
"amount": 5000,
"fee": 50,
"status": "COMPLETED",
"createdAt": "2026-04-19T20:00:00.000Z"
},
"error": null,
"success": true
}available para uma chave PIX.
Obrigatório
amount (mínimo 50 centavos), pixKey e pixKeyType. A taxa é calculada
automaticamente conforme o contrato do merchant.{
"amount": 5000,
"pixKey": "pagamentos@minhaloja.com",
"pixKeyType": "EMAIL",
"description": "Repasse semanal",
"clientCallbackUrl": "https://meusite.com/webhooks/liquerapay"
}
Callback específico do saque
clientCallbackUrl define o webhook específico deste saque no merchant
autenticado. A URL não precisa estar previamente cadastrada: a API cria ou
atualiza internamente o endpoint com WITHDRAWAL_COMPLETED e
WITHDRAWAL_FAILED.
Quando informado, o resultado vai somente para esse endpoint; quando omitido,
vai para todos os webhooks gerais inscritos. O callback usa assinatura,
retries e histórico de entregas dos webhooks. Para obter o secret usado em
Liquera-Signature, cadastre previamente a mesma URL em POST /webhooks.
Resposta:
{
"data": {
"id": "with_018f91023e4a7d20e5f6",
"amount": 5000,
"fee": 50,
"status": "PENDING",
"createdAt": "2026-04-19T20:00:00.000Z"
},
"error": null,
"success": true
}
pixKey/pixKeyType (você já os
enviou). Para ver todos os detalhes depois, use
GET /withdrawals/{id}.Só um saque por vez
Você só pode ter um saque em andamento (PENDING ou PROCESSING) por
merchant. Uma nova solicitação enquanto houver um em curso retorna 400 —
aguarde a conclusão (ou falha) do saque atual antes de solicitar outro.
Erros possíveis
| HTTP | error | Causa |
|---|---|---|
400 | BAD_REQUEST | Saques não habilitados para este merchant |
400 | BAD_REQUEST | Já existe um saque em processamento |
400 | BAD_REQUEST | Saldo insuficiente |
400 | BAD_REQUEST | Valor fora da faixa permitida (50 a 100.000.000 centavos) |
400 | BAD_REQUEST | Valor acima do limite de saque do merchant |
400 | BAD_REQUEST | clientCallbackUrl é inválida, usa protocolo não permitido ou aponta para endereço privado |
PENDING. O processamento
real é assíncrono — acompanhe o resultado via GET /withdrawals/{id}
ou pelos webhooks WITHDRAWAL_COMPLETED / WITHDRAWAL_FAILED.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).
Body
Valor do saque em centavos (mínimo 50 = R$ 0,50, máximo 100.000.000 = R$ 1.000.000,00).
50 <= x <= 1000000005000
Chave PIX que receberá o saque.
1 - 140"pagamentos@minhaloja.com"
Tipo da chave PIX:
CPF: CPF (apenas dígitos)CNPJ: CNPJ (apenas dígitos)EMAIL: e-mail válidoTELEFONE: celular no formato+5511999999999CHAVE_ALEATORIA: chave aleatória (UUID/EVP)
CPF, CNPJ, EMAIL, TELEFONE, CHAVE_ALEATORIA "EMAIL"
Texto livre para sua referência.
140"Repasse semanal"
CPF/CNPJ do destinatário da chave PIX (opcional).
18"12345678900"
URL HTTPS pública opcional para receber WITHDRAWAL_COMPLETED e
WITHDRAWAL_FAILED somente deste saque. A API cria ou atualiza
internamente o endpoint no merchant autenticado e substitui os
webhooks gerais nesses eventos. Para obter o secret usado na
assinatura, cadastre previamente a mesma URL em POST /webhooks.
2048"https://meusite.com/webhooks/liquerapay"
Response
Saque criado e enfileirado para processamento.