v2

latestOpenAPI 3.1.02026-07-314524165.2 KB

Criar Checkout Transparente

Cria um checkout transparente. Use "method": "PIX" para gerar um QR Code ou "method": "BOLETO" para emitir um boleto com PIX alternativo incluído.

post/transparents/create

Request body

method'PIX' | 'BOLETO' required

Método de pagamento.

Example request

{
  "method": "PIX",
  "data": {
    "dueDate": "2026-08-15",
    "customer": {
      "name": "Daniel Lima",
      "taxId": "123.456.789-01",
      "email": "daniel_lima@abacatepay.com",
      "cellphone": "(11) 4002-8922"
    },
    "interest": {
      "value": 100
    },
    "fine": {
      "value": 200,
      "type": "PERCENTAGE"
    }
  }
}

Response

Checkout transparente criado com sucesso

errorstring nullable
successboolean

Se a requisição obteve sucesso ou não.

Example response

{
  "data": {
    "id": "bole_k8pqr2mnvx",
    "amount": 25000,
    "status": "PENDING",
    "brCode": "00020126580014BR.GOV.BCB.PIX0136d2b4e5f6-7890-abcd-ef12-34567890abcd5204000053039865802BR5913Daniel Lima6009SAO PAULO62070503***6304F1C2",
    "brCodeBase64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
    "barCode": "23793.38128 60007.827263 37000.963779 4 10010000025000",
    "url": "https://app.abacatepay.com/pay/bole_k8pqr2mnvx/boleto",
    "platformFee": 250,
    "interest": {
      "value": 100
    },
    "fine": {
      "value": 200,
      "type": "PERCENTAGE"
    },
    "expiresAt": "2024-11-07T03:00:00.000Z",
    "createdAt": "2024-11-04T14:22:10.381Z",
    "updatedAt": "2024-11-04T14:22:10.381Z"
  },
  "success": true
}