mcp-rinne

v0.1.0
io.github.codespar/mcp-rinne Checked 2 days ago Published 3 months ago

Brazilian 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.

ParameterTypeDescription
addressobjectAddress.
contactobjectContact details.
full_namestring
namestring

create_merchant

Create a new merchant under your organization. Requires KYC data. Financial fields may be required by specific affiliation providers later.

ParameterTypeDescription
address *objectAddress.
contact *objectContact details.
document_number *stringCNPJ or CPF
document_type *stringe.g. CNPJ or CPF
full_name *stringFull legal name (razão social / nome completo)
mcc *stringMerchant Category Code — see list_mccs
name *stringTrading/display name
declared_incomenumberDeclared personal income, for individual merchants (optional)
declared_revenuenumberDeclared monthly/annual revenue (optional; some affiliation providers require it)
net_worthnumberDeclared net worth (optional)

list_merchants

List merchants under your organization.

ParameterTypeDescription
limitinteger
pageinteger

get_merchant

Get merchant details by ID.

ParameterTypeDescription
merchant_id *string

update_merchant

Update a merchant. All fields optional besides merchant_id.

ParameterTypeDescription
merchant_id *string
addressobjectAddress.
contactobjectContact details.
full_namestring
namestring

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.

ParameterTypeDescription
allowed_capture_methods *array
allowed_payment_methods *array
merchant_id *stringMerchant 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 *stringe.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.

ParameterTypeDescription
allowed_capture_methods *array
allowed_payment_methods *array
merchant_id *stringMerchant 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 *stringe.g. CAPPTA, CELCOIN
provider_credentialsobjectExisting 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.

ParameterTypeDescription
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
providerstring
statusstringe.g. PENDING_APPROVAL, ACTIVE, REJECTED

get_affiliation

Get a specific affiliation for a merchant.

ParameterTypeDescription
affiliation_id *string
merchant_id *string

store_card

Save a card on file for reuse in future transactions (via card_id).

ParameterTypeDescription
card *objectCard to store. `number` must already be encrypted.
merchant_idstringMerchant 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.

ParameterTypeDescription
limitinteger
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
pageinteger

get_card

Get a stored card by ID.

ParameterTypeDescription
card_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
card_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
amount *integerAmount in cents
card *object
currency *string
billing_addressobjectAddress.
merchantobject
merchant_idstringMerchant 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_documentstring
payer_emailstring
payer_namestring

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.

ParameterTypeDescription
amount *integerAmount in cents
currency *string
request_id *stringYour idempotency key for this transaction
capture_methodstringe.g. ECOMMERCE
card_dataobjectCard 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_idstringCard only — use a card previously saved via store_card instead of card_data
consumerobjectPayer/buyer identification. Required for PIX; optional for card.
installmentsintegerCard only
merchant_idstringMerchant 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_methodstringe.g. CREDIT_CARD, DEBIT_CARD, PIX
pix_dataobjectPIX charge details, for payment_method: PIX.
providerstringProcessing provider — RINNE by default, or a provider this merchant has an active affiliation with (e.g. CAPPTA, CELCOIN)
require_3dsbooleanCard only — transaction-first flow: force 3DS, returns AWAITING_3DS for authenticate_transaction
three_d_secure_session_idstringCard 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).

ParameterTypeDescription
three_d_secure_session_id *string
transaction_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
transaction_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
limitinteger
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
pageinteger
statusstringe.g. APPROVED, REFUSED, AWAITING_3DS, WAITING_PAYMENT

cancel_transaction

Cancel a pending transaction (e.g. an unpaid BOLEPIX charge before its due date).

ParameterTypeDescription
transaction_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
merchant_id *stringRequired — refunds are always issued at the merchant level
refund_amount *integerAmount in cents to refund
transaction_id *string
descriptionstring
refund_reasonstringe.g. CUSTOMER_REQUEST

cancel_refund

Cancel a refund that hasn't settled yet.

ParameterTypeDescription
transaction_id *string
merchant_idstringMerchant 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).

ParameterTypeDescription
transaction_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
payer_company_id *string
transaction_id *string
merchant_idstringMerchant 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).

ParameterTypeDescription
key_type *stringe.g. EVP
merchant_id *string
provider *stringe.g. CELCOIN
primaryboolean

list_pix_collection_keys

List the merchant's PIX collection keys.

ParameterTypeDescription
merchant_id *string

list_ledger_entries

List ledger entries for the authenticated company.

