万店掌 开放平台 Order data reporting (supports agent authority)

open.ovopark.pos.sendOrder (Order data reporting (supports agent authority))Sandbox debugging

Order data reporting (supports agent authority), agent authority is obtained according to [authority API] open.gateway.getBusinessOrg interface

Interface description#

The environmentInterface methodSubmission methodDo you need a signatureHTTP request routing
Formal environmentopen.ovopark.pos.sendOrderPOSTtruehttp://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.ovopark.pos.sendOrder
_smStringTrue100Signature algorithm md5,sha1md5
_requestModeStringTrue100Request method post,getPOST
_versionStringTrue100Version numberv2
_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
orgId
int11Open platform enterprise id1
enterpriseId
int11Business platform enterprise id1
iposJson
JSONjson string of pos data objectView
    
shopId
string60Store id three-party store idDM001
    
depId
int20Wandian palm store id (shopId and depId must be passed one, both fields are passed the depId value)12
    
shopName
string×512Store nameSuzhou Center Flagship Store
    
machineId
string60Cashier id (this field must be passed if you need to use the ticket superimposition function to associate the cashier with video traceback001
    
cashierId
int×20Cashier id1
    
cashierName
string×100Cashier nameZhang San
    
guideId
int×20Shopping guide id121
    
guideNo
string×100Shopping guide numberdm0011
    
ticketId
string60order numberdm265462654610
    
ticketTimeStr
string60Order time, time stamp, seconds (not milliseconds, note)1553187235
    
vipCard
string×50membership card00121
    
guidePrice
double×15,2Guide price12.33
    
price
double15,2Actual transaction price [small ticket overlay details display]11.22
    
received
double×15,2Collection11.22
    
returned
double×15,2Change1.1
    
refund
int×3Whether to return (1: return, 0: non-return)0
    
goods
JSONProduct informationView
        
goodsId
string60Product Numberp0124
        
goodsName
string100Product name [Small ticket overlay details display]Cola
        
quantity
double15,2Quantity [Small ticket overlay details display]2
        
guidePrice
double15,2Guide price [small ticket overlay details display]2.5
        
unitPrice
double15,2Unit price [Small ticket overlay details display]2.5
        
discount
double15.2Discount [Ticket overlay details display]0.3
        
price
double15,2Actual transaction price [small ticket overlay details display]2.2
        
colourId
string×60Color number0202
        
colourName
string×60Color namered
        
sizeId
string×60Size number1
        
sizeName
string×60Size name1
    
payments
JSONPayment methodsView
        
paymentType
string32Payment type [Small ticket overlay details display]1
        
paymentName
string32Payment name [Small ticket overlay details display]cash
        
price
double15.2Amount [Small ticket overlay details display]1.33

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

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
OPEN_USER_IS_NULL
206001Open platform users do not exist
BUSINESS_PLATFORM_UNBOUND
206003Business platform is not bound, please contact customer service
DEPARTMENT_NOT_EXIST
206004Department does not exist
ORGANIZATIONAL_MISMATCH
206005Organizational structure mismatch
AGENT_PERMISSION_DENIED
206006Agent does not have this enterprise permission
BUSINESS_BASE_ERROR
206999business-base service call exception
ORDER_NUMBER_DUPLICATION
208003Duplicate order number
API_SERVICE_ERROR
999999api service unknown exception