> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hg.cash/llms.txt
> Use this file to discover all available pages before exploring further.

# Cash-in QR

> Recibir pagos en BOB mediante código QR

## Resumen

El cash-in en Bolivia crea un **cobro QR** en una cuenta **BOB**. La API devuelve una **imagen QR en base64** para que el pagador la escanee. La transacción permanece en `pending` hasta confirmar el pago.

La cuenta debe ser **BOB** y país **BO**.

También puede cobrar en BOB con **[Checkout hospedado](/es/developers/checkout)** (`POST /api/v1/checkouts` con `country: "BO"`). Ese flujo exige `payer.name`, `payer.document` y `payer.email` al crear y devuelve `qrCode` en la respuesta.

## Requisitos

* Token Bearer con acceso a la cuenta BOB

## Flujo

1. `POST /api/v1/bo/transactions/inbound` — `accountId` y `amount`
2. Mostrar `qrCode` al pagador (imagen base64)
3. Opcional: `GET /api/v1/bo/transactions/{id}/status` o `webhookUrl` — ver [Recepción de webhooks](/es/developers/receiving-webhooks)

## Ejemplo

```bash theme={null}
curl -X POST https://hg.cash/api/v1/bo/transactions/inbound \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "YOUR_ACCOUNT_UUID",
    "amount": 150.00,
    "description": "Pedido 42",
    "webhookUrl": "https://your.app/webhooks/hg"
  }'
```

La transacción inicia en `pending` y pasa a `done` al confirmarse el pago QR.
