# Pay-in

> Receive money into your COP balance with PSE payment links, Bre-B keys and Bre-B QR codes, and reconcile it with deposits and webhooks.

[Sandbox · coming soon]

Pay-in gathers the three ways to receive money into your COP balance. Every payment that arrives, by any of them, becomes a **deposit** with its payer and your reference.

| Method                                                                | How your customer pays                                        | Amount                           | Best for                                    |
| --------------------------------------------------------------------- | ------------------------------------------------------------- | -------------------------------- | ------------------------------------------- |
| [PSE links](https://developers.zulu.com.co/en/docs/pay-in/pse.md)     | Opens a link and pays from their bank with PSE                | Fixed or open                    | Invoices, installments, remote collections  |
| [Bre-B keys](https://developers.zulu.com.co/en/docs/pay-in/bre-b.md)  | Transfers from their banking app to your key (`@yourcompany`) | Whatever they send               | Recurring payments, collections per channel |
| [Bre-B QR](https://developers.zulu.com.co/en/docs/pay-in/bre-b-qr.md) | Scans a QR code with their banking app                        | Fixed (dynamic) or open (static) | Counters, points of sale, orders            |

## How the money flows

1. You create the collection method: a link, a key or a QR code, with your `reference`.
2. Your customer pays outside your system (their bank, their app).
3. zulu credits your COP balance and creates a deposit with `method`, `amount`, `reference` and the `payer`.
4. You hear about it through the `DEPOSITS` webhook (and `RECHARGE_LINKS` for links) or by reading the [deposits](https://developers.zulu.com.co/en/docs/pay-in/deposits.md).

## Endpoints

**POST** `/v1/recharge-links` — Create a PSE payment link · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/create-recharge-link.md)

**POST** `/v1/bre-b/keys` — Create a Bre-B key · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/create-bre-b-key.md)

**POST** `/v1/bre-b/qr-codes` — Create a Bre-B QR code · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/create-qr-code.md)

**GET** `/v1/deposits` — List deposits · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/list-deposits.md)

## Test in the sandbox

No bank and no app can pay in the sandbox: payments are simulated, and every simulation produces the same deposit and the same webhooks as a real payment.

**POST** `/v1/sandbox/recharge-links/{slug}/pay` — Simulate a PSE link payment · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/simulate-recharge-link-payment.md)

**POST** `/v1/sandbox/bre-b/transfers/in` — Simulate an incoming Bre-B transfer · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/simulate-bre-b-transfer-in.md)

**POST** `/v1/sandbox/bre-b/qr-codes/{id}/pay` — Simulate a QR code payment · [Sandbox only] · [See the reference](https://developers.zulu.com.co/en/reference/simulate-qr-code-payment.md)

## Use cases

- [Collections with PSE links](https://developers.zulu.com.co/en/docs/pay-in/use-cases/collections-with-pse-links.md)
- [Counter payments with a dynamic QR](https://developers.zulu.com.co/en/docs/pay-in/use-cases/counter-payments-with-dynamic-qr.md)
- [Automatic Bre-B reconciliation](https://developers.zulu.com.co/en/docs/pay-in/use-cases/bre-b-reconciliation.md)
