Criar Saque
curl --request POST \
--url https://app.pixzypay.com/api/withdrawals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"pix_key": "123.456.789-00",
"pix_key_type": "cpf",
"webhook_url": "https://api.loja.com/saque"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 5000,
pix_key: '123.456.789-00',
pix_key_type: 'cpf',
webhook_url: 'https://api.loja.com/saque'
})
};
fetch('https://app.pixzypay.com/api/withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.pixzypay.com/api/withdrawals"
payload = {
"amount": 5000,
"pix_key": "123.456.789-00",
"pix_key_type": "cpf",
"webhook_url": "https://api.loja.com/saque"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.pixzypay.com/api/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,
'pix_key' => '123.456.789-00',
'pix_key_type' => 'cpf',
'webhook_url' => 'https://api.loja.com/saque'
]),
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://app.pixzypay.com/api/withdrawals"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"pix_key\": \"123.456.789-00\",\n \"pix_key_type\": \"cpf\",\n \"webhook_url\": \"https://api.loja.com/saque\"\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))
}require 'uri'
require 'net/http'
url = URI("https://app.pixzypay.com/api/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 \"pix_key\": \"123.456.789-00\",\n \"pix_key_type\": \"cpf\",\n \"webhook_url\": \"https://api.loja.com/saque\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Saque solicitado com sucesso.",
"data": {
"id": "019c7549-a1b2-73f1-9c4e-8a2b3c4d5e6f",
"amount": 5000,
"status": "pending",
"pix_key_type": "cpf",
"pix_key": "123.456.789-00",
"created_at": "2025-01-15T14:30:00.000000Z"
}
}{
"error": "Unauthenticated"
}{
"error": "Account not active"
}{
"errors": {
"amount": [
"O campo amount é obrigatório."
],
"pix_key": [
"O campo pix_key é obrigatório."
]
}
}{
"error": "Too Many Requests"
}{
"error": "Service unavailable"
}Endpoints
Criar Saque
Solicita um saque via PIX deduzido do saldo disponível.
POST
/
withdrawals
Criar Saque
curl --request POST \
--url https://app.pixzypay.com/api/withdrawals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"pix_key": "123.456.789-00",
"pix_key_type": "cpf",
"webhook_url": "https://api.loja.com/saque"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 5000,
pix_key: '123.456.789-00',
pix_key_type: 'cpf',
webhook_url: 'https://api.loja.com/saque'
})
};
fetch('https://app.pixzypay.com/api/withdrawals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.pixzypay.com/api/withdrawals"
payload = {
"amount": 5000,
"pix_key": "123.456.789-00",
"pix_key_type": "cpf",
"webhook_url": "https://api.loja.com/saque"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.pixzypay.com/api/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,
'pix_key' => '123.456.789-00',
'pix_key_type' => 'cpf',
'webhook_url' => 'https://api.loja.com/saque'
]),
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://app.pixzypay.com/api/withdrawals"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"pix_key\": \"123.456.789-00\",\n \"pix_key_type\": \"cpf\",\n \"webhook_url\": \"https://api.loja.com/saque\"\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))
}require 'uri'
require 'net/http'
url = URI("https://app.pixzypay.com/api/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 \"pix_key\": \"123.456.789-00\",\n \"pix_key_type\": \"cpf\",\n \"webhook_url\": \"https://api.loja.com/saque\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Saque solicitado com sucesso.",
"data": {
"id": "019c7549-a1b2-73f1-9c4e-8a2b3c4d5e6f",
"amount": 5000,
"status": "pending",
"pix_key_type": "cpf",
"pix_key": "123.456.789-00",
"created_at": "2025-01-15T14:30:00.000000Z"
}
}{
"error": "Unauthenticated"
}{
"error": "Account not active"
}{
"errors": {
"amount": [
"O campo amount é obrigatório."
],
"pix_key": [
"O campo pix_key é obrigatório."
]
}
}{
"error": "Too Many Requests"
}{
"error": "Service unavailable"
}Authorizations
Bearer Token gerado em Configurações > Tokens de API.
Body
application/json
Valor em centavos (mínimo: 1000 = R$ 10,00).
Required range:
x >= 1000Example:
5000
Chave PIX de destino.
Example:
"123.456.789-00"
Tipo da chave PIX.
Available options:
cpf, cnpj, email, phone, random Example:
"cpf"
URL para receber a notificação do saque.
⌘I

