Gerar QR Code PIX
curl --request POST \
--url https://api.alphagateway.com.br/v1/pix-in/create \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"idempotency": "pedido-1001",
"value": 149.9,
"description": "Pedido 1001",
"customer": {
"fullName": "Maria Oliveira Santos",
"document": "12345678909",
"email": "maria@exemplo.com.br",
"phone": "65999998888"
},
"expiration": 3600
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotency: 'pedido-1001',
value: 149.9,
description: 'Pedido 1001',
customer: {
fullName: 'Maria Oliveira Santos',
document: '12345678909',
email: 'maria@exemplo.com.br',
phone: '65999998888'
},
expiration: 3600
})
};
fetch('https://api.alphagateway.com.br/v1/pix-in/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.alphagateway.com.br/v1/pix-in/create"
payload = {
"idempotency": "pedido-1001",
"value": 149.9,
"description": "Pedido 1001",
"customer": {
"fullName": "Maria Oliveira Santos",
"document": "12345678909",
"email": "maria@exemplo.com.br",
"phone": "65999998888"
},
"expiration": 3600
}
headers = {
"x-api-key": "<api-key>",
"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://api.alphagateway.com.br/v1/pix-in/create",
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([
'idempotency' => 'pedido-1001',
'value' => 149.9,
'description' => 'Pedido 1001',
'customer' => [
'fullName' => 'Maria Oliveira Santos',
'document' => '12345678909',
'email' => 'maria@exemplo.com.br',
'phone' => '65999998888'
],
'expiration' => 3600
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"message": "Pix criado com sucesso!",
"response": {
"qrcodeValue": 149.9,
"qrcodeExpiratedAt": "2026-10-22T14:00:00.000Z",
"qrcodeCreatedAt": "2026-10-22T13:00:00.000Z",
"qrcode": "00020101021226870014br.gov.bcb.pix2565qrcode.exemplo.com.br/cob/7f3c9a1e5204000053039865406149.905802BR5913LOJA EXEMPLO6007CUIABA62070503***6304ABCD",
"txId": "7f3c9a1e2b4d4c8e9a0b1c2d3e4f5a6b",
"idempotency": "pedido-1001"
}
}{
"response": null,
"errors": [
"O valor da transação deve ser maior ou igual a R$1,00"
]
}{
"response": null,
"errors": [
"API key inválida ou expirada"
]
}{
"response": null,
"errors": [
"Credencial não possui permissão para esta funcionalidade, ajuste o escopo da credencial."
]
}{
"response": null,
"errors": [
"Limite de requisições excedido"
]
}{
"response": null,
"errors": [
"Erro interno"
]
}{
"response": null,
"errors": [
"Este serviço está temporariamente indisponível devido a manutenção"
]
}Cobranças PIX
Gerar QR Code PIX
Gera uma cobrança PIX e retorna o código copia e cola do QR Code para exibir ao cliente.
POST
/
v1
/
pix-in
/
create
Gerar QR Code PIX
curl --request POST \
--url https://api.alphagateway.com.br/v1/pix-in/create \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"idempotency": "pedido-1001",
"value": 149.9,
"description": "Pedido 1001",
"customer": {
"fullName": "Maria Oliveira Santos",
"document": "12345678909",
"email": "maria@exemplo.com.br",
"phone": "65999998888"
},
"expiration": 3600
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotency: 'pedido-1001',
value: 149.9,
description: 'Pedido 1001',
customer: {
fullName: 'Maria Oliveira Santos',
document: '12345678909',
email: 'maria@exemplo.com.br',
phone: '65999998888'
},
expiration: 3600
})
};
fetch('https://api.alphagateway.com.br/v1/pix-in/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.alphagateway.com.br/v1/pix-in/create"
payload = {
"idempotency": "pedido-1001",
"value": 149.9,
"description": "Pedido 1001",
"customer": {
"fullName": "Maria Oliveira Santos",
"document": "12345678909",
"email": "maria@exemplo.com.br",
"phone": "65999998888"
},
"expiration": 3600
}
headers = {
"x-api-key": "<api-key>",
"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://api.alphagateway.com.br/v1/pix-in/create",
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([
'idempotency' => 'pedido-1001',
'value' => 149.9,
'description' => 'Pedido 1001',
'customer' => [
'fullName' => 'Maria Oliveira Santos',
'document' => '12345678909',
'email' => 'maria@exemplo.com.br',
'phone' => '65999998888'
],
'expiration' => 3600
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"message": "Pix criado com sucesso!",
"response": {
"qrcodeValue": 149.9,
"qrcodeExpiratedAt": "2026-10-22T14:00:00.000Z",
"qrcodeCreatedAt": "2026-10-22T13:00:00.000Z",
"qrcode": "00020101021226870014br.gov.bcb.pix2565qrcode.exemplo.com.br/cob/7f3c9a1e5204000053039865406149.905802BR5913LOJA EXEMPLO6007CUIABA62070503***6304ABCD",
"txId": "7f3c9a1e2b4d4c8e9a0b1c2d3e4f5a6b",
"idempotency": "pedido-1001"
}
}{
"response": null,
"errors": [
"O valor da transação deve ser maior ou igual a R$1,00"
]
}{
"response": null,
"errors": [
"API key inválida ou expirada"
]
}{
"response": null,
"errors": [
"Credencial não possui permissão para esta funcionalidade, ajuste o escopo da credencial."
]
}{
"response": null,
"errors": [
"Limite de requisições excedido"
]
}{
"response": null,
"errors": [
"Erro interno"
]
}{
"response": null,
"errors": [
"Este serviço está temporariamente indisponível devido a manutenção"
]
}Corpo
application/json