Interface for obtaining store information (obtaining store id) and Taobao order flag

Get store information (get store id)

Interface address:   http://api.vv-tool.com/tool/erps/get-shop-info

Interface introduction:   Obtain relevant information fields such as store information id   Click to view details

Request method:   GET

Return format:   JSON

Interface charges:   Deduction account balance

Frequency limit:   10 times / second

Request header parameters

parametertypeMandatory valueExample
AuthorizationstringyesAuthorize access_tokenBearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

Request parameters

parametertypeMandatory describe
urlstringyesProduct link
typestringnoType (0-taobao, 1-tmall, 2-pinduoduo)
vvtypeintnoNormal version 1, default version 1 is not transmitted, enhanced version 2, and enhanced version 2 needs to be transmitted

Request example

url:Taobao - Taobao! I like it
type:1

Request code example

cURL request code example

curl --location --request GET 'http://api.vv-tool.com/tool/erps/get-shop-info?url=https://item.taobao.com/item.htm?id=635407677503&type=1' \
--header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \
--header 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331'

PHP request code example

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/erps/get-shop-info?url=https://item.taobao.com/item.htm?id=635407677503&type=1',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  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();
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/erps/get-shop-info?url=https://item.taobao.com/item.htm?id=635407677503&type=1")
  .method("GET", null)
  .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx")
  .addHeader("Cookie", "__yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331")
  .build();
Response response = client.newCall(request).execute();

Response parameters

parametertypedescribe
codeintError code 0 is success
msgstringReturn code description
msecintInterface execution time
timeintInterface return time
shop_IdintThird party seller store id
shopNamestringThird party seller store name
shopUrlstringStore address, tmall / C store
taoShopUrlstringTaobao store address
shopIconstringThird party seller store Icon
showShopLinkIconstringshowShopLinkIcon
shopCardstringStore card
shopTypestringStore type
simpleShopDOStatusstringsimpleShopDOStatus
shopVersionstringStore version
shopTextColorstringStore text color
withholding_moneyintDeduction amount of this interface (counting coupons)

Return data

{
    "code": 0,
    "msg": "success",
    "msec": 1193,
    "time": 1612416107,
    "data": {
		    "withholding_money": 1
        "shop_Id":63634326 ,
        "shopName": "ToM tide",
        "shopUrl": "shop.m.taobao.com/shop/shop_index.htm?user_id=618895543&item_id=635407677503",
        "taoShopUrl": "//shop.m.taobao.com/shop/shop_index.htm?user_id=618895543&item_id=635407677503",
        "shopIcon": "http://img.alicdn.com/imgextra//3e/3e/TB1HNXJdmslXu8jSZFuSutg7FXa.jpg",
        "showShopLinkIcon": "false",
        "shopCard": "383 items are on sale in our store",
        "shopType": "C",
        "simpleShopDOStatus": "C",
        "shopVersion": "",
        "shopTextColor": "#111111"
    }
}

Response code

codeCode descriptionSolution
0success
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
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

Keywords: interface api erp

Added by morpheuz on Tue, 26 Oct 2021 05:00:14 +0300