Skip to main content

Create a Merchant

API: POST /v1/merchant/create

Create a new Merchant account (used by Master Merchants / Gateway Partners).

Usage​

const result = await client.merchant.create({
name: 'Doanh nghiệp ABC',
phoneNumber: '0946881502',
email: 'contact@abc.vn',
website: 'https://abc.vn',
});

Input parameters​

FieldTypeRequiredDescription
namestring✓Display name of the Merchant
phoneNumberstring✓Primary contact phone number
emailstring✕Email address
websitestring✕Website
codestring✕Your own identifier (Internal ID)

Response​

{
"code": "00",
"message": "Success",
"data": {
"merchantId": 12345
}
}
FieldTypeDescription
data.merchantIdnumberID of the newly created Merchant