Processe pagamentos PIX de forma segura, rápida e eficiente. Nossa plataforma oferece integração simples e taxas competitivas para impulsionar seu negócio.
Oferecemos as melhores soluções para processar seus pagamentos com segurança e eficiência.
Transações PIX processadas em tempo real com confirmação instantânea e notificações automáticas.
Criptografia de ponta a ponta, conformidade PCI DSS e monitoramento 24/7 para proteger suas transações.
Integração fácil com documentação completa, SDKs e suporte técnico especializado.
Acompanhe suas vendas, relatórios detalhados e analytics em tempo real em uma interface intuitiva.
Equipe de suporte especializada disponível 24 horas por dia para ajudar com qualquer questão.
As menores taxas do mercado com transparência total e sem taxas ocultas ou surpresas.
Empresas de todos os tamanhos confiam em nossa plataforma
"Implementamos o PaguePix em nossa loja online e as vendas aumentaram 40%. A integração foi simples e o suporte é excepcional."
"As taxas competitivas e a facilidade de uso tornaram nossa operação muito mais eficiente. Recomendo para qualquer negócio."
"Dashboard intuitivo e relatórios detalhados. Conseguimos acompanhar todas as transações em tempo real."
Tire suas dúvidas sobre nossa plataforma
Tudo que você precisa para integrar nosso gateway de pagamento
URL Base: https://api.paguepix.com Versão: v2 Protocolo: HTTPS Formato: JSON Autenticação: Basic Auth ou Bearer Token
Authorization: Basic base64(client_id:client_secret)
Authorization: Bearer {access_token}
Exemplo de credenciais:
20e72d88dea6ac3de27ad4a0be832cc17b58221a
8766ccaedaf8372c4da2525f538f6b059688d23e438c941ac80d1138ee3fb985
Endpoint: POST /v2/oauth/token
Headers:
Authorization: Basic base64(client_id:client_secret)
Content-Type: application/x-www-form-urlencoded
Body:
grant_type=client_credentials
Resposta de Sucesso (200):
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"token_type": "Bearer",
"expires_in": 3600
}
Endpoint: POST /v2/pix/qrcode
Headers:
Authorization: Basic base64(client_id:client_secret)
Content-Type: application/json
Body:
{
"amount": 25.50,
"description": "Pagamento do pedido #123",
"postback_url": "https://seusite.com/webhook"
}
Resposta de Sucesso (200):
{
"status": "success",
"data": {
"id": "pix_68a394f44fed03.54025351",
"external_id": "PIX_68A394F188067",
"amount": 25.50,
"status": "PENDING",
"qr_code": "00020126580014br.gov.bcb.pix...",
"qr_code_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"created_at": "2025-08-18T20:44:48Z",
"expires_at": "2025-08-18T21:44:48Z"
}
}
Parâmetros:
amount
(obrigatório): Valor do PIX (0.01 a 5000.00)description
(opcional): Descrição do pagamentopostback_url
(opcional): URL para receber notificaçõesEndpoint: GET /v2/user/balance
Headers:
Authorization: Bearer {access_token}
Resposta de Sucesso (200):
{
"statusCode": 200,
"data": {
"user_id": 39,
"name": "João Silva",
"email": "joao@exemplo.com",
"balance": 1250.75,
"cash_in_active": true
}
}
Endpoint: GET /v2/user/transactions
Headers:
Authorization: Bearer {access_token}
Parâmetros de Query:
page
(opcional): Página (padrão: 1)limit
(opcional): Itens por página (1-100, padrão: 20)status
(opcional): Filtrar por status (PENDING, PAID, CANCELLED)Resposta de Sucesso (200):
{
"statusCode": 200,
"data": {
"transactions": [
{
"id": "PIX_68A394F188067",
"external_id": "PIX_68A394F188067",
"amount": 25.50,
"status": "PAID",
"type": "pix",
"description": "PIX QR Code",
"created_at": "2025-08-18T20:44:48Z",
"confirmed_date": "2025-08-18T20:45:12Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total": 1,
"total_pages": 1
}
}
}
Quando um PIX é pago, o sistema enviará uma notificação POST para sua postback_url
.
Payload do Webhook:
{
"transactionType": "RECEIVEPIX",
"transactionId": "eedf9386640862e6edf7mehlpsqo3dv8",
"external_id": "PIX_68A394F188067",
"amount": 25.50,
"paymentType": "PIX",
"status": "PAID",
"dateApproval": "2025-08-18 18:03:20",
"creditParty": {
"name": "Cliente PaguePix",
"email": "cliente@paguepix.com",
"taxId": "20700534741"
},
"debitParty": {
"bank": "PIXUP SOLUCOES DE PAGAMENTOS LTDA",
"taxId": "59.667.922/0001-08"
}
}
Seu endpoint deve:
external_id
para identificar o pedido{
"status": "error",
"message": "Token inválido ou expirado"
}
{
"status": "error",
"message": "Valor inválido. O valor deve estar entre R$ 0,01 e R$ 5.000,00"
}
{
"status": "error",
"message": "Erro interno do servidor"
}
<?php
class PaguePixAPI {
private $baseUrl = 'https://api.paguepix.com';
private $clientId;
private $clientSecret;
public function __construct($clientId, $clientSecret) {
$this->clientId = $clientId;
$this->clientSecret = $clientSecret;
}
private function getAuthHeader() {
return 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret);
}
public function gerarPix($valor, $descricao, $webhookUrl = null) {
$data = [
'amount' => $valor,
'description' => $descricao
];
if ($webhookUrl) {
$data['postback_url'] = $webhookUrl;
}
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $this->baseUrl . '/v2/pix/qrcode',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: ' . $this->getAuthHeader(),
'Content-Type: application/json'
]
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode !== 200) {
throw new Exception('Erro na API: ' . $response);
}
return json_decode($response, true);
}
}
// Exemplo de uso
$api = new PaguePixAPI('seu_client_id', 'seu_client_secret');
try {
$pix = $api->gerarPix(25.50, 'Pagamento do pedido #123', 'https://seusite.com/webhook');
echo "PIX criado: " . $pix['data']['external_id'] . "\n";
echo "QR Code: " . $pix['data']['qr_code'] . "\n";
} catch (Exception $e) {
echo "Erro: " . $e->getMessage() . "\n";
}
?>
const axios = require('axios');
class PaguePixAPI {
constructor(clientId, clientSecret) {
this.baseUrl = 'https://api.paguepix.com';
this.clientId = clientId;
this.clientSecret = clientSecret;
}
getAuthHeader() {
const credentials = Buffer.from(`${this.clientId}:${this.clientSecret}`).toString('base64');
return `Basic ${credentials}`;
}
async gerarPix(valor, descricao, webhookUrl = null) {
const data = {
amount: valor,
description: descricao
};
if (webhookUrl) {
data.postback_url = webhookUrl;
}
try {
const response = await axios.post(`${this.baseUrl}/v2/pix/qrcode`, data, {
headers: {
'Authorization': this.getAuthHeader(),
'Content-Type': 'application/json'
}
});
return response.data;
} catch (error) {
throw new Error(`Erro na API: ${error.response?.data?.message || error.message}`);
}
}
}
// Exemplo de uso
const api = new PaguePixAPI('seu_client_id', 'seu_client_secret');
api.gerarPix(25.50, 'Pagamento do pedido #123', 'https://seusite.com/webhook')
.then(pix => {
console.log('PIX criado:', pix.data.external_id);
console.log('QR Code:', pix.data.qr_code);
})
.catch(error => {
console.error('Erro:', error.message);
});
import requests
import base64
import json
class PaguePixAPI:
def __init__(self, client_id, client_secret):
self.base_url = 'https://api.paguepix.com'
self.client_id = client_id
self.client_secret = client_secret
def get_auth_header(self):
credentials = f"{self.client_id}:{self.client_secret}"
encoded = base64.b64encode(credentials.encode()).decode()
return f"Basic {encoded}"
def gerar_pix(self, valor, descricao, webhook_url=None):
url = f"{self.base_url}/v2/pix/qrcode"
headers = {
'Authorization': self.get_auth_header(),
'Content-Type': 'application/json'
}
data = {
'amount': valor,
'description': descricao
}
if webhook_url:
data['postback_url'] = webhook_url
response = requests.post(url, headers=headers, json=data)
if response.status_code == 200:
return response.json()
else:
raise Exception(f"Erro na API: {response.text}")
# Exemplo de uso
api = PaguePixAPI('seu_client_id', 'seu_client_secret')
try:
pix = api.gerar_pix(25.50, 'Pagamento do pedido #123', 'https://seusite.com/webhook')
print(f"PIX criado: {pix['data']['external_id']}")
print(f"QR Code: {pix['data']['qr_code']}")
except Exception as e:
print(f"Erro: {e}")
# Variáveis de ambiente recomendadas
PAGUEPIX_CLIENT_ID=seu_client_id_aqui
PAGUEPIX_CLIENT_SECRET=sua_client_secret_aqui
PAGUEPIX_WEBHOOK_URL=https://seusite.com/webhook
URL: https://api.paguepix.com (mesmo endpoint)
Client ID: test_client_id
Client Secret: test_client_secret
© 2026 PaguePix - Todos os direitos reservados
Junte-se a milhares de empresas que já escolheram a PaguePix