CustomerOmsStoreQuery

Query Customer Mark

Request address

POST
http://OmsAddress/app/newoms.php/webservice/customer-oms-store/query?cmd=10019&ip-type=webservicerest&access-token=AccessTokenVal

POST request parameter description

Parameter format Required or not Description
app_id integer Yes App ID
key_binary string Yes

Data Parameters

Use json format to represent the record related information. The following is an example:

{
    "app_id": 2,
    "key_binary": "some string"
}

Return Syntax

Return Parameter Description

Parameter format Description
code integer 0 means success, non-0 means failure
total integer Total number of queries
markdata string json string
msg string message

Request Example

Send A Request through the Curl Method

For the parameters in the command, please refer to the "Description of POST Request Parameters" on this page. For the method to obtain access-token, see: Get access-token

curl -H "Content-type: application/json" -X "POST" -d '{
    "app_id": 2,
    "key_binary": "some string"
}' http://omsaddress/app/newoms.php/webservice/customer-oms-store/query?cmd=10019&ip-type=webservicerest&access-token=\

Return Example

Successful Return Example

Status of http request = 200

{
    "code": 0,
    "total": 1,
    "markdata": [
        {
            "app_id": 2,
            "key_binary": "some string",
            "value_binary": "some string",
            "version": "some string",
            "last_mark_user": "tester",
            "last_mark_time": "2019-07-26 12:08"
        }
    ],
    "msg": "success"
}

Failed Return Example

Status of http request != 200

{
    "name": "Unauthorized",
    "message": "You are requesting with an invalid credential.",
    "code": 0,
    "status": 401,
    "type": "yii\\web UnauthorizedHttpException"
}
{
    "source_ip": "ip:10.29.89.51 not in whitelist"
}

results matching ""

    No results matching ""