EnglishGetting startedQuickstart

Quickstart

In three steps you issue your first PIX charge.

1. Generate an API key

In the INFI dashboard, go to Devices / API keys and click Create new key. The full secret is shown only once. Save it in a safe place (secrets vault, environment variable).

Preconditions

Creation requires approved KYC and a verified email. If either is pending, finish onboarding before continuing.

2. Create a charge

Endpoint: POST https://api.internationalfinance.com.br/v1/pix. Use Authorization: Bearer <YOUR_API_KEY>.

curl -X POST https://api.internationalfinance.com.br/v1/pix \
  -H "Authorization: Bearer $INFI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amountCents": 1000,
    "externalRef": "order-123",
    "expiresInDays": 2,
    "customer": {
      "name": "Maria Silva",
      "email": "maria@example.com",
      "document": { "number": "12345678901", "type": "cpf" }
    }
  }'

Response 201:

{
  "transactionId": "Q4t9aV...",
  "status": "pending",
  "pixPayload": "00020126580014BR.GOV.BCB.PIX...",
  "expiresAt": 1715000000,
  "amountCents": 1000
}

Show pixPayload to the payer as copy-and-paste or render the QR Code from it on your side.

3. Receive confirmation

Register an HTTPS URL in the dashboard under Webhook. When the status changes (paid, failed, cancelled…), INFI sends a POST to your endpoint with the HMAC signature. See Setting up the webhook.

Webhook is best-effort

INFI sends a single webhook attempt (8s timeout). If your application is down or slow to respond, the event may be lost — implement a fallback by polling GET /v1/transactions/:id for final statuses.

Next steps