> 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/passo-a-passo-do-vendedor/2o-criando-pedidos-or-links-de-pagamento-or-assinaturas/links-de-pagamento/link-de-pagamento-pontual.md).

# Link de Pagamento Pontual

O **Link de Pagamento Pontual** permite criar uma **cobrança única** através de um checkout hospedado pela Barte.\
Ao acessar o link, o cliente pode realizar o pagamento utilizando os métodos configurados, sem a necessidade de integração direta com checkout.

Esse tipo de link é indicado para **vendas avulsas**, cobranças manuais e pagamentos enviados por canais externos.

***

### <i class="fa-thumbtack-angle">:thumbtack-angle:</i> Quando usar Link de Pagamento Pontual?

Utilize esse recurso quando:

* A cobrança for **pontual (não recorrente)**
* Você não possui checkout próprio
* Precisa enviar cobranças por WhatsApp, e-mail ou redes sociais
* Quer aceitar **PIX, cartão e boleto** no mesmo link
* Deseja um checkout pronto, seguro e hospedado pela Barte

***

### <i class="fa-rotate">:rotate:</i> Fluxo de pagamento

```
Link de pagamento pontual é criado
            ↓
Link é enviado ao cliente
            ↓
Cliente acessa o checkout Barte
            ↓
Pagamento é realizado
            ↓
Status da transação é atualizado
            ↓
Webhook é enviado para seu sistema
```

> 💡 A confirmação do pagamento deve ser feita via **webhook**, independentemente do método de pagamento.

***

### <i class="fa-download">:download:</i> Criando um Link de Pagamento Pontual

#### Endpoint

```
POST /v2/payment-links
```

***

#### Headers obrigatórios

| Header       | Valor            |
| ------------ | ---------------- |
| X-Token-Api  | Sua chave de API |
| Content-Type | application/json |

***

#### Body

```json
{
  "type": "ORDER",
  "scheduledDate": "2026-01-30",
  "paymentOrder": {
    "title": "Link de Pagamento pontual",
    "description": "Cobrança referente ao pedido X",
    "value": 100,
    "installments": 1,
    "timer": true,
    "expirationDate": "2026-02-10T18:00:00",
    "customInstallmentsValues": [
      {
        "paymentMethod": "PIX",
        "installments": 1
      },
      {
        "paymentMethod": "CREDIT_CARD_EARLY_BUYER",
        "installments": 10
      },
      {
        "paymentMethod": "BANK_SLIP",
        "installments": 1
      }
    ]
  },
  "paymentMethods": [
    "PIX",
    "CREDIT_CARD_EARLY_BUYER",
    "BANK_SLIP"
  ]
}
```

***

#### Response

Após a criação, a API retorna os dados do link de pagamento.

```json
{
  "id": 9448,
  "uuid": "a1b33060-6fc3-4057-bcd2-19a253c7b90e",
  "type": "ORDER",
  "url": "https://sandbox-pay.barte.com/payment-link/a1b33060-6fc3-4057-bcd2-19a253c7b90e",
  "scheduledDate": "2026-01-30",
  "paymentOrder": {
    "title": "Link de Pagamento Pontual",
    "description": "Cobrança referente ao pedido X",
    "value": 100,
    "installments": 1,
    "customInstallmentsValues": [
      {
        "paymentMethod": "PIX",
        "installments": 1
      },
      {
        "paymentMethod": "CREDIT_CARD_EARLY_BUYER",
        "installments": 10
      },
      {
        "paymentMethod": "BANK_SLIP",
        "installments": 1
      }
    ],
    "expirationDate": "2026-02-10T18:00:00",
    "timer": true
  },
  "processed": 0,
  "enableAnchoring": false,
  "allowedPaymentMethods": {
    "pixMethod": {},
    "bankSlipMethod": {},
    "creditCardMethod": {
      "type": "EARLY_BUYER"
    }
  },
  "paymentMethods": [
    "PIX",
    "BANK_SLIP",
    "CREDIT_CARD_EARLY_BUYER"
  ],
  "enableBankSlip": true,
  "enableCreditCard": true,
  "enablePixPayment": true,
  "subSellerResponse": [],
  "idSeller": 2890
}
```

#### Campo mais importante da resposta

* `url` → **link de pagamento pontual** que deve ser enviado ao cliente

***

### <i class="fa-bell">:bell:</i> Confirmação do pagamento

Após o cliente realizar o pagamento:

* O status da transação é atualizado na Barte
* Um **webhook é disparado** para o seu sistema

Utilize o webhook como **fonte de verdade** para confirmar o pagamento.

***

### <i class="fa-lightbulb">:lightbulb:</i> Boas práticas

* Utilize sempre `expirationDate`
* Confirme pagamentos apenas via webhook
* Armazene o `uuid` do link para rastreabilidade
* Use links pontuais para cobranças únicas

***

### <i class="fa-hexagon-xmark">:hexagon-xmark:</i> O que não fazer

* Confirmar pagamento sem webhook
* Reutilizar links expirados
* Expor sua chave de API no frontend


---

# 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/guias/passo-a-passo-do-vendedor/2o-criando-pedidos-or-links-de-pagamento-or-assinaturas/links-de-pagamento/link-de-pagamento-pontual.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.
