Documentation Index
Fetch the complete documentation index at: https://docs.stylepay.com.br/llms.txt
Use this file to discover all available pages before exploring further.
1. Obter credenciais
- Acesse o painel StylePay.
- Gere suas chaves de integração (Client ID e Client Secret).
- Guarde:
stpi = Client ID
stps = Client Secret
2. Criar uma cobrança PIX (cash-in)
POST /api/v1/gateway/request-qrcode
curl -X POST [https://api.seu-dominio.com/api/v1/gateway/request-qrcode](https://api.seu-dominio.com/api/v1/gateway/request-qrcode) \
-H "Content-Type: application/json" \
-H "stpi: SEU_CLIENT_ID" \
-H "stps: SEU_CLIENT_SECRET" \
-d '{
"amount": 10.50,
"payer": {
"name": "João Silva",
"document": "12345678900"
},
"postbackUrl": "[https://seu-sistema.com/webhooks/pix](https://seu-sistema.com/webhooks/pix)"
}'