Taobao store authorization
Interface address: http://api.vv-tool.com/tool/erps/shop-authorize
Interface introduction: To query whether Taobao stores authorize this interface, you can call back the interface with the authorization interface below Click to view details
Request method: POST
Return format: JSON
Interface charges: v: vtupaofu8888, contact the operator
Frequency limit: 10 times / second
Request header parameters
parameter | type | Mandatory | value | Example |
---|---|---|---|---|
Authorization | string | yes | Authorize access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
Request parameters
parameter | type | Mandatory | describe |
---|---|---|---|
shop_id | string | yes | Store id |
vvtype | int | false | Normal version 1, default version 1 is not transmitted, enhanced version 2, and enhanced version 2 needs to be transmitted |
Request example
shop_id:256465161
Request code example
cURL request code example
curl --location --request POST 'http://api.vv-tool.com/tool/erps/shop-authorize' \ --header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \ --header 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331' \ --form 'shop_id="256465161"'
PHP request code example
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'http://api.vv-tool.com/tool/erps/shop-authorize', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => array('shop_id' => '256465161'), CURLOPT_HTTPHEADER => array( 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx', 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
JAVA request code example
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("text/plain"); RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM) .addFormDataPart("shop_id","256465161") .build(); Request request = new Request.Builder() .url("http://api.vv-tool.com/tool/erps/shop-authorize") .method("POST", body) .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx") .addHeader("Cookie", "__yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331") .build(); Response response = client.newCall(request).execute();
Response parameters
parameter | type | describe |
---|---|---|
code | int | Error code 0 is success |
msg | string | Return code description |
msec | int | Interface execution time |
time | int | Interface return time |
status | string | Authorization status (unAuthorize unauthorized, subAuthorize authorized) |
withholding_money | int | Deduction amount of this interface (counting coupons) |
Return data
{ "code": 0, "msg": "success", "msec": 1165, "time": 1617257597, "data": { "status":"subAuthorize", "withholding_money": 0 }
Response code
code | Code description | Solution |
---|---|---|
0 | success | |
100 | Request parameter error | Check whether your request parameters are correct |
101 | The request timed out. Please try again | Check your network or contact customer service for solutions |
103 | Wangwang account does not exist | Check whether the Wangwang number you entered is correct |
200 | System error, please contact customer service | Check whether your interface address is filled in correctly, and contact customer service for other problems |
202 | System error, please try again later | Try again later, or contact the docking group |
203 | The current interface is not supported | |
204 | Request exception: no permission for this interface, please go to the official website to open an official interface. | Go to the official website to open the interface permission |
204 | Request exception: the number of API calls is insufficient. Please go to the website to redeem the number. | Go to the official website to recharge the number of calls of the interface |
302 | Not authorized yet | Conduct code scanning authorization according to the return link |
303 | Store not authorized | Please order at the service market first |
401 | Invalid identity certificate | Add access to the request header_ Token, update the token again |
404 | Request path or request mode error | Please change the request mode or check whether the path is correct |