Skip to content
Weavz
Menu
Midtrans

Midtrans MCP integration

Create Midtrans Snap/Core payments, payment links, subscriptions, account tokens, Iris payouts, transaction lifecycle actions, and signed webhooks.

Sign in, add Midtrans in Apps, then choose the account your AI can use.

30 tools
3 triggers
Use withChatGPTClaudeClaude CodeCursorCodexMCP clientsSetup guide

Tools

Name
create_snap_transaction

Create a Midtrans Snap hosted checkout transaction and return the Snap token and redirect URL.

create_payment_link

Create a Midtrans Payment Link invoice from a provider-shaped request body.

charge_transaction

Create a Midtrans Core API charge for bank transfer, e-wallet, QRIS, convenience store, or tokenized card payments.

capture_transaction

Capture an authorized Midtrans card transaction by transaction ID.

get_transaction_status

Fetch Midtrans transaction status by order ID or transaction ID.

cancel_transaction

Cancel a pending Midtrans transaction.

expire_transaction

Expire a pending Midtrans transaction so it can no longer be paid.

refund_transaction

Create a standard Midtrans refund for a settled transaction.

direct_refund_transaction

Create an online direct Midtrans refund for payment methods that support immediate refund processing.

get_bin

Fetch Midtrans BIN metadata without collecting a full card number.

create_pay_account

Create a Midtrans Pay Account tokenization request, such as a GoPay account binding flow.

get_pay_account

Fetch a Midtrans Pay Account by account ID.

unbind_pay_account

Unbind a Midtrans Pay Account token such as a linked GoPay account.

create_subscription

Create a Midtrans recurring subscription using a customer token or supported payment account token.

get_subscription

Fetch a Midtrans subscription by subscription ID.

update_subscription

Update Midtrans subscription amount, token, schedule, customer details, or metadata.

enable_subscription

Enable a disabled Midtrans recurring subscription.

disable_subscription

Temporarily disable a Midtrans recurring subscription.

cancel_subscription

Cancel a Midtrans recurring subscription.

list_iris_banks

List banks supported by Midtrans Iris payouts.

validate_iris_bank_account

Validate a destination bank account before creating a Midtrans Iris beneficiary or payout.

create_iris_beneficiary

Create a Midtrans Iris payout beneficiary.

update_iris_beneficiary

Update a Midtrans Iris payout beneficiary.

list_iris_beneficiaries

List Midtrans Iris payout beneficiaries.

create_iris_payouts

Create one or more Midtrans Iris payout requests.

approve_iris_payouts

Approve one or more pending Midtrans Iris payouts.

reject_iris_payouts

Reject one or more pending Midtrans Iris payouts.

get_iris_payout

Fetch Midtrans Iris payout details by reference number.

get_iris_balance

Fetch Midtrans Iris payout account balance.

list_iris_transactions

List Midtrans Iris transaction history with date and paging filters.

Triggers

Name
webhook_received

Receive Midtrans HTTP notifications and verify the SHA-512 signature_key.

payment_succeeded

Receive Midtrans settlement or captured payment notifications.

refund_updated

Receive Midtrans refund and partial refund notifications.

Quick Start

TypeScript
import { WeavzClient } from '@weavz-io/sdk'

const weavz = new WeavzClient({ apiKey: 'wvz_...' })

const result = await weavz.actions.execute('midtrans', 'create_snap_transaction', {
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAlias: 'midtrans',
  input: { /* ... */ },
})

Related Integrations

Works well with

Frequently Asked Questions

Is there a Midtrans MCP server through Weavz?

Yes. Add the Midtrans integration to a Weavz workspace, enable the actions you need and connect any required account. Weavz provides the workspace MCP endpoint in Tool Mode or Code Mode. The catalog currently lists 30 Midtrans actions.

What can an AI agent do with Midtrans?

Available actions include Create Snap Transaction, Create Payment Link, Charge Transaction, Capture Transaction, Get Transaction Status, and more. Your workspace exposes only the actions you enable. The agent also needs the intended account access and any required input values.

How do I connect Midtrans to Claude or ChatGPT?

Use a compatible remote MCP client, add the Weavz connector and choose a workspace. Add Midtrans, connect the required account and review the enabled actions. Client availability and account requirements vary; adding the connector does not authorize every app automatically.

Can I use Midtrans through an API or SDK?

Yes, supported actions can run through the Weavz REST API, TypeScript SDK or Python SDK. Configure a workspace and the required connections, use scoped access, and pass the intended end-user context when acting for a customer.

What authentication does Midtrans require?

The catalog lists custom credentials for Midtrans. Use Hosted Connect to authorize the intended account. Required permissions, provider app access and available connection methods depend on the integration.

How do I review sensitive Midtrans actions?

Limit enabled actions, scope credentials to the intended user and configure Human Gates for the operations that need review. A matching policy can pause a send, record change or other sensitive action for an approver before execution.

What limits or costs apply to Midtrans?

Weavz plan limits apply to the actions and resources you use. The external provider may also require an account, a paid plan, API credits or specific permissions, and may enforce its own rate limits. Check current Weavz pricing and the provider’s terms before rollout.

What Midtrans triggers are available?

The catalog lists 3 triggers, including Webhook Received, Payment Succeeded, Refund Updated. Configure the trigger and your event handler before using incoming events to start work.

Connect Midtrans in minutes

Get 20,000 free action executions every month. No credit card required.