Skip to main content

Get the shop list

Use this API to query the full list of shops belonging to your sub-Merchants. You can filter the list by a specific Merchant or search by shop name.

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

Query the shop list with pagination and advanced filtering.

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
merchantIdnumber✕Filter by a specific sub-Merchant ID.
filterstring✕Search keyword, partially matched against the shop name or full address (fullAddress).
sortingstring✕Sort results in the format <field> <asc|desc>, with multiple conditions separated by commas. Example: s.id desc.
skipCountnumber✕Number of records to skip (start position). 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/shop/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,
"merchantId": 1001
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"totalCount": 1,
"items": [
{
"id": 10001,
"name": "Cửa hàng Chi nhánh 1",
"address": "Số 123 Đường ABC, Hà Nội",
"isActive": true
}
]
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
data.totalCountnumberTotal number of shops found.
data.itemsarrayDetailed list of shops.
data.items[].idnumberShop ID.
data.items[].namestringShop name.
data.items[].addressstringFull address of the shop (the fullAddress value set on create/update).
data.items[].isActivebooleanShop active status.

Common error codes​

CodeDescriptionHow to handle
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.