当前位置:   article > 正文

开放平台API接口_api接口开放平台

api接口开放平台

某宝开放平台(Taobao Open Platform)是基于各类电子商务业务的开放平台,提供外部合作伙伴参与服务用户的各类原材料,如业务API、账号体系、数据推送,奇门网关等。它是大电子商务基础服务的重要开放途径,将推动各行各业定制、创新、进化,并最终促成新商业文明生态圈的建立。我们的使命是把某宝网的商品、用户、交易、物流等一系列电子商务基础服务,像水、电、煤一样输送给有需要的商家、开发者、社区媒体和各行各业。

很多电商系统的需求场景,都面临某宝开放平台的接入,但这也是让不少开发者头疼的问题。

那么,如何快速接入呢?我的对接经验相信可以帮到不少开发者,快速接入、少走弯路。

  1. 首先,某宝开放平台的API分几个大的版块,核心版块如"交易API"、"物流API"等能力,最常用的接口能力如下:

交易API

taobao.trades.sold.get( 查询卖家已卖出的交易数据(根据创建时间) )
taobao.trade.get( 获取单笔交易的部分信息(性能高) )
taobao.trade.memo.add( 对一笔交易添加备注 )
taobao.trade.memo.update( 修改交易备注 )……
物流API
taobao.areas.get( 查询地址区域 )
taobao.logistics.companies.get( 查询物流公司信息 )
taobao.logistics.address.search( 查询卖家地址库 )
taobao.logistics.offline.send( 自己联系物流(线下物流)发货 )……
评价API
taobao.traderates.get( 搜索评价信息 )
taobao.traderate.add( 新增单个评价 )……

2.其次,结合自己的业务的实际情况,需要哪些对口API

从官方文档来看,不少接口/能力需要“用户授权”。很多开发者/公司也尝试申请ISV服务商应用,也卡在这个环节。其实,阿里开放平台早已关闭ISV R2及以上的申请接入。不少开发者,在这个上面浪费了巨大的时间、精力。

