> 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/api-reference/intermediador-de-pagamentos/recuperacao-de-vendas-com-ia.md).

# Recuperação de Vendas com IA

## Solicitar recuperação de charge via IA

> Envia uma charge com falha para tentativa de recuperação via IA

```json
{"openapi":"3.0.0","info":{"title":"Barte Payment Service API - Charges","version":"2.0.0"},"servers":[{"url":"https://api.barte.com","description":"Servidor de Produção"},{"url":"https://sandbox-api.barte.com","description":"Servidor de Sandbox"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Token-Api","description":"Token de autenticação para acesso à API"}},"schemas":{"IARecoveryRequest":{"type":"object","required":["uuid_charge"],"properties":{"uuid_charge":{"type":"string","format":"uuid","description":"Identificador único da cobrança que falhou"},"company_name":{"type":"string","description":"Nome da empresa para contexto da chamada (opcional)"}}},"IARecoveryResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indica se a requisição foi processada com sucesso"},"message":{"type":"string","description":"Mensagem de confirmação"}}}}},"paths":{"/v2/charges/sales-recovery-ai":{"post":{"summary":"Solicitar recuperação de charge via IA","description":"Envia uma charge com falha para tentativa de recuperação via IA","tags":["Sellers"],"parameters":[{"name":"X-Token-Api","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"Token de autenticação do intermediador"},{"name":"Content-Type","in":"header","required":true,"schema":{"type":"string","enum":["application/json"]},"description":"Tipo de conteúdo da requisição"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IARecoveryRequest"}}}},"responses":{"200":{"description":"Charge recebida para tentativa de recuperação via IA","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IARecoveryResponse"}}}},"400":{"description":"Parâmetros inválidos ou falha na requisição","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorSingle"}}}},"401":{"description":"Token inativo ou inexistente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticationError"}}}},"403":{"description":"Acesso negado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"Erro interno do servidor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}}}}
```


---

# 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://docs.barte.com/api-reference/intermediador-de-pagamentos/recuperacao-de-vendas-com-ia.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.
