DOKU MCP Server
Set up DOKU MCP server to integrate DOKU APIs with your AI tools
This guide provides end-to-end instructions for integrating with the DOKU MCP Server, covering system requirements, a step-by-step integration process, and detailed documentation of all available tools. Each tool is described by its purpose, recommended use cases, and relevance to common payment flows.
Requirements
Before you start, make sure you fulfill the following requirements:
Become a DOKU Merchant (follow the guide here)
Prepare an AI assistant (e.g. Visual Studio Code, Claude, or any AI assistant of your choice)
Integration Guide
The steps below explain how to connect your AI assistant or agent environment to the DOKU MCP Server.
Step 1: Generate API Keys
Please contact our team to retrieve your credentials by filling the form here.
Be sure to select "Payment Integration via MCP Server (AI Agents)" in the list of services you are interested in using.
Step 2: Encode API Keys
After receiving your API key, you must convert it to Base64 format for use in the MCP Authorization header. Run the following command:
Step 3: Configure Your AI Assistant
Once you have your Base64-encoded token, configure your AI assistant or agent framework to connect to the DOKU MCP Server.
You can integrate using any of the following supported environments:
Visual Studio Code (MCP Extension)
Claude Code / Claude Desktop
n8n
Python Library (MCP Client SDK)
LangChain
StrandsAgent
Javascript Library (MCP Client SDK)
LangChain
Each platform requires you to insert your Base64-encoded credentials and specify the MCP Server endpoint. Refer to the individual setup guides for platform-specific configuration steps.
Tools
DOKU MCP server comes equipped with over 30 powerful tools, designed to handle every stage of the payment process:
Checkout Payment
1
create_payment_link
Generate a payment link that can be used to accept payments without determining customer data
Customer inputting data (e.g. name, email, etc.) before proceeding to check out and selecting payment methods
2
create_checkout_link
Generate a checkout link that can be used to accept payments with customer data specified
Customer selecting payment methods and checking out immediately
Examples
Payment Link

Checkout

Direct Payment
3
get_merchant_payment_methods
Retrieve a list of all payment methods activated for your merchant account
Checking which banks, cards, or wallets are active
4
generate_payment_virtual_account
Generate a Virtual Account number for bank transfer
Completing payments made via VA BCA
5
update_payment_virtual_acccount
Modify details of an existing Virtual Account
Extending deadline for an unpaid VA
6
delete_payment_virtual_account
Close or disable payment of an existing VA
Cancelling an unused VA number
7
generate_payment_qris
Generate a QRIS code for direct payments
Completing payments made via QRIS
8
generate_payment_card_auth
Perform 3D Secure (3DS) authentication for credit/debit cards requiring additional verification
When the card issuer mandates 3DS before charging
9
generate_payment_card_capture
Capture a previously authorized card transaction to complete the payment
For 2-step card flows where authorization and capture are separate
10
generate_payment_card_charge
Charge a card transaction after successful 3DS authentication
Complete payment after card_auth returns a valid 3DS ID
11
generate_payment_ovo_auth
Authenticate an OVO account before payment
Required step before processing an OVO transaction
12
generate_payment_ovo
Generate an OVO e-Wallet payment using the authCode from OVO e-Wallet authentication
Charge customers who choose OVO as a payment method
13
generate_payment_doku_ewallet_auth
Authenticate or bind a DOKU e-Wallet account before payment
Registering a DOKU e-Wallet user for future transactions
14
generate_payment_doku_ewallet
Charge a DOKU e-Wallet account after successful authentication
Completing payments made via DOKU e-Wallet
15
generate_payment_dana
Generate a DANA e-Wallet payment
Completing payments made via DANA
16
generate_payment_shopeepay
Generate a ShopeePay e-Wallet payment
Completing payments made via ShopeePay
17
generate_payment_akulaku
Generate an Akulaku PayLater or installment transaction
Completing payments made via Akulaku
18
generate_payment_kredivo
Generate a Kredivo PayLater or installment transaction
Completing payments made via Kredivo
19
generate_payment_alfagroup
Generate a payment code for cash payments at Alfamart/Alfamidi outlets
Completing payments on the counter at Alfa Group outlets
20
generate_payment_indomaret
Generate a payment code for cash payments at Indomaret outlets
Completing payments on the counter at Indomaret outlets
Examples
Show Payment Methods

Virtual Account Payment

Transaction Utility
21
get_transaction_by_invoice_number
Retrieve the transaction details such as status, amount, and payment method used based on the invoice number
Tracking if an order has been paid
22
get_transaction_by_customer_name
Retrieve the transaction details such as status, amount, and payment method used based on the customer name
Viewing all orders from a particular customer
23
get_transaction_by_date_range
Retrieve the transaction details such as status, amount, and payment method used within a specified start and end date
Monthly reconciliation for accounting
Customer Utility
24
add_customer
Create a new customer with details like name, email, and phone
Registering a new buyer before issuing an invoice
25
update_customer
Update existing customer details (e.g., phone, email)
Correcting customer contact info
26
delete_customer
Remove a customer from your records.
Cleaning inactive or duplicate customer data
27
get_customer_by_id
Retrieve customer details using their unique customer ID
Checking details of a returning customer
28
get_customer_by_name
Retrieve customer details using the customer’s full name or partial name
Finding a repeat customer without knowing their ID
29
get_customer_by_email
Retrieve customer details using the customer’s registered email address
Identifying a customer using their email contact
30
get_all_customers
Retrieve all customers linked to your merchant account
Viewing your full customer base
Use Cases
With DOKU MCP, an AI chatbot can generate a QRIS payment request when a user wants to buy something, send the QR code, poll or receive webhook updates about payment status, and notify the user once paid; similarly, a virtual account flow can be generated, monitored, and confirmed via the agent. Visit DOKU Docs to learn how these tools may be used in practice.
Last updated
Was this helpful?




