alitrip.policy.price.compare.flowdata.query (国内国际比价流量使用情况查询)

国内国际比价流量使用情况查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
compare_price_flow_query_dto ComparePriceFlowQueryDTO 可选 入参
  • └ agent_id
  • Number
  • 必须
  • 2052
  • 店铺id
  • └ biz_type
  • Number
  • 可选
  • 1
  • 业务类型:1,国内;2,国际;默认为1

响应参数

名称 类型 示例值 描述
result ResultDTO 返回信息
  • data
  • ComparePriceFlowDTO
  • 比价流量数据
  • └ agent_id
  • Number
  • 2052
  • 店铺id
  • └ current_count
  • Number
  • 100
  • 今日已使用量
  • └ total_limit
  • Number
  • 200
  • 当日分配给商家的总调用量
  • └ success
  • Boolean
  • true
  • 请求成功标识,成功:true,失败:false
  • └ error_code
  • String
  • 错误码
  • 响应code
  • └ error_msg
  • String
  • 错误信息
  • 响应msg

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripPolicyPriceCompareFlowdataQueryRequest req = new AlitripPolicyPriceCompareFlowdataQueryRequest();
AlitripPolicyPriceCompareFlowdataQueryRequest.ComparePriceFlowQueryDTO obj1 = new AlitripPolicyPriceCompareFlowdataQueryRequest.ComparePriceFlowQueryDTO();
obj1.setAgentId(2052L);
obj1.setBizType(1L);
req.setComparePriceFlowQueryDto(obj1);
AlitripPolicyPriceCompareFlowdataQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_policy_price_compare_flowdata_query_response>
    <result>
        <data>
            <agent_id>2052</agent_id>
            <current_count>100</current_count>
            <total_limit>200</total_limit>
        </data>
        <success>true</success>
        <error_code>错误码</error_code>
        <error_msg>错误信息</error_msg>
    </result>
</alitrip_policy_price_compare_flowdata_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部