Base URLs
Authentication
The API uses API key authentication via thex-api-key header:
Authorization header:
Permissions
JWT-authenticated requests are subject to permission checks. Each endpoint requires specific permissions in the formatresource[.subresource].action (e.g., transaction.list, merchant.company.create).
- API key auth: Bypasses permission checks
- JWT auth: Permissions are validated against the user’s roles
resource.*: All actions for a resourcemerchant.*: All merchant-scoped operations*.*: All permissions
Request format
All POST, PATCH, and PUT requests must include aContent-Type: application/json header and a JSON body:
Response format
Success responses
Successful requests return the requested data directly:Error responses
Errors return anerror object with detailed information:
Pagination
All list endpoints return paginated responses with a unified structure. Use query parameters to control pagination:| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number to retrieve |
limit | integer | 20 | Items per page (maximum: 100) |
data array and includes a pagination object:
Pagination fields
| Field | Type | Description |
|---|---|---|
page | integer | Current page number |
limit | integer | Number of items per page |
total | integer | Total number of items matching the query |
totalPages | integer | Total number of pages |
hasNext | boolean | Whether a next page exists |
hasPrev | boolean | Whether a previous page exists |
Filtering and sorting
Many list endpoints support filtering and sorting:Filtering
Sorting
Use thesort parameter with field names. Prefix with - for descending order:
Idempotency
Use therequest_id field to make requests idempotent:
request_id, you’ll receive the existing resource instead of creating a duplicate.
Amounts in cents
All monetary values are represented as integers in cents:10000= R$ 100.001050= R$ 10.5099= R$ 0.99
Date and time format
All timestamps use ISO 8601 format with UTC timezone:Supported providers
The API supports multiple payment providers:CELCOIN: PIX integration and banking servicesRINNE: Internal provider
Rate limiting
The API implements rate limiting to ensure platform stability. If you exceed limits, you’ll receive a 429 status code with aretry_after value in seconds.
Implement exponential backoff for retries.
Webhooks
Rinne sends webhooks for real-time event notifications. See the Webhooks guide for setup and handling.API versioning
The current API version isv1, indicated in the URL path:
v2, v3, etc. Version 1 will remain supported for backward compatibility.
Next steps
Card transactions
Implement credit and debit card API flows
Wallet transactions
Process Apple Pay and Google Pay via backend APIs
3D Secure authentication
Implement session-first and transaction-first 3DS flows
PIX payments
Build QR code and due date payment flows

