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

Get started with Midtrans

  1. Add Midtrans to your Weavz workspace and connect the account you want to use.
  2. Review the available tools below and enable the actions your task needs. Check the account permissions before allowing changes.
  3. Connect a compatible AI client to your workspace, or use the actions API from your application.

Tools

Name

Create Snap Transaction

create_snap_transaction

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

Create Payment Link

create_payment_link

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

Charge Transaction

charge_transaction

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

Capture Transaction

capture_transaction

Capture an authorized Midtrans card transaction by transaction ID.

Get Transaction Status

get_transaction_status

Fetch Midtrans transaction status by order ID or transaction ID.

Cancel Transaction

cancel_transaction

Cancel a pending Midtrans transaction.

Expire Transaction

expire_transaction

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

Refund Transaction

refund_transaction

Create a standard Midtrans refund for a settled transaction.

Direct Refund Transaction

direct_refund_transaction

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

Get BIN

get_bin

Fetch Midtrans BIN metadata without collecting a full card number.

Create Pay Account

create_pay_account

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

Get Pay Account

get_pay_account

Fetch a Midtrans Pay Account by account ID.

Unbind Pay Account

unbind_pay_account

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

Create Subscription

create_subscription

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

Get Subscription

get_subscription

Fetch a Midtrans subscription by subscription ID.

Update Subscription

update_subscription

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

Enable Subscription

enable_subscription

Enable a disabled Midtrans recurring subscription.

Disable Subscription

disable_subscription

Temporarily disable a Midtrans recurring subscription.

Cancel Subscription

cancel_subscription

Cancel a Midtrans recurring subscription.

List Iris Banks

list_iris_banks

List banks supported by Midtrans Iris payouts.

Validate Iris Bank Account

validate_iris_bank_account

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

Create Iris Beneficiary

create_iris_beneficiary

Create a Midtrans Iris payout beneficiary.

Update Iris Beneficiary

update_iris_beneficiary

Update a Midtrans Iris payout beneficiary.

List Iris Beneficiaries

list_iris_beneficiaries

List Midtrans Iris payout beneficiaries.

Create Iris Payouts

create_iris_payouts

Create one or more Midtrans Iris payout requests.

Approve Iris Payouts

approve_iris_payouts

Approve one or more pending Midtrans Iris payouts.

Reject Iris Payouts

reject_iris_payouts

Reject one or more pending Midtrans Iris payouts.

Get Iris Payout

get_iris_payout

Fetch Midtrans Iris payout details by reference number.

Get Iris Balance

get_iris_balance

Fetch Midtrans Iris payout account balance.

List Iris Transactions

list_iris_transactions

List Midtrans Iris transaction history with date and paging filters.

Triggers

Name

Webhook Received

webhook_received

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

Payment Succeeded

payment_succeeded

Receive Midtrans settlement or captured payment notifications.

Refund Updated

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

Explore integrations in other categories

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.