ParameterTypeDescription
cashout_idstring
limitinteger
operationstring
pageinteger
payment_date_fromstring
payment_date_tostring
refund_idstring
settledboolean
transaction_idstring
typestring

get_ledger_entry

Get a single ledger entry by ID.

ParameterTypeDescription
ledger_entry_id *string

create_bank_account

Register an external bank account (payout destination).

ParameterTypeDescription
account_holder_document_number *string
account_holder_name *string
account_number *string
account_type *string
branch_number *string
ispb *stringBank ISPB code
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
nicknamestring

update_bank_account

Set a bank account as primary.

ParameterTypeDescription
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).

ParameterTypeDescription
key *string
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
primaryboolean

get_balance

Get the current balance.

ParameterTypeDescription
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
providerstring

topup_balance

SANDBOX ONLY. Simulate funding the balance — not a real deposit call.

ParameterTypeDescription
amount *integerAmount in cents
provider *string
merchant_idstringMerchant 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.

ParameterTypeDescription
merchant_id *string
date_fromstring
date_tostring
providerstring

create_internal_transfer

Transfer funds between two of your organization's own bank accounts.

ParameterTypeDescription
amount *integerAmount in cents
destination_bank_account_id *string
origin_bank_account_id *string
request_id *string
metadataobject

list_judicial_blockages

List judicial blockages (court-ordered account freezes) affecting balances.

ParameterTypeDescription
affiliation_bank_account_idstring
limitinteger
merchant_idstringMerchant 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_fromstring
occurred_at_tostring
pageinteger
process_numberstring
typestring

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.

ParameterTypeDescription
amount *integerAmount in cents
method *stringe.g. PIX, TED
origin_bank_account_id *string
request_id *string
currencystring
destination_bank_account_idstring
destination_pix_key_idstring
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
metadataobject

list_cashouts

List cashouts.

ParameterTypeDescription
merchant_idstringMerchant 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.

ParameterTypeDescription
cashout_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
cashout_id *string
merchant_idstringMerchant 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).

ParameterTypeDescription
idstring
is_activeboolean
limitinteger
namestring
pageinteger

create_fee_policy

Create a fee policy — pricing rules applied to merchants.

ParameterTypeDescription
cashout_price *integerFlat cashout fee, in cents
is_active *boolean
name *string
rules *array
descriptionstring

replace_fee_policy

Replace a fee policy in full (PUT).

ParameterTypeDescription
cashout_price *integer
fee_policy_id *string
is_active *boolean
name *string
rules *array
descriptionstring

update_fee_policy

Partially update a fee policy (PATCH) — any subset of fields.

ParameterTypeDescription
fee_policy_id *string
cashout_priceinteger
is_activeboolean
namestring
rulesarray

list_cost_policies

List cost policies (what providers charge you).

ParameterTypeDescription
idstring
is_activeboolean
limitinteger
mccstring4-digit MCC
namestring
pageinteger
providerstringCELCOIN, 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.

ParameterTypeDescription
name *string
permissions *arraye.g. ["transaction.create", "transaction.list"] or ["*.*"] for full access
expires_atstringISO 8601 (optional)
merchant_idstringMerchant 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).

ParameterTypeDescription
merchant_idstringMerchant 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.

ParameterTypeDescription
api_key_id *string
merchant_idstringMerchant 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.

ParameterTypeDescription
name *string
permissions *array
descriptionstring

list_roles

JWT required. List roles.

ParameterTypeDescription
company_idstring
limitinteger
namestring
pageinteger

list_permissions

JWT required. List all available permissions (read-only, system-defined), optionally filtered by resource.

ParameterTypeDescription
resourcestringe.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).

ParameterTypeDescription
first_name *string
identifiers *array
last_name *string
auth_methodsarray
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
rolesarray

list_users

List users. With merchant_id, uses the merchant's x-api-key scope; without it, lists org users and requires JWT.

ParameterTypeDescription
limitinteger
merchant_idstringMerchant ID to scope this call to (uses /v1/merchants/{merchant_id}/...). Omit to act at the organization/self level with an org-scoped key.
pageinteger
sortstringe.g. created_at or -created_at

update_user

JWT required (org users only). Update a user's name/roles.

ParameterTypeDescription
user_id *string
first_namestring
last_namestring
rolesarray

suspend_user

JWT required (org users only). Suspend a user's access.

ParameterTypeDescription
user_id *string

activate_user

JWT required (org users only). Reactivate a suspended user.

ParameterTypeDescription
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.

ParameterTypeDescription
zipcode *string5-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.