For AI agents: visit https://docs.midtrans.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
Create merchant API is an API call that can be used to register a new merchant under a Partner
Request Header
Field
Type
Attribute
Description
Authorization
String
Mandatory
Basic Base64Encode(partnerServerKey:)
X-PARTNER-ID
String
Mandatory
Unique identifier for partner. Provided by Midtrans.
Request Body
Field
Type
Attribute
Description
email
String
Mandatory
Email to be registered as Midtrans merchant
merchant_name
String
Mandatory
Name of the merchant.
callback_url
String
Optional
Merchant’s endpoint URL where Midtrans sends a response after completing a particular request.
notification_url
String
Optional
Merchant’s endpoint URL where Midtrans’ Payment Gateway sends HTTP callbacks for payment success or failure events. This is only for payment notifications and does not apply to disbursement or transfer. For disbursement notifications, see Disbursement HTTP Notification setup
pay_account_url
String
Optional
Merchant’s endpoint URL where Midtrans' notification engine will send HTTP notification related with pay account (linking & unlinking).
owner_name
String
Optional
The name of the merchant’s owner.
phone_number
String
Optional
The phone number of the merchant without country code