Skip to main content

Update VA

Process

API Information

Method: POST

URL: /api/merchant-hosted/bank-transfer/update

Request

(Parameters sent by the partner)

Main Parameters Table

No.Field NameData TypeRequiredDescription
1request_idString(50)Unique request ID. Suggested format: MerchantCode+YYYYMMDDHHIISS+UniqueId
2request_timeString(19)Request sent time. Format: YYYY-MM-DD HH:II:SS
3merchant_codeString(30)Partner code provided by Baokim
4mrc_order_idString(22)Previously created merchant order code
5acc_nameString(50)Account name
6collect_amount_minIntegerMinimum collection amount (minimum 2,000 VND)
7collect_amount_maxIntegerMaximum collection amount (unlimited)
8expire_dateString(19)Payment expiration date. Format: YYYY-MM-DD HH:II:SS

Request Example

{
"request_id": "PARTNER001_20250717115030_0001",
"request_time": "2025-07-17 11:50:30",
"merchant_code": "Baokim123",
"mrc_order_id": "MRC202507170001",
"acc_name": "Nguyen Van B",
"collect_amount_min": 10000,
"collect_amount_max": 300000000,
"expire_date": "2025-07-20 23:59:59"
}

Response

(Parameters returned by Baokim)

Main Parameters Table

No.Field NameData TypeRequiredDescription
1codeIntegerBaokim error code
2messageString(255)Error code description
3dataObjectData returned

Data Information

No.Field NameData TypeRequiredDescription
1mrc_order_idString(25)Merchant order code sent by partner
2order_idString(25)Baokim transaction code
3collect_amount_minIntegerMinimum collection amount (minimum 2,000 VND)
4collect_amount_maxIntegerMaximum collection amount (unlimited)
5expire_dateDatetimePayment expiration date. Format: YYYY-MM-DD H:m:s
6bank_nameString(100)Bank name
7bank_branchString(100)Bank branch
8acc_noString(22)Account number
9acc_nameString(50)Account holder name
10qr_stringTextQR string
11qr_pathString(100)QR image path

Response Example

{
"code": 0,
"message": "Success",
"data": {
"mrc_order_id": "ORD123456789",
"order_id": 1231313,
"collect_amount_min": 10000,
"collect_amount_max": 300000000,
"expire_date": "2025-07-20 23:59:59",
"bank_name": "Ngân hàng TMCP Ngoại Thương Việt Nam (Vietcombank)",
"bank_branch": "Chi nhánh Hà Nội",
"acc_no": "0123456789012",
"acc_name": "Nguyen Van A",
"qr_string": "00020101021238550010A0000007270123000697040300000000000020386304C3A4",
"qr_path": "https://sandbox.Baokim.vn/qr/BK1234567890.png"
}
}

Error Codes

codemessage
100Success
101System error
102Provider error
104JWT authentication error
105Invalid digital signature
106Order amount is insufficient for refund
107Order cannot be refunded
108Order cannot be cancelled
109Order does not exist
110Merchant order code already exists
422Validation error