Successful Charges
For charges that should be approved and credited, use one of the following CPF documents:| Document (CPF) | Final Status | Flow | Description |
|---|---|---|---|
| 00741212439 | Credited | Created → Paid → Credited | Charge approved and credited successfully |
| 59730932395 | Credited | Created → Paid → Credited | Charge approved and credited successfully |
Example - Successful Charge
Rejected Charges
To test a rejected charge, use the following CPF document:| Document (CPF) | Final Status | Flow | Rejection Reason |
|---|---|---|---|
| 90836247060 | Rejected | Created → Rejected | The payment was made from an unauthorized institution. |
Example - Rejected Charge
Error Simulation
To simulate a 400 error response, use the following CPF document:| Document (CPF) | Response | Error Message |
|---|---|---|
| 76145193026 | 400 Bad Request | Failed to send payin to processor |
Example - Error Response
Request
Response (400)
Testing Flow
Create charge
Use the Create Charge endpoint with the test document
Monitor status
Check the charge status using webhooks or the Get Unique Charge endpoint
Best Practices
Sandbox Environment: Always use test documents in the sandbox environment. These documents are specifically configured for testing purposes.
Common Test Scenarios
Successful Charge - Credited
Successful Charge - Credited
Document: 00741212439Expected Flow: Created → Paid → CreditedExpected Result: Charge approved and credited successfully
Rejected Charge - Unauthorized Institution
Rejected Charge - Unauthorized Institution
Error Response - Processor Failure
Error Response - Processor Failure
Document: 76145193026Expected Response: 400 Bad RequestExpected Result: Error message “Failed to send payin to processor”
Charge Status Flow
Successful Flow
After creating a charge with a successful test document, the charge will go through:Rejection Flow
After creating a charge with the rejection test document, the charge will go through:Testing Boleto Payments
For boleto payments, the testing flow is different. After creating a boleto charge, you need to make an additional request to simulate the payment.Boleto Testing Process
Create boleto charge
Use the Create Charge endpoint with
payment_method: "boleto"Simulate payment
Make a POST request to
v1/payin/payments/pay/{our_number} to simulate the boleto paymentBoleto Payment Simulation
To simulate a boleto payment and achieve the “Credited” status:{our_number} with the actual our_number value from your boleto creation response.
Important: This endpoint only simulates the status change (Created → Paid → Credited). It does not calculate interest, fines, or discounts configured in the boleto.
Example - Complete Boleto Flow
- Create Boleto Charge:
-
Extract our_number from response (example:
"our_number": "991763554947") - Simulate Payment:
- Expected Status Flow: Created → Paid → Credited
Important Notes
Successful Documents
2 approved documentsUse these CPF numbers for charges that complete successfully
Rejection Document
1 rejection documentUse this CPF to test rejection handling
Error Document
1 error documentUse this CPF to test error responses
Related Resources
Create Charge
Create a new payin charge
Charge Status
Understanding charge status flow
Rejection Reasons
Common rejection reasons and solutions
About Charges
Learn about payin charges

