您的位置 : 文档中心 -> API信息

com.alibaba.trade:alibaba.trade.get.sellerView-1
订单详情查看(卖家视角) 免费

获取单个交易明细信息,仅限卖家调用

API用户授权类型

需要授权

系统级输入参数

名称 类型 是否必须 描述
_aop_timestamp String 请求时间戳
_aop_signature String 请求签名
access_token String 用户授权令牌

应用级输入参数

名称 类型 是否必须 描述 示例值 默认值
orderId Long 交易的订单id 123456
includeFields java.lang.String 查询结果中包含的域,GuaranteesTerms:保障条款,NativeLogistics:物流信息,RateDetail:评价详情,OrderInvoice:发票信息。默认返回GuaranteesTerms、NativeLogistics、OrderInvoice。 GuaranteesTerms,NativeLogistics,RateDetail,OrderInvoice

返回结果

名称 类型 是否必须 描述 示例值
+ result alibaba.openplatform.trade.model.TradeInfo 返回结果 {}
errorCode String 错误码 错误码
errorMessage String 错误信息 错误信息
success String 是否成功 true

返回结果

无需物流信息说明

  1、type值有0:自行联系物流公司发货,1:在线发货,2:无需物流发货
2、无需物流类别 noLogisticsCondition=1, 表示其他第三方物流、小型物充商、车队等, noLogisticsCondition=2 表示补运费、差价, noLogisticsCondition=3 表示卖家配送, noLogisticsCondition=4 表示买家自提 noLogisticsCondition=5 表示其他原因 

订单状态说明

  订单状态	     含义
waitbuyerpay	等待买家付款	 
waitsellersend	等待卖家发货	 
waitbuyerreceive 等待买家确认收货	 
success 交易成功	 
cancel 交易关闭	 
paid_but_not_fund 已支付,未到账	 
confirm_goods 已收货	 
waitsellerconfirm 等待卖家确认订单	 
waitbuyerconfirm 等待买家确认订单	 
confirm_goods_but_not_fund 已收货,未到账	 
confirm_goods_and_has_subsidy 已收货,已贴现	 
send_goods_but_not_fund 已发货,未到账	 
waitlogisticstakein 等待物流揽件	 
waitbuyersign 等待买家签收	 
signinsuccess 买家已签收	 
signinfailed 签收失败	 
waitselleract 等待卖家操作	 
waitbuyerconfirmaction 等待买家确认操作	 
waitsellerpush 等待卖家推进	  

