mcp-rinne
v0.1.0Brazilian card acquiring API — merchants, cards-on-file, 3DS, PIX, banking, pricing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_company
Get the authenticated company (organization or merchant, depending on the API key's scope).
update_company
Update the authenticated company. All fields optional.
| Parameter | Type | Description |
|---|---|---|
address | object | Address. |
contact | object | Contact details. |
full_name | string | |
name | string |
create_merchant
Create a new merchant under your organization. Requires KYC data. Financial fields may be required by specific affiliation providers later.
| Parameter | Type | Description |
|---|---|---|
address * | object | Address. |
contact * | object | Contact details. |
document_number * | string | CNPJ or CPF |
document_type * | string | e.g. CNPJ or CPF |
full_name * | string | Full legal name (razão social / nome completo) |
mcc * | string | Merchant Category Code — see list_mccs |
name * | string | Trading/display name |
declared_income | number | Declared personal income, for individual merchants (optional) |
declared_revenue | number | Declared monthly/annual revenue (optional; some affiliation providers require it) |
net_worth | number | Declared net worth (optional) |
list_merchants
List merchants under your organization.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
page | integer |
get_merchant
Get merchant details by ID.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string |
update_merchant
Update a merchant. All fields optional besides merchant_id.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | |
address | object | Address. |
contact | object | Contact details. |
full_name | string | |
name | string |
create_affiliation
Create a merchant account with a payment provider (e.g. RINNE, CAPPTA, CELCOIN), enabling transaction processing for the given payment methods and capture channels. Starts in PENDING_APPROVAL.
| Parameter | Type | Description |
|---|---|---|
allowed_capture_methods * | array | |
allowed_payment_methods * | array | |
merchant_id * | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
provider * | string | e.g. RINNE, CAPPTA, CELCOIN |
register_affiliation
Register a gateway-mode affiliation — bring an existing account/credentials with the provider instead of having Rinne provision a new one.
| Parameter | Type | Description |
|---|---|---|
allowed_capture_methods * | array | |
allowed_payment_methods * | array | |
merchant_id * | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
provider * | string | e.g. CAPPTA, CELCOIN |
provider_credentials | object | Existing credentials with the provider (gateway mode). Shape is provider-specific; passed through as-is. |
list_affiliations
List affiliations. With merchant_id, scoped to that merchant; without it, lists across all merchants in the organization.
| Parameter | Type | Description |
|---|---|---|
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
provider | string | |
status | string | e.g. PENDING_APPROVAL, ACTIVE, REJECTED |
get_affiliation
Get a specific affiliation for a merchant.
| Parameter | Type | Description |
|---|---|---|
affiliation_id * | string | |
merchant_id * | string |
store_card
Save a card on file for reuse in future transactions (via card_id).
| Parameter | Type | Description |
|---|---|---|
card * | object | Card to store. `number` must already be encrypted. |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
list_cards
List cards on file.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
page | integer |
get_card
Get a stored card by ID.
| Parameter | Type | Description |
|---|---|---|
card_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
delete_card
Delete a stored card.
| Parameter | Type | Description |
|---|---|---|
card_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
create_3ds_session
Create a 3D Secure authentication session for a card, ahead of (or alongside) creating a transaction. Returns an id to pass as `three_d_secure_session_id` to create_transaction / authenticate_transaction.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in cents |
card * | object | |
currency * | string | |
billing_address | object | Address. |
merchant | object | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
payer_document | string | |
payer_email | string | |
payer_name | string |
create_transaction
Create a transaction — card (raw, stored, or Apple Pay/Google Pay) or PIX. For card, either: (1) "session-first" — call create_3ds_session first and pass its id as three_d_secure_session_id; or (2) "transaction-first" — pass require_3ds: true and the transaction comes back AWAITING_3DS, then call authenticate_transaction. For PIX, set payment_method: "PIX" and fill pix_data + consumer; the transaction comes back WAITING_PAYMENT with a QR code.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in cents |
currency * | string | |
request_id * | string | Your idempotency key for this transaction |
capture_method | string | e.g. ECOMMERCE |
card_data | object | Card or digital wallet used for this transaction. For a raw card, set number+cvv (both pre-encrypted). For Apple Pay / Google Pay, set network_token+cryptogram+wallet_type instead. Omit entirely if pa… |
card_id | string | Card only — use a card previously saved via store_card instead of card_data |
consumer | object | Payer/buyer identification. Required for PIX; optional for card. |
installments | integer | Card only |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
payment_method | string | e.g. CREDIT_CARD, DEBIT_CARD, PIX |
pix_data | object | PIX charge details, for payment_method: PIX. |
provider | string | Processing provider — RINNE by default, or a provider this merchant has an active affiliation with (e.g. CAPPTA, CELCOIN) |
require_3ds | boolean | Card only — transaction-first flow: force 3DS, returns AWAITING_3DS for authenticate_transaction |
three_d_secure_session_id | string | Card only — id from create_3ds_session (session-first flow) |
authenticate_transaction
Complete 3DS authentication for a transaction that came back AWAITING_3DS (transaction-first flow).
| Parameter | Type | Description |
|---|---|---|
three_d_secure_session_id * | string | |
transaction_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
get_transaction
Get transaction details and current status by ID, including any refunds.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
list_transactions
List transactions. With merchant_id, scoped to that merchant; without it, lists across all merchants in the organization.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
page | integer | |
status | string | e.g. APPROVED, REFUSED, AWAITING_3DS, WAITING_PAYMENT |
cancel_transaction
Cancel a pending transaction (e.g. an unpaid BOLEPIX charge before its due date).
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
refund_transaction
Refund a transaction, fully or partially.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | Required — refunds are always issued at the merchant level |
refund_amount * | integer | Amount in cents to refund |
transaction_id * | string | |
description | string | |
refund_reason | string | e.g. CUSTOMER_REQUEST |
cancel_refund
Cancel a refund that hasn't settled yet.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
get_transaction_receipt
Get a transaction's receipt(s) (returns base64 PDF).
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
simulate_pay_transaction
SANDBOX ONLY. Mark a WAITING_PAYMENT transaction (typically PIX) as paid, simulating the payer completing payment.
| Parameter | Type | Description |
|---|---|---|
payer_company_id * | string | |
transaction_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
create_pix_collection_key
Create a PIX key the merchant uses to RECEIVE payments, tied to a provider affiliation. Different resource from register_cashout_pix_key (which registers a key as a payout destination).
| Parameter | Type | Description |
|---|---|---|
key_type * | string | e.g. EVP |
merchant_id * | string | |
provider * | string | e.g. CELCOIN |
primary | boolean |
list_pix_collection_keys
List the merchant's PIX collection keys.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string |
list_ledger_entries
List ledger entries for the authenticated company.
| Parameter | Type | Description |
|---|---|---|
cashout_id | string | |
limit | integer | |
operation | string | |
page | integer | |
payment_date_from | string | |
payment_date_to | string | |
refund_id | string | |
settled | boolean | |
transaction_id | string | |
type | string |
get_ledger_entry
Get a single ledger entry by ID.
| Parameter | Type | Description |
|---|---|---|
ledger_entry_id * | string |
create_bank_account
Register an external bank account (payout destination).
| Parameter | Type | Description |
|---|---|---|
account_holder_document_number * | string | |
account_holder_name * | string | |
account_number * | string | |
account_type * | string | |
branch_number * | string | |
ispb * | string | Bank ISPB code |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
nickname | string |
update_bank_account
Set a bank account as primary.
| Parameter | Type | Description |
|---|---|---|
bank_account_id * | string | |
merchant_id * | string | |
primary * | boolean |
register_cashout_pix_key
Register an external PIX key as a payout (cashout) destination. Different resource from create_pix_collection_key (which registers a key to receive payments).
| Parameter | Type | Description |
|---|---|---|
key * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
primary | boolean |
get_balance
Get the current balance.
| Parameter | Type | Description |
|---|---|---|
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
provider | string |
topup_balance
SANDBOX ONLY. Simulate funding the balance — not a real deposit call.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in cents |
provider * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
get_statement
Get a merchant's balance statement (movements) for a date range.
| Parameter | Type | Description |
|---|---|---|
merchant_id * | string | |
date_from | string | |
date_to | string | |
provider | string |
create_internal_transfer
Transfer funds between two of your organization's own bank accounts.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in cents |
destination_bank_account_id * | string | |
origin_bank_account_id * | string | |
request_id * | string | |
metadata | object |
list_judicial_blockages
List judicial blockages (court-ordered account freezes) affecting balances.
| Parameter | Type | Description |
|---|---|---|
affiliation_bank_account_id | string | |
limit | integer | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
occurred_at_from | string | |
occurred_at_to | string | |
page | integer | |
process_number | string | |
type | string |
create_cashout
Create a cashout (payout) to a bank account or PIX key. Provide exactly one of destination_bank_account_id or destination_pix_key_id.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Amount in cents |
method * | string | e.g. PIX, TED |
origin_bank_account_id * | string | |
request_id * | string | |
currency | string | |
destination_bank_account_id | string | |
destination_pix_key_id | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
metadata | object |
list_cashouts
List cashouts.
| Parameter | Type | Description |
|---|---|---|
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
get_cashout
Get a single cashout by ID.
| Parameter | Type | Description |
|---|---|---|
cashout_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
get_cashout_receipt
Get a cashout's receipt.
| Parameter | Type | Description |
|---|---|---|
cashout_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
list_fee_policies
List fee policies (what you charge merchants).
| Parameter | Type | Description |
|---|---|---|
id | string | |
is_active | boolean | |
limit | integer | |
name | string | |
page | integer |
create_fee_policy
Create a fee policy — pricing rules applied to merchants.
| Parameter | Type | Description |
|---|---|---|
cashout_price * | integer | Flat cashout fee, in cents |
is_active * | boolean | |
name * | string | |
rules * | array | |
description | string |
replace_fee_policy
Replace a fee policy in full (PUT).
| Parameter | Type | Description |
|---|---|---|
cashout_price * | integer | |
fee_policy_id * | string | |
is_active * | boolean | |
name * | string | |
rules * | array | |
description | string |
update_fee_policy
Partially update a fee policy (PATCH) — any subset of fields.
| Parameter | Type | Description |
|---|---|---|
fee_policy_id * | string | |
cashout_price | integer | |
is_active | boolean | |
name | string | |
rules | array |
list_cost_policies
List cost policies (what providers charge you).
| Parameter | Type | Description |
|---|---|---|
id | string | |
is_active | boolean | |
limit | integer | |
mcc | string | 4-digit MCC |
name | string | |
page | integer | |
provider | string | CELCOIN, RINNE, or CAPPTA |
list_mccs
List Merchant Category Codes (MCCs), for use in create_merchant.
get_webhook_dashboard_url
Get the URL of the webhook management dashboard, to configure endpoints and subscribed events (webhooks themselves are configured there, not via this API). Requires the webhook.list permission. Events are Svix-signed; verify with the Svix SDK and your webhook secret.
get_health
Check Rinne API health status.
create_api_key
JWT required (RINNE_EMAIL/RINNE_PASSWORD) — API keys can't create other API keys. The full key is returned once only; store it immediately.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
permissions * | array | e.g. ["transaction.create", "transaction.list"] or ["*.*"] for full access |
expires_at | string | ISO 8601 (optional) |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
list_api_keys
JWT required. List API keys (shows prefix + last 4 only, not the full key).
| Parameter | Type | Description |
|---|---|---|
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
revoke_api_key
JWT required. Revoke an API key.
| Parameter | Type | Description |
|---|---|---|
api_key_id * | string | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
create_role
JWT required. Create a custom role.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
permissions * | array | |
description | string |
list_roles
JWT required. List roles.
| Parameter | Type | Description |
|---|---|---|
company_id | string | |
limit | integer | |
name | string | |
page | integer |
list_permissions
JWT required. List all available permissions (read-only, system-defined), optionally filtered by resource.
| Parameter | Type | Description |
|---|---|---|
resource | string | e.g. transaction, user |
get_current_session
JWT required. Get the current JWT session's identity/company context — a whoami for the JWT scope, distinct from get_company (x-api-key scope).
create_user
Create a user. With merchant_id, uses the merchant's x-api-key scope; without it, creates an org user and requires JWT (RINNE_EMAIL/RINNE_PASSWORD).
| Parameter | Type | Description |
|---|---|---|
first_name * | string | |
identifiers * | array | |
last_name * | string | |
auth_methods | array | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
roles | array |
list_users
List users. With merchant_id, uses the merchant's x-api-key scope; without it, lists org users and requires JWT.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
merchant_id | string | Merchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key. |
page | integer | |
sort | string | e.g. created_at or -created_at |
update_user
JWT required (org users only). Update a user's name/roles.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
first_name | string | |
last_name | string | |
roles | array |
suspend_user
JWT required (org users only). Suspend a user's access.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
activate_user
JWT required (org users only). Reactivate a suspended user.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
lookup_zipcode
JWT required — unlike almost every other endpoint in this API, zipcode lookup rejects x-api-key. Look up a Brazilian address by CEP.
| Parameter | Type | Description |
|---|---|---|
zipcode * | string | 5-9 digit CEP |
get_sandbox_guide
Return Rinne sandbox rules: the card-encryption requirement, test card numbers, the amount-based approve/decline rule, and which tools need a JWT session.