万店掌 开放平台 Multi-store hourly data (corresponding to customer flow data of business platform) - [Compatible with PC4,PC5,PC6,PC8]

open.passengerflow.getManyShopsPassengerIndicatorData (Multi-store hourly data (corresponding to customer flow data of business platform) - [Compatible with PC4,PC5,PC6,PC8])Sandbox debugging

Indicator description: 1. Inbound customer flow: the equipment bound under the main entrance and exit is counted; 2. In-store customer flow: the customer flow that passes through the store but does not enter the store; 3, outside the store customer flow: = into the store customer flow + over the store customer flow, that is, into the store does not enter the store are counted; 4, outbound customer flow: outbound customer flow (head and shoulder equipment can be counted, face equipment can not be counted); Special note: The use of face equipment statistics passenger flow, "analysis - single index" and "comparison - multi-store comparison" of the "time" dimension, the addition of each period and the page "summary" may appear inconsistent. Reason: Based on the principle of presenting actual passenger flow data, the summary data is weighted by day. Multiple occurrences in a day are counted as 1 person; data in each period is weighted by hour. Multiple occurrences in the same hour are counted as 1 person;

Interface description#

The environmentInterface methodSubmission methodDo you need a signatureHTTP request routing
Formal environmentopen.passengerflow.getManyShopsPassengerIndicatorDataPOSTtruehttp://openapi.opretail.com/m.api

Common request parameters#

ParametersTypes ofIs requiredThe maximum lengthDescriptionExample values
_aidStringTrue20Open platform system number, fixed to S107S107
_akeyStringTrue20Opretail open platform assigns developer keys to third partiesObtained after certification of platform developer
_mtStringTrue100Interface nameopen.passengerflow.getManyShopsPassengerIndicatorData
_smStringTrue100Signature algorithm md5,sha1md5
_requestModeStringTrue100Request method post,getPOST
_versionStringTrue100Version numberv1
_timestampStringTrue100TimestampyyyyMMddHHmmss format
_sigStringTrue32Signature tokenGenerated according to the signature algorithm, see the signature algorithm rules for details
_formatStringFalse10Format typeCurrently only supports json by default

Business request parameters#

ParametersTypes ofIs requiredThe maximum lengthDescriptionExample values
id
string100Store :"S_" + ID Organizational structure :"O_" + IDO_1834
startTime
string100The start time2020-08-19 00:00:00
endTime
string100The end of time2020-08-19 23:59:59
starthour
int×11The default 00
endhour
int×11The default 2424
timeType
int×11Time type 1- Hour 2- Day 3- Week April - Month 5- Season 6- Year The default time latitude of the trend is 12

Common response parameters#

ParametersTypes ofThe maximum lengthDescriptionExample values
statJSON-Gateway status (specific parameters are described below :)View
stat.cidString100Http request identifier
stat.codeString100Gateway return code
stat.codenameString100Gateway return code name
stat.systimeStringLongThe current time of the interface call
resultString100Interface returns prompt information
dataJSON-Business information returned by the interface call (generally json format data, the specific data format will be defined in the business return parameters)View

Business return parameters#

ParameterTypes ofWhether to returnReturns the maximum lengthDescriptionExample values
name
string×100shop nametest store
depId
int×11Store id9642
shopId
string×100Store Code55247
×
    
time
string×100time2021-11-14 01:00:00
    
passengerFlow
int×11Walk-in Count: Count the equipment bound under the main entrance and exit;0
    
outSidePassengerFlow
int×11Outside passenger flow = Walk-in Count +Passing Store Count, that is, not only count walk in, but also count those who passing the store but not enter the store.0
    
passPassengerFlow
int×11Passing Store Count = passenger flow passing the store but not entering the store;0
    
inShopRate
double×11Walk-in Rate = Walk-in Count/Outside passenger flow*100% =Walk-in Count/(Walk-in Count +Passing Store Count)*100% (the overall enterprise Walk-in Rate does not include the stores that are not bound with outside people counting device)0
    
outFlowCount
int×11Walk-out Count: Walk-out Count(head and shoulder equipment can be counted, facial equipment cannot be counted)0
    
dressingRate
double×11Fitting Rate = Customes flow in the fitting room/ Walk-in Count*100%, that is, the proportion of in-store customers who go for fitting0

Public return code#

Return code nameReturn codeReturn code descriptionSolution
SUCCESS0Call success
KEY_NOTNULL1_akey can not be emptyInput the _akey parameter when the interface is called
KEY_UNLAWFUL2_akey is illegalkey is illegal, input in the correct key
KEY_HAS_EXPIRED3_akey has expiredPlease renew the service or contact the platform administrator
SIGN_METHOD_NOTNULL4_sm parameter cannot be emptyInput the _sm parameter when the interface is called
SIGN_TYPE_NOTEXIST5_sm type does not existCurrently only supports md5, sha1
SIGN_NOTNULL6_sig parameter cannot be emptyInput the _sig parameter when the interface is called
SIGN_WRONG7Invalid signature, please check parameters and signature format_sig value is generated according to the signature algorithm
METHOD_NOTNULL8_mt parameter cannot be emptyInput the _mt parameter when the interface is called
METHOD_NOTEXIST_CODE9The method name corresponding to _mt does not exist or is not registered in the serviceCheck if the method corresponding to _mt method name and _version version number is passed in error
REQUESTMODE_NOTNULL10_requestMode parameter cannot be emptyInput the _requestMode parameter when the interface is called
APPLICATIONID_NOTNULL11_aid parameter cannot be emptyInput the _aid parameter when the interface is called
APPLICATIONID_NOTSAME12_aid does not match the current key_aid and _akey must correspond one-to-one
VERSION_NOTNULL13_version version number cannot be emptyInput the _version parameter when the interface is called
TIMESTAMP_NOTNULL14_timestamp timestamp cannot be emptyInput the _timestamp parameter when the interface is called
TIMESTAMP_FORMAT_ERROR15_timestamp timestamp formatting errorAccording to yyyyMMddHHmmss format
TIMESTAMP_OVERTIME16_timestamp has expired_timestamp is regenerated every time the interface is called
FORMAT_TYPE_NOTEXIST17_format type does not existCurrently only supports json (default), xml
API_CALL_REPEAT-100The interface is called repeatedlyInterface platform call exception
API_SYSTEM_CALL_ERROR-500API call failed, system exception occurredInterface platform call exception
UNKNOWN_ERROR-999Open platform system exceptionReissue request

Business return code#

Return code nameReturn codeReturn code description