> For the complete documentation index, see [llms.txt](https://docs.barte.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.barte.com/guias/inicio/cartoes-para-testes.md).

# Cartões para testes

Os cartões a serem utilizados no teste, devem ter números válidos e podem ser gerados a partir de qualquer[ site gerador de cartões](https://www.4devs.com.br/gerador_de_numero_cartao_credito), devendo o comportamento seguir as seguinte regra para diferentes validação de diferentes cenários:

| Cartão          | Autorizado?       | Status             | Exemplo             |
| --------------- | ----------------- | ------------------ | ------------------- |
| Final 0, 1 ou 4 | SIM               | Aprovado           | 5186 8825 4989 5601 |
| Final 2         | NÃO               | Não autorizado     | 5465415736976082    |
| Final 3         | NÃO               | Cartão expirado    | 5112 9708 0010 5403 |
| Final 5         | NÃO               | Cartão bloqueado   | 5528430335513025    |
| Final 6         | NÃO               | Timeout            | 5186882549895601    |
| Final 7         | NÃO               | Cartão cancelado   | 5325827236673227    |
| Final 8         | Aleatório SIM/NÃO | Aprovado / Timeout | 5397549970735078    |

Em sandbox, para testar os cenários acima, o CVV sempre deve ser um número de 3 dígitos terminado em zero (Ex. 220). Um número de CVV diferente de zero, irá resultar em falha na geração da transaçãoAbaixo está um exemplo do cartão completo válido, para testar a aprovação de uma cobrança:

```
{
"holderName": "JOSE DAS NEVES TEST",
"number": "5383638854440891",
"cvv": 220,
"expiration": "12/2024"
}
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.barte.com/guias/inicio/cartoes-para-testes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
