curl --location 'https://api.stylepay.com.br/api/v1/gateway/request-qrcode' \
--header 'stpi: seu_client_id' \
--header 'stps: seu_client_secret' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 10.50,
"external_id": "pedido_123",
"payer": {
"name": "João Silva",
"document": "12345678900", # Precisa ser um Documento Valido
"phoneNumber": "11999999999",
"email": "joao@email.com",
"address": {
"street": "Rua Exemplo",
"number": "123",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP",
"zipCode": "01234567"
}
},
"payerQuestion": "Pagamento do pedido #123",
"postbackUrl": "https://seusite.com/webhook/pix",
"products": [
{
"name": "Produto 1",
"quantity": "2",
"price": 5.25
}
]
}'