Pagar.me integration
Payments on the Brazilian gateway Pagar.me v5: create orders that carry their own items and payment instructions, list and inspect the charges those orders produce, capture a pre authorized charge or cancel it, keep a customer base with saved cards, run plan based subscriptions, and read the recipients that receive split payments together with their balances. Every monetary amount is an integer in CENTS and lists page with page and size while returning a paging block.
Say what should happen.
The workflow builds itself.
Common Pagar.me use cases
- charging a card at checkout
- showing a buyer their saved cards
- saving a card for one click repurchase
- starting a monthly plan on a saved card
- cancelling a plan when a customer churns
- capturing a card hold once an order ships
- reconciling settled charges over a period
- reconciling the orders created in a period
- listing the sellers that can receive a split
- registering a buyer before saving their card
What you can do with Pagar.me
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Charge, 4 operations
cancel_chargeCancel chargeDELETEVoids or refunds a charge in full and returns it with the cancelled amount filled in.capture_chargeCapture chargePOSTTakes the money on a charge that is holding an authorization and returns the updated charge.get_chargeGet chargeGETReturns a single charge and the detail of how it was processed.list_chargesList chargesGETReturns a page of charges with their latest transaction attempt.
Customer, 4 operations
create_customerCreate customerPOSTRegisters a buyer and returns the cus_ identifier every other call accepts.get_customerGet customerGETReturns a single buyer record.list_customersList customersGETReturns a page of customers inside the standard data and paging envelope.update_customerUpdate customerPUTRewrites the name, contact data or address of an existing buyer.
Order, 3 operations
create_orderCreate orderPOSTRaises an order and its charges in one call and returns the order with the resulting charges.get_orderGet orderGETReturns a single order, including the charges that settle it.list_ordersList ordersGETReturns a page of orders with their items, customer and charges.
Subscription, 3 operations
cancel_subscriptionCancel subscriptionDELETEEnds a recurring plan and returns it with status canceled.create_subscriptionCreate subscriptionPOSTStarts a recurring plan for a customer and returns the subscription with its first cycle.list_subscriptionsList subscriptionsGETReturns a page of subscriptions with their current cycle and next billing date.
Card, 2 operations
create_cardCreate cardPOSTStores a card and returns its card_ identifier with only the masked number.list_cardsList cardsGETReturns the stored cards of one buyer with their brand and masked digits.
Balance, 1 operation
get_recipient_balanceGet recipient balanceGETReads how much money a recipient holds and how much is still settling.
Recipient, 1 operation
list_recipientsList recipientsGETReturns the registered recipients with their bank account and transfer settings.
Use Pagar.me from Claude Code, Cursor or Codex
Connect Pagar.me in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Pagar.me operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Pagar.me
- Create your workspace
Sign up free. Nothing to install.
- Connect Pagar.me once
Add your Pagar.me connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Pagar.me integration FAQ
What can you do with the Pagar.me integration?
LiveContext exposes 18 operations on Pagar.me, covering charge, customer, order and subscription. Common uses include charging a card at checkout, showing a buyer their saved cards and saving a card for one click repurchase.
