Weavz
Midtrans

Midtrans

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

30 tools
3 triggers

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

How do I connect Midtrans to my app?

Use Weavz Hosted Connect for Custom authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.

What tools does Midtrans support?

Midtrans supports 30 tools including Create Snap Transaction, Create Payment Link, Charge Transaction, Capture Transaction, Get Transaction Status, and more.

Can I use Midtrans with AI agents?

Yes. Add Midtrans to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.

Can Midtrans be used in stateful agent workflows?

Yes. Agents can combine Midtrans tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.

What authentication does Midtrans use?

Midtrans uses Custom. Weavz stores credentials securely and uses them for authorized action execution.

How much does the Midtrans integration cost?

The Midtrans integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.

What triggers does Midtrans support?

Midtrans supports 3 triggers including Webhook Received, Payment Succeeded, Refund Updated.

Connect Midtrans in minutes

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