Return code specification:
16-bit 000000 means success! Parameter correlation return code reservation 100000-199999; system related return code reservation 200000-299999; Data center 310000-319999 Follow-up projects and so on, follow-up according to business expansion of new operation code needs to be filed in advance!
module = system code OptCode = operation Code OPTDESC = Operation Description ResultCode = result code RESULTDESC = result description Bizcode = business code Data = Return
Business code = system code-+ opcode-+ result code The business code content is consistent with the previous definition, example: taobao-+ order_add-+ 330002
An example of the returned results is shown below:
Exception return:
{ "OptCode":"store_addmsg", "Optdesc":"new News from the Library center", "ResultCode":"330002", "Resultdesc":"Library Center added message failed to add message to search engine Library exception", "Data":"", "Module":"HME", "Bizcode":"TaoBao-order_add-330002", "Success":false}
Normal return:
{ "OptCode":"store_addmsg", "Optdesc":"new News from the Library center", "ResultCode":"000000", "Resultdesc":"Operation succeeded", "Data":"", "Module":"HME", "Success":true, "Bizcode":"Tao-order_add-000000"}
API Documentation Specification:
Interface Name:
Products.search
Interface Description:
TCM Product Interface Call Query
Request Parameters:
Response Parameters:
JSON returns an example:
{ "OptCode":"store_addmsg", "Optdesc":"Data Center New message", "ResultCode":"000000", "Resultdesc":"Operation succeeded", "Data":"[ { "keywords":NULL, "TYMC":" amoxicillin", "TYJX":"Granular Agent", "ProjectID":"44afc2328d63a53ee05012ac241e3e1b", }]", "Module":"HME", "Success":true, "Bizcode":"hme-store_addmsg-000000"}
Service Code Reference:
Result Code reference:
API Interface Specification v1.0--develop a good specification, only good cooperative development