订单详情出参示例

  {
    "result": {
        "extAttributes": [ ], 
        "baseInfo": {
            "buyerUserId": 1623492085, 
            "flowTemplateCode": "assureTradeAlipay", 
            "receiverInfo": {
                "toFullName": "洪帮", 
                "toDivisionCode": "330782", 
                "toPost": "322000", 
                "toArea": "浙江省 金华市 义乌市"
            }, 
            "stepPayAll": false, 
            "payTime": "20180604093242000+0800", 
            "buyerLoginId": "alitestforisv01", 
            "modifyTime": "20180604183311000+0800", 
            "sellerUserId": 1624786331, 
            "sellerAlipayId": "2088122317877473", 
            "alipayTradeId": "2018060421001008530511413328", 
            "status": "waitbuyerreceive", 
            "allDeliveredTime": "20180604183312000+0800", 
            "sellerOrder": false, 
            "businessType": "cn", 
            "sellerContact": {
                "phone": "86-028-85210000", 
                "imInPlatform": "alitestforisv03", 
                "name": "暮星", 
                "companyName": "AOP对外测试账号03"
            }, 
            "discount": -317597, 
            "shippingFee": 0, 
            "idOfStr": "171818499351498520", 
            "sellerLoginId": "alitestforisv03", 
            "tradeType": "50060", 
            "createTime": "20180604092517000+0800", 
            "sumProductPayment": 3176, 
            "buyerContact": {
                "phone": "86-0591-13805040134", 
                "imInPlatform": "alitestforisv01", 
                "name": "测试账号一暮星", 
                "companyName": "AOP对外测试账号01"
            }, 
            "buyerID": "b2b-1623492085", 
            "id": 171818499351498530, 
            "sellerID": "b2b-1624786331", 
            "buyerLevel": "L1", 
            "refund": 0, 
            "totalAmount": 0.03, 
            "buyerAlipayId": "2088611492691533", 
            "overSeaOrder": false, 
            "refundPayment": 0, 
            "newStepOrderList": [
                {
                    "gmtStart": "20180604092517000+0800", 
                    "gmtPay": "20180604093243000+0800", 
                    "stepNo": 1, 
                    "lastStep": true, 
                    "stepName": "全款交易", 
                    "activeStatus": 1, 
                    "payStatus": 2, 
                    "logisticsStatus": 2, 
                    "payFee": 0.03, 
                    "paidFee": 0.03, 
                    "adjustFee": -3175.97, 
                    "discountFee": 0, 
                    "postFee": 0, 
                    "paidPostFee": 0
                }
            ]
        }, 
        "productItems": [
            {
                "itemAmount": 0.01, 
                "name": "335-0117百搭秋冬丝绒套头卫衣新款女式连帽刺绣笑脸加厚时尚上衣", 
                "price": 98, 
                "productID": 563036169881, 
                "productImgUrl": [
                    "https://cbu01.alicdn.com/img/order/trading/025/894/253994818171/7302045551_344566461.80x80.jpg", 
                    "https://cbu01.alicdn.com/img/order/trading/025/894/253994818171/7302045551_344566461.jpg"
                ], 
                "productSnapshotUrl": "https://trade.1688.com/order/offer_snapshot.htm?order_entry_id=171818499352498520", 
                "quantity": 8, 
                "refund": 0, 
                "skuID": 3544249973933, 
                "status": "waitbuyerreceive", 
                "subItemID": 171818499352498530, 
                "type": "common", 
                "productCargoNumber": "335-0117", 
                "skuInfos": [
                    {
                        "name": "颜色", 
                        "value": "灰色"
                    }, 
                    {
                        "name": "尺码", 
                        "value": "均码"
                    }
                ], 
                "entryDiscount": -78399, 
                "specId": "69725e1f0a17f9d0f02626717ad2a0be", 
                "quantityFactor": 1, 
                "statusStr": "等待买家收货", 
                "logisticsStatus": 2, 
                "gmtCreate": "20180604092517000+0800", 
                "gmtModified": "20180604183311000+0800", 
                "subItemIDString": "171818499352498520"
            }, 
            {
                "itemAmount": 0.01, 
                "name": "香港潮牌2017秋冬新款厚底松糕鞋真皮女鞋内增高小白鞋单鞋加绒", 
                "price": 598, 
                "productID": 563064063132, 
                "productImgUrl": [
                    "https://cbu01.alicdn.com/img/order/trading/025/894/353994818171/7731607992_1661399938.80x80.jpg", 
                    "https://cbu01.alicdn.com/img/order/trading/025/894/353994818171/7731607992_1661399938.jpg"
                ], 
                "productSnapshotUrl": "https://trade.1688.com/order/offer_snapshot.htm?order_entry_id=171818499353498520", 
                "quantity": 2, 
                "refund": 0, 
                "skuID": 3708021159329, 
                "status": "waitbuyerreceive", 
                "subItemID": 171818499353498530, 
                "type": "common", 
                "unit": "双", 
                "skuInfos": [
                    {
                        "name": "颜色", 
                        "value": "白色流苏单里"
                    }, 
                    {
                        "name": "尺码", 
                        "value": "34"
                    }
                ], 
                "entryDiscount": -119599, 
                "specId": "bdaa3bed39496fb1133160426566bea0", 
                "quantityFactor": 1, 
                "statusStr": "等待买家收货", 
                "logisticsStatus": 2, 
                "gmtCreate": "20180604092517000+0800", 
                "gmtModified": "20180604183311000+0800", 
                "subItemIDString": "171818499353498520"
            }, 
            {
                "itemAmount": 0.01, 
                "name": "香港潮牌2017秋冬新款厚底松糕鞋真皮女鞋内增高小白鞋单鞋加绒", 
                "price": 598, 
                "productID": 563064063132, 
                "productImgUrl": [
                    "https://cbu01.alicdn.com/img/order/trading/025/894/453994818171/7731607992_1661399938.80x80.jpg", 
                    "https://cbu01.alicdn.com/img/order/trading/025/894/453994818171/7731607992_1661399938.jpg"
                ], 
                "productSnapshotUrl": "https://trade.1688.com/order/offer_snapshot.htm?order_entry_id=171818499354498520", 
                "quantity": 2, 
                "refund": 0, 
                "skuID": 3708021159331, 
                "status": "waitbuyerreceive", 
                "subItemID": 171818499354498530, 
                "type": "common", 
                "unit": "双", 
                "skuInfos": [
                    {
                        "name": "颜色", 
                        "value": "白色流苏单里"
                    }, 
                    {
                        "name": "尺码", 
                        "value": "36"
                    }
                ], 
                "entryDiscount": -119599, 
                "specId": "be9b2ba31da22e80b250e8f2e6d0be58", 
                "quantityFactor": 1, 
                "statusStr": "等待买家收货", 
                "logisticsStatus": 2, 
                "gmtCreate": "20180604092517000+0800", 
                "gmtModified": "20180604183311000+0800", 
                "subItemIDString": "171818499354498520"
            }
        ], 
        "orderBizInfo": {
            "creditOrder": false, 
            "odsCyd": false
        }, 
        "orderRateInfo": {
            "buyerRateStatus": 5, 
            "sellerRateStatus": 5
        }, 
        "tradeTerms": [
            {
                "payStatus": "2", 
                "payTime": "20180604093243000+0800", 
                "payWay": "1", 
                "phasAmount": 0.03, 
                "phase": 2487966435498520, 
                "cardPay": false, 
                "expressPay": false
            }
        ], 
        "nativeLogistics": {
            "address": "江东 街道 2号", 
            "area": "义乌市", 
            "areaCode": "330782", 
            "city": "金华市", 
            "contactPerson": "洪帮", 
            "mobile": "13817747226", 
            "province": "浙江省", 
            "zip": "322000", 
            "logisticsItems": [
                {
                    "deliveredTime": "20180604183311000+0800", 
                    "logisticsCode": "BX112561141941435", 
                    "type": "2", 
                    "id": 112561141941435, 
                    "status": "alreadysend", 
                    "gmtModified": "20180604183311000+0800", 
                    "gmtCreate": "20180604183311000+0800", 
                    "fromCity": "广州市", 
                    "fromArea": "白云区", 
                    "fromAddress": "大幅广告是对方付费", 
                    "fromPhone": "86-028-85210000", 
                    "fromPost": "000000", 
                    "logisticsCompanyId": 8, 
                    "logisticsCompanyNo": "other", 
                    "logisticsBillNo": "不需要物流", 
                    "subItemIds": "171818499352498520,171818499353498520,171818499354498520", 
                    "toCity": "金华市", 
                    "toArea": "义乌市", 
                    "toAddress": "江东 街道 2号", 
                    "toPost": "322000", 
                    "noLogisticsCondition": "3", 
                    "noLogisticsName": "范振宗", 
                    "noLogisticsTel": "09123456789", 
                    "noLogisticsBillNo": ""
                }
            ]
        }
    }
} 

API工具

SDK 示例