Tutorials
Tutorials
Step-by-step walkthroughs of the flows you actually ship, from taking a simple Pix payment to answering a MED dispute, with copy-paste code in curl, Node, Python, Go and PHP.
Isolated endpoints are tools. Tutorials show how to combine them into real flows. Each one comes with ready-to-copy code.
By use case
What each one covers
| Tutorial | Main endpoints | When to follow |
|---|---|---|
| Receive Pix | POST /pix, GET /pix, callback COMPLETED | Online store, gateway, subscription billing. |
| Send Pix | GET /pix/key, POST /withdraw, POST /withdraw/qrcode | Pay supplier, transfer to user, marketplace payout. |
| Internal transfer | POST /internal-transfer, GET /internal-transfer | Move balance between PayZu accounts without touching Pix. |
| Reconciliation | GET /user/transactions, POST /user/report | Daily cash closing, audit, BI. |
| Infractions (MED) | GET /user/infractions, POST .../defenses | When you receive a webhook with an open infraction. |
Flows covered
Conventions in the examples
The examples use the $TOKEN variable for the Bearer token and ship code in curl, Node, Python, Go and PHP; the remaining call conventions (base URL, Content-Type, amounts in reais) live in a single table in Concepts.