淘宝API接口系列,获取购买到的商品订单列表,卖出的商品订单列表,订单详情,订单物流,买家信息,收货地址列表,买家token

  • custom自定义API操作
  • buyer_order_list获取购买到的商品订单列表
  • buyer_order_detail获取购买到的商品订单详情
  • buyer_order_express获取购买到的商品订单物流
  • buyer_address_list收货地址列表
  • buyer_address_add添加收货地址
  • buyer_info买家信息
  • buyer_token买家token
  • seller_order_list获取卖出的商品订单列表
  • seller_cat_props商品分类属性
  • API接口详情

buyer_order_list-获取购买到的商品订单列表

公共参数

 请求参数

 
参数说明:page:页码
tab_code:all,waitPay,waitSend,waitConfirm,waitRate
-标签类型(全部,待付款,待发货,待确认,待评价)
token:SaaS授权

响应参数

Version: Date:

名称类型必须示例值描述
order_idBigint0367668864711001234订单ID
shop_nameString0充值中心店铺名称
seller_idBigint0814074396卖家ID
seller_nickString0君宝话费充值专营店卖家昵称
goodsMix0[{"goods_name": "话费充值-江西电信", "goods_id": "16262273512", "goods_image": "//img.alicdn.com/tfs/TB1c8NJSFXXXXbgXFXXXXXXXXXX-184-184.png", "unit_price": "¥10.00", "original_price": null, "goods_count": "1", "goods_info": "充值号码:199xxxxxxxx \n充值面额:10元"}]商品列表

请求示例 Curl PHP PHPsdk JAVA C# Python

//using System.Net.Security;
//using System.Security.Cryptography.X509Certificates;
private const String method = "GET";
static void Main(string[] args)
{
	String bodys = "";
	// 请求示例 url 默认请求参数已经做URL编码
	String url = "https://api-gw.onebound.cn/taobao/buyer_order_list/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&page=1&tab_code=all";
	HttpWebRequest httpRequest = null;
	HttpWebResponse httpResponse = null; 
	if (url.Contains("https://"))
	{
		ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
		httpRequest = (HttpWebRequest)WebRequest.CreateDefault(new Uri(url));
	}
	else
	{
		httpRequest = (HttpWebRequest)WebRequest.Create(url);
	}
	httpRequest.Method = method;
	if (0 < bodys.Length)
	{
		byte[] data = Encoding.UTF8.GetBytes(bodys);
		using (Stream stream = httpRequest.GetRequestStream())
		{
		stream.Write(data, 0, data.Length);
		}
	}
	try
	{
		httpResponse = (HttpWebResponse)httpRequest.GetResponse();
	}
	catch (WebException ex)
	{
		httpResponse = (HttpWebResponse)ex.Response;
	}
	Console.WriteLine(httpResponse.StatusCode);
	Console.WriteLine(httpResponse.Method);
	Console.WriteLine(httpResponse.Headers);
	Stream st = httpResponse.GetResponseStream();
	StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
	Console.WriteLine(reader.ReadToEnd());
	Console.WriteLine("\n");
}
public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
	return true;
}
```
```

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值