Documentation and API Reference

Integrate payments quickly and securely with LB Pay's RESTful API. Everything you need to build robust financial solutions.

Features

Everything you need to integrate payments

Our API was designed for developers, with a focus on simplicity, security, and scalability.

High Performance

Average latency of 45ms. Optimized infrastructure to process thousands of transactions per second.

PCI-DSS Security

PCI-DSS Level 1 certification. End-to-end encryption and sensitive data tokenization.

RESTful API

Well-documented endpoints, standardized JSON responses, and semantic versioning.

OAuth 2.0

Robust authentication via OAuth 2.0 with JWT tokens and granular permission scopes.

Real-time Webhooks

Receive instant notifications about status changes in payments and transactions.

Idempotency

All requests support idempotency keys to ensure data consistency.

Authentication

Secure authentication via OAuth 2.0

Use the Client Credentials flow to obtain access tokens. All requests must include the Authorization header with the Bearer token.

1

Get your credentials

Access the dashboard and generate a client_id / client_secret pair.

2

Request the token

Make a POST request to /v2/oauth/token with your credentials.

3

Use the token in requests

Include the Authorization: Bearer <token> header in all calls.

autenticacao.sh
# 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
}