Skip to main content

List Merchants

API: POST /v1/merchant/get-paging

Query the list of sub-Merchants, with pagination.

Usage​

const result = await client.merchant.getPaging({
skipCount: 0,
maxResultCount: 10,
});

Input parameters​

FieldTypeRequiredDescription
skipCountnumber✓Number of records to skip
maxResultCountnumber✓Maximum number of records per page
filterstring✕Search keyword
sortingstring✕Sort order

Response​

{
"code": "00",
"message": "Success",
"data": {
"totalCount": 5,
"items": [
{
"merchantId": 12345,
"name": "Doanh nghiệp ABC",
"phoneNumber": "0946881502",
"status": "active"
}
]
}
}
FieldTypeDescription
data.totalCountnumberTotal number of records
data.itemsarrayList of Merchants