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

# Gerar QR Code

Gera um QR Code Pix para recebimento de pagamentos (Cash-in).

### Headers

| Header          | Valor                   | Descrição        |
| :-------------- | :---------------------- | :--------------- |
| `Authorization` | `Bearer <access_token>` | Token de acesso. |

### Parâmetros do Body

<ParamField body="amount" type="number" required>
  Valor da transação.
</ParamField>

<ParamField body="external_id" type="string" required>
  Seu ID interno para controle.
</ParamField>

<ParamField body="payerQuestion" type="string">
  Descrição que aparecerá para o pagador.
</ParamField>

<ParamField body="postbackUrl" type="string">
  URL para receber notificações de status.
</ParamField>

<ParamField body="payer" type="object">
  Dados do pagador.

  <Expandable title="properties">
    <ParamField body="name" type="string">Nome do pagador</ParamField>
    <ParamField body="document" type="string">CPF/CNPJ do pagador</ParamField>
    <ParamField body="email" type="string">Email do pagador</ParamField>
  </Expandable>
</ParamField>

<ParamField body="split" type="array">
  Divisão de pagamentos.

  <Expandable title="item properties">
    <ParamField body="username" type="string">Username do recebedor</ParamField>
    <ParamField body="percentageSplit" type="number">Porcentagem da divisão</ParamField>
  </Expandable>
</ParamField>
