eBay大中华区API开发者平台 开发者专区

搜 索

直邮/所有交易可追踪服务使用情况相关交易下载数据接口

发布时间:2020-05-20          最近刷新时间:2020-05-20

描述

本接口对应“政策表现”>“物流标准”>“直邮/所有交易可追踪服务使用情况” 中的交易数据下载功能相关数据。

卖家中心相关界面供参考:


注:某些政策不适用于所有账号,可能没有对应的数据返回。

输入数据

资源路径
GET /gccbtapi/v1/directshipping/trans_download

其它设置参见“eBay大中华卖家API简介”首页中“其他通用设置”的描述。

请求参数

输出
如果查询成功,将返回卖家DirectShipping数据。
如果查询成功但data是空数组或没值,则可能是我们目前对该用户没有数据支持,请做好相关对用户的提示。

响应字段描述

输出字段

类型

出现频率

含义

ackValue

string

总是出现

SUCCESS FAILURE

errorMessage

object

有时出现

如果发生异常或请求错误,就可能看到errorMessage字段。

"errorMessage": {

    "error": [

      {

        "errorId": 1001,

        "domain": "PARAMETER",

        "category": "REQUEST",

        "message": "Parameter dateRange is missing",

        "longMessage": "Parameter dateRange is missing",

        "actionToTake": "CORRECTINPUTDATA"

      }

    ]

  }

timestamp

long

总是出现

响应的服务器时间

data

array

有时出现

请求成功,并且有数据,这个字段应该是个数组。否则可能返回null

字段含义

数据含义

对应对象

数据更新时间

createPst

卖家国家

sellerCntry

买家国家

buyerCntry

物品所在地

itemLocation

交易号

transId

产品号

itemId

付款时间

transPaidDate

订单处理截止时间

transHandleByDate

物流跟踪号

trackingNumber

卖家填写的物流供应商

sellerInputCarrierName

揽收扫描时间

aScanDate

交易是否合规

transQualifyFlag

 

响应举例:

{
   "ackValue": "SUCCESS",
    "statusCode": 200,
    "timeStamp": 1589251811302,
    "data": [
           {
                "createPst": "2020-05-07",
                "sellerCntry": "CN",
                "buyerCntry": "US",
                "itemLocation": "CN",
                "transId": 1109260647023,
                "itemId": 362936768463,
                "transPaidDate": "2020-04-10",
                "transHandleByDate": "2020-04-14",
                "trackingNumber": "ES10006857779390001010001A0N",
                "sellerInputCarrierName": "SpeedPAK",
                "aScanDate": null,
                "transQualifyFlag": "N"
            },
            {
                "createPst": "2020-05-07",
                "sellerCntry": "CN",
                "buyerCntry": "US",
                "itemLocation": "CN",
                "transId": 1110129412023,
                "itemId": 362957027397,
                "transPaidDate": "2020-04-13",
                "transHandleByDate": "2020-04-16",
                "trackingNumber": "ES10006936580090001010001D0N",
                "sellerInputCarrierName": "Paypal Package",
                "aScanDate": null,
                "transQualifyFlag": "N"
            },
            {
                "createPst": "2020-05-07",
                "sellerCntry": "CN",
                "buyerCntry": "US",
                "itemLocation": "CN",
                "transId": 1111756089023,
                "itemId": 362820760417,
                "transPaidDate": "2020-04-18",
                "transHandleByDate": "2020-04-21",
                "trackingNumber": "ES10007130032210001010001B0N",
                "sellerInputCarrierName": "SpeedPAK",
                "aScanDate": null,
                "transQualifyFlag": "N"
            },
            {
                "createPst": "2020-05-07",
                "sellerCntry": "CN",
                "buyerCntry": "US",
                "itemLocation": "CN",
                "transId": 858067719027,
                "itemId": 402041520331,
                "transPaidDate": "2020-04-13",
                "transHandleByDate": "2020-04-16",
                "trackingNumber": "ES10006936581930001010001A0N",
                "sellerInputCarrierName": "Paypal Package",
                "aScanDate": null,
                "transQualifyFlag": "N"
            },
           ]
}