Features
Our API was designed for developers, with a focus on simplicity, security, and scalability.
Average latency of 45ms. Optimized infrastructure to process thousands of transactions per second.
PCI-DSS Level 1 certification. End-to-end encryption and sensitive data tokenization.
Well-documented endpoints, standardized JSON responses, and semantic versioning.
Robust authentication via OAuth 2.0 with JWT tokens and granular permission scopes.
Receive instant notifications about status changes in payments and transactions.
All requests support idempotency keys to ensure data consistency.
Authentication
Use the Client Credentials flow to obtain access tokens. All requests must include the Authorization header with the Bearer token.
Access the dashboard and generate a client_id / client_secret pair.
Make a POST request to /v2/oauth/token with your credentials.
Include the Authorization: Bearer <token> header in all calls.
# 1. Request access token
curl -X POST \
https://api.lbpay.com.br/v2/oauth/token \
-H "Content-Type: application/json" \
-d '
{
"grant_type": "client_credentials",
"client_id": "your_client_id",
"client_secret": "your_client_secret"
}'
# 2. Response
"access_token": "eyJhbGciOi...",
"token_type": "Bearer",
"expires_in": 3600
}