Skip to main content

Get the sub-Merchant list

Use this API as a Master Merchant to query the sub-Merchants you manage, with pagination and flexible search.

POST
URLhttps://open-api.tingee.vn/v1/merchant/get-paging

Get the list of sub-Merchants, filtered by keyword or status.

Header Request​

HeaderRequiredDescription
Content-Type✓application/json
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature. See How to generate the signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Body Parameter​

FieldTypeRequiredDescription
filterstring✕Search keyword, partially matched against the Merchant code (code), name, email and phone number; or exactly matched against clientId.
skipCountnumber✕Number of records to skip (pagination). Default: 0.
maxResultCountnumber✕Maximum number of records per page (up to 2000). Leave empty to get all.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/merchant/get-paging' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE' \
--header 'Content-Type: application/json' \
--data '{
"filter": "",
"skipCount": 0,
"maxResultCount": 10
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"totalCount": 1,
"items": [
{
"id": 10001,
"name": "Doanh nghiệp Vận tải",
"phoneNumber": "0946881502",
"fullAddress": "123 Lê Lợi, Phường Bến Thành, Quận 1, TP. Hồ Chí Minh",
"referralCode": null,
"userReferralLevel": 1,
"creationTime": "2026-01-15T05:20:49.000Z",
"userReferralAncestorIds": null,
"isMasterMerchant": false,
"baasType": null,
"isLockEvent": false,
"assignedUserId": null,
"isLockoutEnabled": false
}
]
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
data.totalCountnumberTotal number of Merchants matching the conditions.
data.itemsarrayList of Merchants under the Master Merchant, sorted by id in descending order.
data.items[].idnumberMerchant ID.
data.items[].namestringMerchant name.
data.items[].phoneNumberstringMerchant phone number.
data.items[].fullAddressstringFull address.
data.items[].referralCodestringMerchant referral code (if any).
data.items[].userReferralLevelnumberMerchant referral level on TINGEE.
data.items[].creationTimestringMerchant creation time (ISO 8601).
data.items[].userReferralAncestorIdsstringString of the Merchant's referrer IDs on TINGEE (if any).
data.items[].isMasterMerchantbooleantrue if the Merchant is also a Master Merchant.
data.items[].baasTypestringBaaS Merchant classification (if any): trial, trial-extended, customer, cancelled, unclassified.
data.items[].isLockEventbooleantrue if event (webhook) delivery is locked for the Merchant.
data.items[].assignedUserIdnumberID of the person in charge of the Merchant on TINGEE (if any).
data.items[].assignedUserNamestringName of the person in charge (only present when assignedUserId has a value).
data.items[].isLockoutEnabledbooleantrue if the Merchant's login account is locked.

Common error codes​

CodeDescriptionHow to handle
1133Permission deniedThis API is for Master Merchant accounts only; check the x-client-id you are using.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.