Skip to main content

Pagou Gateway v2

Welcome to the Pagou API.

Everything you need to integrate Pix collections, card payments, Payment Element, Pix transfers, webhooks, and operational reconciliation lives in one developer-first reference.

Start with v2, use one auth scheme, send stable external_ref values, and let webhooks drive asynchronous state.

Use Payment Element for hosted fields, tokenization, and 3DS orchestration, then create transactions from your backend.

Write through API calls, acknowledge webhooks fast, and reconcile with GET endpoints when outcomes are uncertain.

Main content

Quick sandbox example

curl --request POST \
  --url https://api-sandbox.pagou.ai/v2/transactions \
  --header "Authorization: Bearer YOUR_SANDBOX_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "external_ref": "order_1001",
    "amount": 1500,
    "currency": "BRL",
    "method": "pix",
    "buyer": {
      "name": "Ada Lovelace",
      "email": "ada@example.com",
      "document": {
        "type": "CPF",
        "number": "12345678901"
      }
    },
    "products": [
      {
        "name": "Starter order",
        "price": 1500,
        "quantity": 1
      }
    ]
  }'
Production baseline: authenticate with one method, send a stable external_ref, acknowledge webhooks in milliseconds, and reconcile any uncertain state with GET /v2/transactions/{id} or GET /v2/transfers/{id}.