Aliexpress API - 如何使用Aliexpress订单绑定我网站上的用户?

时间:2017-04-28 14:40:33

标签: javascript api

所有速卖通现金返还网站,每次购买后自动获得用户订单。他们是怎么做到的?

通过API我可以获得我的所有联盟订单(访问我生成的URL后的订单),我可以使用API​​响应获取它们的列表:

http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getCompletedOrders/[my_app_id]?appSignature=[my_app_signature]&startDate=2017-04-01&endDate=2017-04-24&liveOrderStatus=pay

并获得:

{
    "result": {
        "totalResults": "-",
        "orders": [{
            "orderTime": "04-23-2017 00:20",
            "orderNumber": 83426736718999,
            "product": "Humor Bear Boys Clothing Sets Brand Boys Clothes 2017 Summer Fashion Style T-Shirts+Stripe Pant 2PCS Boys Clothes",
            "orderStatus": "Completed Payments",
            "commissionRate": "8.0%",
            "paymentAmount": "8.25",
            "estimatedCommission": "0.66",
            "finalPaymentAmount": "0.00",
            "commission": "0.00",
            "extraParams": "{}",
            "trackingId": "smartbuy",
            "pid": "888445371"
        }]
    },
    "errorCode": 20010000
}

但我不知道哪个用户订购此订单。谢谢!

0 个答案:

没有答案