API - Generate Payment
This endpoint creates a PIX payment transaction for Brazilian instant payments. It generates a PIX code and QR image that the customer can use to complete the payment through their banking app.
Last updated
This endpoint creates a PIX payment transaction for Brazilian instant payments. It generates a PIX code and QR image that the customer can use to complete the payment through their banking app.
Last updated
{
"customerTaxId": "123.456.789-09",
"customerEmail": "[email protected]",
"customerPhone": "5511999999999",
"customerAddress": {
"street": "Baker Street 123",
"zipCode": "01234567",
"city": "São Paulo",
"state": "SP"
},
"amount": 2.00,
"currency": "978",
"merchantOperationId": "ORDER-0042"
}
{
"success": true,
"result": {
"id": "530780136-25-0-bgjXXuEtBtJXccqhMgILe65B",
"pixCode": "00020101021226860014br.gov.bcb.pix2564qrpix.bradesco.com.br/qr/v2/274aca3b-a215-48a4-b7ba-55ab183a3843520400005303986540512.795802BR5925PAGBRASIL PAGAMENTOS LTDA6012PORTO ALEGRE620805043815630451D9",
"pixImageUrl": "https://pagbrasil.com/x/img?MDAwMjAxMDEwMjEyMjY4NjAwMTRici5nb3YuYmNiLnBpeDI1NjRxcnBpeC5icmFkZXNjby5jb20uYnIvcXIvdjIvMjc0YWNhM2ItYTIxNS00OGE0LWI3YmEtNTVhYjE4M2EzODQzNTIwNDAwMDA1MzAzOTg2NTQwNTEyLjc5NTgwMkJSNTkyNVBBR0JSQVNJTCBQQUdBTUVOVE9TIExUREE2MDEyUE9SVE8gQUxFR1JFNjIwODA1MDQzODE1NjMwNDUxRDk=",
"expiresAt": "2025-10-30T16:00:00Z",
"amount": 2.00,
"currency": "EUR",
"amountBrl": 12.79,
"fxRate": 6.3952
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid customer tax ID format"
}
}