Introduction
Receive with Pix and pay out in Pix with a single API.
The RASPAY API is REST, receives and returns JSON, and uses the same resources in test and live mode. With it you create Pix charges, track payments by webhook and move the balance with Pix payouts. Pix is the instant payment system of the Central Bank of Brazil.
- Every amount is an integer in cents of Brazilian real (BRL):
15000means R$ 150.00. - The API base URL is
https://api.raspay.io. - Dates are in ISO 8601, in UTC.
- CPF is the Brazilian individual tax ID (11 digits) and CNPJ is the company tax ID (14 digits).
- Text written by the API, such as the
messageof errors and thedescriptionof balance transactions, is in Portuguese. Build your logic on codes, types and statuses, which are in English.
Your first charge
curl -X POST "https://api.raspay.io/v1/charges" \
-H "Authorization: Bearer $GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "amount": 15000, "reference": "ORDER-0001" }'Next steps
Quickstart
Create and pay your first charge in the sandbox in 5 minutes.
Pix: charges
Generate the QR code and copy and paste code, and track the payment.
Pix payouts
Transfer the balance to any Pix key.
Webhooks
Receive events in real time and verify the signature.
Environments and sandbox
Differences between test and live, and how to simulate each scenario.
API reference
All endpoints, parameters and responses.