# Tutorials (/en/docs/pix-processamento/tutoriais)

Isolated endpoints are tools. Tutorials show how to combine them into real flows. Each one comes with ready-to-copy code.

<QuickLinks>
  <QuickLink href="/docs/pix-processamento/endpoints" title="API Reference" />

  <QuickLink href="/docs/pix-processamento/glossary" title="Glossary" />

  <QuickLink href="/docs/pix-processamento/webhooks" title="Webhooks" />
</QuickLinks>

## By use case [#by-use-case]

<QuickLinks>
  <QuickLink href="/docs/pix-processamento/tutoriais/receive-pix" title="Receive Pix" />

  <QuickLink href="/docs/pix-processamento/tutoriais/send-pix" title="Send Pix (cash out)" />

  <QuickLink href="/docs/pix-processamento/tutoriais/internal-transfer" title="Internal transfer" />

  <QuickLink href="/docs/pix-processamento/tutoriais/reconciliation" title="Reconciliation" />

  <QuickLink href="/docs/pix-processamento/tutoriais/infractions" title="Infractions (MED)" />
</QuickLinks>

## What each one covers [#what-each-one-covers]

| Tutorial                                                                 | Main endpoints                                            | When to follow                                            |
| ------------------------------------------------------------------------ | --------------------------------------------------------- | --------------------------------------------------------- |
| [Receive Pix](/docs/pix-processamento/tutoriais/receive-pix)             | `POST /pix`, `GET /pix`, callback `COMPLETED`             | Online store, gateway, subscription billing.              |
| [Send Pix](/docs/pix-processamento/tutoriais/send-pix)                   | `GET /pix/key`, `POST /withdraw`, `POST /withdraw/qrcode` | Pay supplier, transfer to user, marketplace payout.       |
| [Internal transfer](/docs/pix-processamento/tutoriais/internal-transfer) | `POST /internal-transfer`, `GET /internal-transfer`       | Move balance between PayZu accounts without touching Pix. |
| [Reconciliation](/docs/pix-processamento/tutoriais/reconciliation)       | `GET /user/transactions`, `POST /user/report`             | Daily cash closing, audit, BI.                            |
| [Infractions (MED)](/docs/pix-processamento/tutoriais/infractions)       | `GET /user/infractions`, `POST .../defenses`              | When you receive a webhook with an open `infraction`.     |

## Flows covered [#flows-covered]

<Mermaid
  chart="`
flowchart LR
  A[&#x22;Receive Pix&#x22;] --> A1[&#x22;Create charge&#x22;]
  A1 --> A2[&#x22;Display QR&#x22;]
  A2 --> A3[&#x22;COMPLETED callback&#x22;]

  B[&#x22;Send Pix&#x22;] --> B1[&#x22;Query DICT&#x22;]
  B1 --> B2[&#x22;Pix payment by key or QR&#x22;]
  B2 --> B3[&#x22;COMPLETED callback&#x22;]

  C[&#x22;Reconciliation&#x22;] --> C1[&#x22;List transactions&#x22;]
  C1 --> C2[&#x22;Cross-check with your DB&#x22;]

  click A &#x22;/en/docs/pix-processamento/tutoriais/receive-pix&#x22; &#x22;Open Receive Pix tutorial&#x22;
  click A1 &#x22;/en/docs/pix-processamento/endpoints/pix-operations/post_pix&#x22; &#x22;POST /pix&#x22;
  click A2 &#x22;/en/docs/pix-processamento/endpoints/pix-operations/get_pix_qrcode&#x22; &#x22;GET /pix/qr-code&#x22;
  click A3 &#x22;/en/docs/pix-processamento/webhooks&#x22; &#x22;Webhooks&#x22;

  click B &#x22;/en/docs/pix-processamento/tutoriais/send-pix&#x22; &#x22;Open Send Pix tutorial&#x22;
  click B1 &#x22;/en/docs/pix-processamento/endpoints/keys-and-dict/get_pix_key&#x22; &#x22;GET /pix/key (DICT)&#x22;
  click B2 &#x22;/en/docs/pix-processamento/endpoints/withdrawals/post_withdraw&#x22; &#x22;POST /withdraw&#x22;
  click B3 &#x22;/en/docs/pix-processamento/webhooks&#x22; &#x22;Webhooks&#x22;

  click C &#x22;/en/docs/pix-processamento/tutoriais/reconciliation&#x22; &#x22;Open Reconciliation tutorial&#x22;
  click C1 &#x22;/en/docs/pix-processamento/endpoints/reports/get_user_transactions&#x22; &#x22;GET /user/transactions&#x22;
  click C2 &#x22;/en/docs/pix-processamento/glossary#common-api-fields&#x22; &#x22;clientReference, endToEndId, id&#x22;

  style A fill:#14ce71,stroke:#0eb464,color:#ffffff
  style B fill:#f59e0b,stroke:#d97706,color:#ffffff
  style C fill:#3b82f6,stroke:#1d4ed8,color:#ffffff
`"
/>

## Conventions in the examples [#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.

<QuickLinks>
  <QuickLink href="/docs/pix-processamento/concepts" title="Concepts · API conventions" />
</QuickLinks>