Skip to main content
You will create a client and a debt, generate a PIX payment and simulate it being paid. Test mode sends no real messages and costs nothing.
1

Create a test API key

In the dashboard go to Settings → API & Webhooks → Create key and choose Test mode.Copy the esk_test_... key now, it is shown only once.
2

Create a client

Keep the id from the response.
3

Create a debt

The debt is enrolled in your collection flow automatically. In test mode its messages are simulated.
4

Generate the PIX payment

This endpoint is public (it powers the customer’s payment page), so it needs no key. Keep the payment id.
5

Simulate the payment

Only works with test keys. The debt becomes paid and your webhooks receive payment.received and debt.paid with "live": false.

Next steps

Register a webhook

Go live

Handle errors

API reference