Skip to main content

StoreList

Function

Get a list of store.

Endpoint

  • /v1/store/list

HTTP Method

  • POST

Request Headers

  • Authorization: Bearer {token}
  • X-App-Key: {appKey}

Request Payload

{
"pageNo": 1,
"pageSize": 10
}

Request Parameters

FieldRequiredTypeRemarkSample
pageNoNointegerPagination page number, 0 represents the first page1
pageSizeNointegerNumber of entries per page, maximum 20010

Response Payload

{
"status": 1,
"errorCode": 0,
"message": "success",
"morePage":true,
"pageNo":1,
"pageSize":1,
"items": [
{
"storeCode": "KTSP010000001",
"storeNameEn": "Name (EN)",
"storeNameSc": "Name (SC)",
"storeNameTc": "Name (TC)",
"storeStatus": "Active",
"allowEarn": true,
"allowBurn": true,
"siteId": "KTSP01",
"floorName": "1F",
"unitName": "L10001",
"category":{
"categoryId": "01hdmxx74gh75ykw03203hpxvq",
"categoryNameEn": "Name (EN)",
"categoryNameSc": "Name (SC)",
"categoryNameTc": "Name (TC)"
}
}
]
}

Response Parameters

FieldRequiredTypeRemarkSample
statusYesstringstatus code of the api call
messageYesstringdetail message of the api call
errorCodeNostring
morePageNobooleanWhether has more page. If this value is true, you may want to continue to check next pagetrue
pageNoYesintegerPagination page number, 0 represents the first page1
pageSizeYesintegerNumber of entries per page, maximum 20010
itemsNoobject[]
storeCodeNostringUnique CodeKTSP010000001
storeNameEnNostringEnglish nameName (EN)
storeNameScNostringSimplified Chinese nameName (SC)
storeNameTcNostringTraditional Chinese nameName (TC)
storeStatusNostringActive 、 InactiveActive
allowEarnNobooleanAllow Earn Pointtrue
allowBurnNobooleanAllow Burn Pointtrue
isRetailNobooleanisRetailtrue
siteIdNostringsiteId: KTSP01KTSP01
floorNameNostringfloorName1F
unitNameNostringunitNameL10001
categoryNoobject
. categoryIdYesstringCategory Id01hdmxx74gh75ykw03203hpxvq
. categoryNameEnYesstringEnglish NameName (EN)
. categoryNameScYesstringSimplified Chinese NameName (SC)
. categoryNameTcYesstringTraditional Chinese NameName (TC)

Response Headers

Error Codes

CodeDescription
1Internal Error