VIETQR API
English
English
  • 🇬🇧VIETQR GREETINGS!
    • Overview
      • General Introduction
      • Description of VietQR API Workflow
      • Declare merchant connection
      • About QR Code & VietQR
    • 📖API VIETQR CALLBACK
      • 1️⃣API Get Token
      • 2️⃣API Transaction Sync
      • 3️⃣API Get Token
      • 4️⃣Gọi API Generate VietQR Code
      • 5️⃣Gọi API Test Callback
      • Synchronize information
        • ➕Synchronize master agent
        • ➕Kiểm tra danh sách đại lý
        • ➕Đồng bộ điểm bán
        • ➕Kiểm tra danh sách điểm bán
      • MASTER MERCHANT
      • Retry giao dịch
    • GOLIVE API
      • *️Nghiệm thu và yêu cầu GoLive
    • OTHER API SERVICE
      • VietQR Refund APIs
        • 1️Gọi API Check Transaction
        • 2️Gọi API Refund
        • 3️Chú ý đối với refund
      • 🛜API Host to Device (MQTTs)
        • 1️Liên kết với VietQR
        • 2️Thiết lập và kết nối
        • 3️MQTT Nhận Biến Động Số Dư
        • 4️MQTT Tạo Mã Thanh Toán VietQR
        • 5️MQTT Nhận Mã Thanh Toán VietQR
        • 6️MQTT Giả Lập Thanh Toán
        • 7️Nghiệm thu và yêu cầu GoLive
        • ➕MQTT Tra Cứu Thông Tin Giao Dịch
        • ➕MQTT Phản Hồi Tra Cứu Thông Tin
        • Các bước đồng bộ MQTT
      • ⚙️Host To Client
        • 1️Gọi API Get Token
        • 2️API Ecommerce Sync
        • 3️WS: Sync Bank Account
        • 4️WS: Transaction Sync
        • 5️Đồng bộ tài khoản ngân hàng
        • 6️Gọi API Generate VietQR Code
        • ➕API Check Transaction
    • WordPress Plugin
      • 1️Cài đặt Plugin VietQR
      • 2️Liên kết với VietQR
      • 3️Đồng bộ tài khoản ngân hàng
      • 4️Tạo mã QR và nhận biến động số dư
      • ➕[FAQs] Câu hỏi thường gặp
    • API CHO SẢN PHẨM IOT
      • Api Tbị Gọi quầy
      • API cho thiết bị PAYBox
      • API cho thiết bị SoundBox
    • ⁉️Bảng mã lỗi
    • 🏦Danh sách mã ngân hàng
    • ℹ️Thông tin bổ sung
    • 🤖Robot tài chính RPA
      • Quy trình mẫu cho Doanh nghiệp
      • Quy trình mẫu đối với Ngân hàng
    • 🎧Hỗ trợ và liên hệ
    • 1️Mở TK VietQR và liên kết
Powered by GitBook
On this page
  • Sample Code
  • Frequently Asked Questions (FAQs)
  1. VIETQR GREETINGS!
  2. API VIETQR CALLBACK
  3. Synchronize information

Synchronize master agent

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

Customers and partners who are not under the master agent category can skip this step.

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ý"
        }
    ]
}
{
    "status": "FAILED",
    "message": "mã_lỗi_và_mô_tả_lỗi"
}

Sample Code

curl --location 'https://api.vietqr.org/vqr/api/mid/synchronize/v1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhdXRob3JpdGllcyI6WyJST0xFX1VTRVIiXSwidXNlciI6IlkzVnpkRzl0WlhJdGJtZDFlV1Z1TFhWelpYSXlORGt5IiwiaWF0IjoxNzIxMzc1MzUzLCJleHAiOjE3MjEzNzU2NTN9.Wi5BTmJ63f7h_p7rimfaycfGIs4TNBkzVGlCUSkOxzWU-QaYZF3rCNndlgPjO89LpRmU3VliSYcf5iHHNrnC7A' \
--header 'Cookie: JSESSIONID=068E5AFD023BFA9AAFBA841C0BF00B62' \
--data-raw '{
    "merchants": [ // List of stores to be synchronized.
        {
            "merchantFullName": "Full name of the agent.",
            "merchantName": "Abbreviated name.",
            "merchantAddress": "Agent’s address.",
            "merchantIdentity": "Tax Identification Number.",
            "contactEmail": "Contact email",
            "contactPhone": "Contact phone number",
            "checkSum": "HASHMD5 128bit của: mật_khẩu_get_token + merchant_name + merchantIdentity"
        }
    ]
}'

Frequently Asked Questions (FAQs)

PreviousSynchronize informationNextKiểm tra danh sách đại lý

Last updated 2 months ago

🇬🇧
📖
➕