Synchronize master agent

This API is used to synchronize the information of agents under the master agent.

POST API Sync MID

https://<vietqr-host>/<basepath>/api/mid/synchronize/v1

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

merchants

List object

Yes

List of agents to be synchronized.

merchantId

String

Yes

Agent ID. (Set to null if it is a new synchronization)

merchantFullName

String

Yes

Agent name.

merchantName

String

Yes

Agent short name.

Must not contain Vietnamese accents, spaces, or special characters.

merchantAddress

String

Yes

Registered business address.

merchantIdentity

String

Yes

Tax Identification Number (MST) / Citizen Identification Number (CCCD) / Business Registration Number (ĐKKD)

checkSum

String

Yes

MD5 hash string of the combination:

(password + merchantName + merchantIdentity)

(password+ merchantName+merchantIdentity)

contactEmail

String

Optional

Agent’s contact email address.

contactPhone

String

Optional

Agent’s contact phone number.

career

String

Optional

Registered business industry.

Response

{
    "status": "SUCCESS",
    "data": [
        {
            "mid": "ID_đại_lý",
            "merchantName": "tên_rút_gọn_đại_lý"
        }
    ]
}

Sample Code

Frequently Asked Questions (FAQs)

Last updated