Request
[GET] /api/v1/client/get-master-account
Content-Type: application/json
x-client-id: <client_id>
x-signature: <signature>
x-timestamp: <timestamp>
Body
Name | Required | Type | Description |
---|---|---|---|
id | optional | string | virtual account ID |
Response
Content-Type: application/json
Body
Name | Type | Description |
---|---|---|
id | uuid.UUID | ID |
account_number | string | Account name |
account_name | string | Account name |
bank_code | string | Bank code |
is_active | bool | True / False |
usage_type | string | Usage type |
static_qr_code | string | Static QR code |
balance_available_amount | float64 | Available amount |
currency_code | string | ex: VND/USD |
reference_id | string | Reference ID |
master_account_name | string | Master account ID |
bank_id | string | Bank ID |
Errors
Status | Messsage |
---|---|
200 | Success |
401 | Unauthorized |
Example
Request
[GET] /api/v1/client/get-master-account
Response
{
"message": {
"content": "Thực thi API thành công"
},
"code": 102000,
"request_id": "7f23d196c4611372745712d6a1703ccf",
"data": [
{
"account_number": "1AM002110000121",
"account_name": "SHINHN CUA XIEN",
"bank_code": "SHBVN",
"is_active": true,
"usage_type": "merchant_host",
"static_qr_code": "00020101021238590010A0000007270129000697042401151AM0021100001210208QRIBFTTA53037045802VN5915SHINHN CUA XIEN62220818TT SHINHN CUA XIEN6304568F",
"id": "3c919ce1-b310-47ae-9727-f9323ac4fba7",
"balance_available_amount": 0,
"reference_id": "1011030",
"master_account_name": "CONG TY TNHH 1AM VIET NAM",
"bank_id": "616"
},
{
"account_number": "1AM002110000114",
"account_name": "ABC",
"bank_code": "SHBVN",
"is_active": true,
"usage_type": "merchant_host",
"static_qr_code": "00020101021238590010A0000007270129000697042401151AM0021100001140208QRIBFTTA53037045802VN5903ABC62100806TT ABC63047318",
"id": "d76c4e38-8585-4839-8621-de879bf35e2a",
"balance_available_amount": 0,
"reference_id": "1010604",
"master_account_name": "CONG TY TNHH 1AM VIET NAM",
"bank_id": "616"
}
],
"meta": {
"page": 1,
"page_size": 20,
"total_pages": 1,
"total_rows": 14
}
}