最后,以某宝订单数据代码结尾

  1. {
  2. "trades_sold_get_response":{
  3. "total_results":100,
  4. "trades":{
  5. "trade":[
  6. {
  7. "seller_nick":"我在测试",
  8. "buyer_open_uid":"AAHk5d-EAAeGwJedwSFu0XXX",
  9. "title":"麦包包",
  10. "type":"fixed(一口价)",
  11. "created":"2000-01-01 00:00:00",
  12. "tid":2231958349,
  13. "acookie_id":"1a11a0987628772c002ec7d0eec2a352",
  14. "sid":"NP1021246146",
  15. "seller_rate":true,
  16. "buyer_rate":true,
  17. "status":"TRADE_NO_CREATE_PAY",
  18. "payment":"200.07",
  19. "discount_fee":"200.07",
  20. "adjust_fee":"200.07",
  21. "post_fee":"200.07",
  22. "total_fee":"200.07",
  23. "pay_time":"2000-01-01 00:00:00",
  24. "end_time":"2000-01-01 00:00:00",
  25. "modified":"2000-01-01 00:00:00",
  26. "async_modified":"2000-01-01 00:00:00",
  27. "consign_time":"2000-01-01 00:00:00",
  28. "received_payment":"200.07",
  29. "commission_fee":"200.07",
  30. "alipay_no":"2009112081173831",
  31. "alipay_id":2011082299567459,
  32. "buyer_area":"浙江省杭州市",
  33. "nut_feature":";buyernick:tester;card:123;buyerArea:杭州",
  34. "pic_path":"http:\/\/img08.taobao.net\/bao\/uploaded\/i8\/T1jVXXXePbXXaoPB6a_091917.jpg",
  35. "num_iid":3424234,
  36. "price":"200.07",
  37. "cod_fee":"12.07",
  38. "cod_status":"EW_CREATED(订单已创建)",
  39. "shipping_type":"free",
  40. "num":1,
  41. "point_fee":0,
  42. "real_point_fee":0,
  43. "buyer_obtain_point_fee":0,
  44. "receiver_name":"****东方",
  45. "receiver_state":"浙江省",
  46. "receiver_city":"杭州市",
  47. "receiver_district":"西湖区",
  48. "receiver_town":"三墎镇",
  49. "receiver_address":"****淘宝城",
  50. "receiver_zip":"223700",
  51. "receiver_mobile":"****1826",
  52. "receiver_phone":"****5372",
  53. "seller_flag":1,
  54. "is_lgtype":true,
  55. "lg_aging_type":"次日达",
  56. "lg_aging":"2012-06-19 15:16:14",
  57. "is_brand_sale":true,
  58. "is_force_wlb":true,
  59. "has_buyer_message":true,
  60. "credit_card_fee":"30.5",
  61. "trade_from":"WAP,JHS",
  62. "step_trade_status":"FRONT_NOPAID_FINAL_NOPAID",
  63. "step_paid_fee":"525.70",
  64. "mark_desc":"该订单需要延长收货时间",
  65. "has_yfx":true,
  66. "yfx_fee":"0.50",
  67. "yfx_id":"135751716473138",
  68. "yfx_type":"taojinbi",
  69. "trade_source":"ownshop",
  70. "send_time":"2000-01-01",
  71. "seller_can_rate":true,
  72. "is_part_consign":true,
  73. "is_wt":true,
  74. "is_daixiao":true,
  75. "o2o":"crm",
  76. "o2o_guide_id":"123456",
  77. "o2o_guide_name":"西湖门店导购员1",
  78. "o2o_shop_id":"123456",
  79. "o2o_shop_name":"西湖门店",
  80. "o2o_delivery":"inshop",
  81. "o2o_out_trade_id":"123456",
  82. "orders":{
  83. "order":[
  84. {
  85. "title":"山寨版测试机器",
  86. "pic_path":"http:\/\/img08.taobao.net\/bao\/uploaded\/i8\/T1jVXXXePbXXaoPB6a_091917.jpg",
  87. "price":"200.07",
  88. "num_iid":2342344,
  89. "sku_id":"5937146",
  90. "outer_iid":"152e442aefe88dd41cb0879232c0dcb0",
  91. "outer_sku_id":"81893848",
  92. "refund_status":"SUCCESS(退款成功)",
  93. "status":"TRADE_NO_CREATE_PAY",
  94. "oid":2231958349,
  95. "total_fee":"200.07",
  96. "payment":"200.07",
  97. "discount_fee":"200.07",
  98. "adjust_fee":"1.01",
  99. "divide_order_fee":"21.00",
  100. "part_mjz_discount":"21.00",
  101. "sku_properties_name":"颜色:桔色;尺码:M",
  102. "item_meal_id":2564854632,
  103. "item_meal_name":"M8原装电池:便携支架:M8专用座充:莫凡保护袋",
  104. "num":1,
  105. "buyer_rate":true,
  106. "seller_rate":true,
  107. "refund_id":"2231958349",
  108. "seller_type":"B(商城商家)",
  109. "cid":123456,
  110. "end_time":"2012-04-07 00:00:00",
  111. "consign_time":"2013-01-13 15:23:00",
  112. "shipping_type":"post",
  113. "logistics_company":"顺风快递",
  114. "invoice_no":"05432465",
  115. "bind_oid":23194074143138,
  116. "is_daixiao":true,
  117. "ticket_outer_id":"123456abcd",
  118. "ticket_expdate_key":"100FFFFFF02374020000002001020304000A",
  119. "is_www":true,
  120. "store_code":"南京QDHEWL-0004",
  121. "tmser_spu_code":"家装干支装服务",
  122. "sub_order_tax_fee":"0",
  123. "sub_order_tax_rate":"0",
  124. "zhengji_status":"1",
  125. "md_qualification":"true_access",
  126. "md_fee":"999",
  127. "sub_order_tax_promotion_fee":"0",
  128. "tax_free":true,
  129. "tax_coupon_discount":"0",
  130. "special_refund_type":"priceProtect",
  131. "is_devalue_fee":true,
  132. "is_idle":"1",
  133. "promise_collect_time":"2000-01-01 00:00:00",
  134. "is_force_dc":true,
  135. "shp_info":{
  136. "ship_info":[
  137. {
  138. "transport_type":"express,seller,instant等"
  139. }
  140. ]
  141. }
  142. }
  143. ]
  144. },
  145. "service_orders":{
  146. "service_order":[
  147. {
  148. "oid":110770592823138,
  149. "item_oid":110770592803138,
  150. "service_id":2342344,
  151. "service_detail_url":"http:\/\/wt.taobao.com\/plan.htm?plan_id=planId",
  152. "num":1,
  153. "price":"39.09",
  154. "payment":"29.98",
  155. "title":"滚筒洗衣机",
  156. "total_fee":"39.09",
  157. "buyer_nick":"小倩2005",
  158. "refund_id":"2231958349",
  159. "seller_nick":"麦包包",
  160. "pic_path":"http:\/\/img08.taobao.com\/bao\/upload\/i8\/T1jVXXXePb_a0908.jpg",
  161. "tmser_spu_code":"家装干支装服务"
  162. }
  163. ]
  164. },
  165. "zero_purchase":true,
  166. "receiver_country":"中国",
  167. "order_tax_fee":"0",
  168. "shop_pick":"1",
  169. "rx_audit_status":"0",
  170. "post_gate_declare":true,
  171. "cross_bonded_declare":true,
  172. "order_tax_promotion_fee":"0",
  173. "service_type":"timedd,jiaju",
  174. "is_o2o_passport":true,
  175. "tmall_delivery":true,
  176. "threepl_timing":true,
  177. "cn_service":"84_50",
  178. "cutoff_minutes":"660",
  179. "es_time":"4",
  180. "delivery_time":"2018-06-09 12:13:14",
  181. "collect_time":"2018-06-09 12:13:14",
  182. "dispatch_time":"2018-06-09 12:13:14",
  183. "sign_time":"2018-06-09 12:13:14",
  184. "delivery_cps":"STO",
  185. "es_range":"09:00-12:00",
  186. "es_date":"2018-06-09",
  187. "os_range":"09:00-12:00",
  188. "os_date":"2018-06-09",
  189. "asdp_biz_type":"logistics_upgrade",
  190. "asdp_ads":"201",
  191. "drug_register":"1",
  192. "promise_sign_time":"2000-01-01 00:00:00",
  193. "oaid":"2w2RYE45iahnF4aiaJ7pHKCJ3Hwnbgnq2PH3AfpQVyWZNHKS9wNgAAOUfCVt9XZMetogNHwc",
  194. "scenario_group":"TXD_B2C_FRESH_HALFDAY",
  195. "is_force_dc":true,
  196. "buyer_nick":"我在测试"
  197. }
  198. ]
  199. },
  200. "has_next":true
  201. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/68948?site
推荐阅读
相关标签
  

闽ICP备14008679号