PIX API — Integration documentation

Integrate PIX Payments in Minutes

Complete documentation for integrating with PIX payment services, charges, transfers, and webhooks.

Everything you need to integrate PIX

Simple APIs, clear documentation, and ready-to-use examples

+

PIX Cash-In

Generate PIX charges with dynamic QR Codes and receive payments instantly.

−

PIX Cash-Out

Send PIX payments to any key. Supports QR Code and direct transfer.

↺

Refunds

Return refunds for received PIX transactions, with full control and traceability.

mTLS
Client certificate to issue tokens
Bearer
Token on every other route
HMAC
Signed webhooks
24/7
PIX around the clock

Simple and direct integration

Generate a PIX charge in just a few lines of code

const response = await fetch(
  'https://api.fypay.me/api/pix/cash-in',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer ${token}',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      transaction: {
        value: 150.0,
        externalId: 'ORDER-123',
        description: 'Pedido #123',
      },
    }),
  }
);

const { transactionId, pixCode, qrCodeImage }
  = await response.json();

→ Returns QR Code, Pix Copy and Paste and transaction ID