Obter chave PIX da conta
curl --request GET \
--url https://api.paysurebr.com/v1/me/pix-static \
--header 'ci: <api-key>'import requests
url = "https://api.paysurebr.com/v1/me/pix-static"
headers = {"ci": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {ci: '<api-key>'}};
fetch('https://api.paysurebr.com/v1/me/pix-static', 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.paysurebr.com/v1/me/pix-static",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ci: <api-key>"
],
]);
$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.paysurebr.com/v1/me/pix-static"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ci", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.paysurebr.com/v1/me/pix-static")
.header("ci", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paysurebr.com/v1/me/pix-static")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ci"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pix_static": {
"pix_key": "92277bd7-26f6-46dd-...",
"pix_key_type": "evp",
"merchant_name": "PAYSURE",
"merchant_city": "SAO PAULO",
"copia_cola": "00020126580014br.gov.bcb.pix..."
}
}{
"message": "Invalid credentials or inactive"
}Recursos da conta
Chave PIX da conta
Retorna o copia-e-cola PIX permanente vinculado à sua conta.
Esse código pode ser compartilhado livremente (redes sociais, link na bio, mensagens). Pagamentos feitos via esse copia-e-cola são identificados automaticamente e creditados no saldo da sua conta — o valor é definido pelo pagador no app do banco.
GET
/
v1
/
me
/
pix-static
Obter chave PIX da conta
curl --request GET \
--url https://api.paysurebr.com/v1/me/pix-static \
--header 'ci: <api-key>'import requests
url = "https://api.paysurebr.com/v1/me/pix-static"
headers = {"ci": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {ci: '<api-key>'}};
fetch('https://api.paysurebr.com/v1/me/pix-static', 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.paysurebr.com/v1/me/pix-static",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ci: <api-key>"
],
]);
$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.paysurebr.com/v1/me/pix-static"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ci", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.paysurebr.com/v1/me/pix-static")
.header("ci", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paysurebr.com/v1/me/pix-static")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ci"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pix_static": {
"pix_key": "92277bd7-26f6-46dd-...",
"pix_key_type": "evp",
"merchant_name": "PAYSURE",
"merchant_city": "SAO PAULO",
"copia_cola": "00020126580014br.gov.bcb.pix..."
}
}{
"message": "Invalid credentials or inactive"
}Retorna o copia-e-cola PIX permanente vinculado à sua conta.
Quando usar
- Compartilhar uma forma fixa de receber PIX em redes sociais, link na bio, mensagens.
- Casos onde o pagador escolhe quanto pagar (doação, mesada, gorjeta).
- Evitar gerar um QR Code novo a cada pagamento.
Como funciona pro integrador
1
Chame GET /v1/me/pix-static
Receba o
copia_cola no JSON.2
Exiba pro user
Renderize um QR Code visual a partir do
copia_cola (qualquer lib client-side) e mostre um botão “Copiar”.3
Pagamentos chegam como cash-in normais
Cada pagamento gera um webhook
cashin no postbackUrl configurado, com status: "paid".O valor é definido pelo pagador no app do banco dele. Não é possível fixar valor neste copia-e-cola.
Authorizations
Autenticação por par client-credentials. Envie dois headers em toda requisição:
ci: client_id (público)cs: client_secret (privado — nunca exponha no frontend)
Gere as credenciais no painel da Paysure em API Keys. Você pode ter múltiplas chaves ativas.
Response
Copia-e-cola da conta
Show child attributes
Show child attributes

