> For the complete documentation index, see [llms.txt](https://help.starkbank.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.starkbank.com/integracao-e-apis/como-criar-dynamic-brcodes-via-api/trava-de-pagador-no-dynamic-brcode.md).

# Trava de Pagador no Dynamic Brcode

Entenda nossa funcionalidade de trava de pagador para Dynamic Brcodes.

A trava de pagador é um recurso de segurança avançado do Stark Bank que restringe a liquidação de uma cobrança a um CPF ou CNPJ específico. Esta funcionalidade é ideal para operações que exigem rigoroso controle de origem e prevenção de pagamentos indevidos por terceiros.

{% hint style="warning" %}

#### Requisitos Operacionais

* Integração via API: Não é possível configurar a trava de pagador manualmente através do Internet Banking. A operação depende de um projeto de integração ativo.
* Projeto de API: Caso sua empresa ainda não utilize nossas chaves de API, consulte o guia inicial em [Introdução à API Stark Bank](https://starkbank.com/docs/api#introduction).
  {% endhint %}

#### Funcionamento e Configuração

A restrição deve ser definida obrigatoriamente no momento da criação do QRCode Dinâmico, através da configuração do parâmetro `rules`. A formatação técnica está detalhada em nossa documentação: [API Stark Bank - Dynamic Brcode](https://starkbank.com/docs/api#dynamic-brcode)

#### Regra de Restrição

Ao ativar o parâmetro de regras (rules) na requisição de emissão:

* O sistema vincula a cobrança ao documento do pagador informado.
* Somente o CPF ou CNPJ cadastrado terá autorização das instituições financeiras para concluir o pagamento.
* Tentativas de pagamento realizadas por outros documentos serão rejeitadas pelo banco pagador.
* A única opção no parâmetro rules é `allowedTaxIds`

{% hint style="success" %}
A trava de pagador eleva o nível de conformidade da sua operação, garantindo que o fluxo financeiro ocorra exatamente entre as partes acordadas, mitigando riscos de erros operacionais ou fraudes de redirecionamento de pagamento.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.starkbank.com/integracao-e-apis/como-criar-dynamic-brcodes-via-api/trava-de-pagador-no-dynamic-brcode.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
