1. Transactions
  • Bem vindo
  • Webhook
    • Webhook de TRANSAÇÃO
    • Webhook de Saque
    • Create
      POST
    • Find
      GET
    • Find All
      GET
    • Delete
      DELETE
  • Transactions
    • Pix
      POST
    • BOLETO
      POST
    • CARTÃO
      POST
    • Find All
      GET
    • Find
      GET
    • Find By Metadata
      GET
  • Withdraw
    • Find All
      GET
    • Cash Out
      POST
    • Find By Metadata
      GET
    • Find
      GET
  • Balance
    • Get Balance
      GET
  • Disputes
    • Find All
      GET
    • Find
      GET
    • Seller appeal
      POST
  • Fees
    • Get seller Fees
      GET
  • Check
    GET
  1. Transactions

BOLETO

POST
/transactions
Valor mínimo R$5

Requisição

Parâmetros Header

Parâmetros Bodyapplication/json

Examples

Respostas

🟢201Created
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/transactions' \
--header 'x-api-key: sk_c6b0f1703772167d3ac262f4242a2d4e8ca8878bdec44ecb' \
--header 'Content-Type: application/json' \
--data-raw '{
  "amount": 500,
  "method": "BOLETO",
  "customer": {
    "name": "John Doe",
    "email": "john@example.com",
    "phone": "1234567890",
    "documentType": "CPF",
    "document": "1234567890"
  },
  "metadata": {
    "sellerExternalRef": "SPO_250711Fd97bD-m7ZTOMjvBHlx7i"
  },
  "items": [
    {
      "title": "Wireless Mouse",
      "amount": 600, // VALOR DO BOLETO EM CENTAVOS
      "quantity": 1,
      "tangible": true,
      "externalRef": "item_abc123"
    }
  ]
}'
Response Response Example
{
    "status": true,
    "data": {
        "id": "a3f8fac1-d138-4bff-a348-d103442b386f",
        "amount": 500,
        "customer": {
            "id": "6a3aa657-5a7b-4c4d-9537-8a0f794c0731",
            "externalRef": null,
            "name": "John Doe",
            "email": "john@example.com",
            "phone": "1234567890",
            "documentType": "CPF",
            "document": "26841949048",
            "createdAt": "2025-06-27T12:09:03.981Z"
        },
        "items": [
            {
                "id": "f3c8b3ad-9cb5-4050-b858-578a4227b077",
                "title": "Wireless Mouse",
                "amount": 600,
                "quantity": 1,
                "tangible": true,
                "externalRef": "item_abc123",
                "transactionId": "a3f8fac1-d138-4bff-a348-d103442b386f",
                "createdAt": "2025-06-27T12:09:03.981Z",
                "updatedAt": "2025-06-27T12:09:03.981Z"
            }
        ],
        "method": "BOLETO",
        "status": "WAITING_PAYMENT",
        "boleto": {
            "id": "ff838e49-c8ff-4f8a-aeb2-fafa265d29b4",
            "url": "https://api.pagar.me/1/boletos/live_cmcerr83f68mh0km5tb8leikg",
            "barcode": "https://api.pagar.me/core/v5/transactions/tran_VKjzLDilmUJrzXeE/barcode",
            "qrcode": "https://api.pagar.me/core/v5/transactions/tran_VKjzLDilmUJrzXeE/qrcode",
            "digitableLine": "19790000050064193365092102919419111280000000600",
            "expirationDate": "2025-06-30T23:59:59.000Z",
            "pdf": "https://api.pagar.me/1/boletos/live_cmcerr83f68mh0km5tb8leikg?format=pdf",
            "instructions": "Pagar até a data de vencimento",
            "createdAt": "2025-06-27T12:09:04.979Z",
            "updatedAt": "2025-06-27T12:09:04.979Z",
            "transactionId": "a3f8fac1-d138-4bff-a348-d103442b386f"
        },
        "card": null,
        "pix": null,
        "description": null,
        "installments": null,
        "metadata": null,
        "paidAt": null,
        "postbackUrl": null,
        "createdAt": "2025-06-27T12:09:03.981Z"
    }
}
Modificado em 2025-11-17 12:40:39
Página anterior
Pix
Próxima página
CARTÃO
Built with