Taobao store authorization interface, Taobao erp

Keywords: interface api

Taobao store authorization

Interface address:

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

parametertypeMandatory valueExample
AuthorizationstringyesAuthorize access_tokenBearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

Request parameters

parametertypeMandatory describe
shop_idstringyesStore id
vvtypeintfalseNormal version 1, default version 1 is not transmitted, enhanced version 2, and enhanced version 2 needs to be transmitted

Request example


Request code example

cURL request code example

curl --location --request POST '' \
--header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \
--header 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331' \
--form 'shop_id="256465161"'

PHP request code example


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => '',
  CURLOPT_POSTFIELDS => array('shop_id' => '256465161'),
    'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx',
    'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331'

$response = curl_exec($curl);

echo $response;

JAVA request code example

OkHttpClient client = new OkHttpClient().newBuilder()
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
Request request = new Request.Builder()
  .method("POST", body)
  .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx")
  .addHeader("Cookie", "__yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331")
Response response = client.newCall(request).execute();

Response parameters

codeintError code 0 is success
msgstringReturn code description
msecintInterface execution time
timeintInterface return time
statusstringAuthorization status (unAuthorize unauthorized, subAuthorize authorized)
withholding_moneyintDeduction amount of this interface (counting coupons)

Return data

    "code": 0,
    "msg": "success",
    "msec": 1165,
    "time": 1617257597,
    "data": {
			"withholding_money": 0 

Response code

codeCode descriptionSolution
100Request parameter errorCheck whether your request parameters are correct
101The request timed out. Please try againCheck your network or contact customer service for solutions
103Wangwang account does not existCheck whether the Wangwang number you entered is correct
200System error, please contact customer serviceCheck whether your interface address is filled in correctly, and contact customer service for other problems
202System error, please try again laterTry again later, or contact the docking group
203The current interface is not supported
204Request 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
204Request 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
302Not authorized yetConduct code scanning authorization according to the return link
303Store not authorizedPlease order at the service market first
401Invalid identity certificateAdd access to the request header_ Token, update the token again
404Request path or request mode errorPlease change the request mode or check whether the path is correct

Posted by roach on Sun, 24 Oct 2021 21:54:26 -0700