提交结算交易报告

请求获取指定结算期间交易明细报表。

相关URL

Newegg.com: https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/reportmgmt/report/submitrequest?sellerid={sellerid}
Newegg.ca: https://api.newegg.com/marketplace/can/reportmgmt/report/submitrequest?sellerid={sellerid}

注:请确保您的请求URL全都是小写(除Seller ID)并且不能包含任何空格或者换行符。

参数

名称 是否必填? 描述
sellerid 您在新蛋商城的商家编号

相关请求信息

HTTP方式 是否需要认证? 请求格式 回复格式 频率限制
POST 需要 XML,Json XML,Json 100 请求/小时

请求文件主体

属性 是否必填? 格式 描述
IssueUser String 请求发送者在Seller Portal上注册过的邮箱地址 。

系统只接受商家注册过的Seller Portal邮箱地址。如果为空,默认值为商家编号

OperationType String 固定值:SettlementTransactionReportRequest
RequestType String 固定值:SETTLEMENT_TRANSACTION_REPORT
OrderNumber Integer 新蛋分配给订单的编号
TransactionType Integer 有效值:
0: All (Default) 所有(默认)
1: Order 订单
2: Refund 退款
3: CreditRequest 仅退款
4: Chargeback 信用卡拒付
5: MonthlyFee 月费
6: FulfillByNeweggFee 新蛋配送费
7: Multi-ChannelFee 多渠道运费
8: RMAProcessingFee
9: Tax & Duty 税费
10: StorageFee 仓储费
11: RMABuyoutFee
12: AdjustmentFee 其他
13: MonthlyFeeByCC 月费
14: SBNInboundFee 新蛋入仓费
15: MerchandisingFee 广告费
16: NeweggPremierFee 新蛋Premier费
17: NeweggShippingLabelFee 新蛋货运标签费
18: ReturnAndDisposalFee 库存移除/销毁费
19: NeweggRelabelingFee 重新贴标费
20: Recycling Fee / EHF 回收费
21: Return Shipping Label Fee 退货标签费
22: Newegg Service Fee Tax (Newegg.ca only)
23: Print Shipping Label Service 打印货运标签费
24: Reserved Balance 预留金
25: Previous Reserved Balance 上期预留金
SettlementDateFrom String 根据结算时间范围查询(太平洋标准时间)。请参考可接受时间格式
SettlementDateTo String 根据结算时间范围查询(太平洋标准时间)。请参考可接受时间格式
SettlementDate String 根据结算时间范围查询(太平洋标准时间)。请参考可接受时间格式
SettlementID Integer 结算交易编号

Schema: SettlementTransactionRequest.xsd

示例:XML,Request

POST https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml

<NeweggAPIRequest>
    <OperationType>SettlementTransactionReportRequest</OperationType>
    <RequestBody>
        <SettlementTransactionReportCriteria>
            <RequestType>SETTLEMENT_TRANSACTION_REPORT</RequestType>
            <TransactionType>1</TransactionType>
            <SettlementDateFrom>2011-02-21</SettlementDateFrom>
            <SettlementDateTo>2012-02-22</SettlementDateTo>
            <SettlementDate>2/23/2012</SettlementDate>
        </SettlementTransactionReportCriteria>
    </RequestBody>
</NeweggAPIRequest>

示例:Json,Response

POST https://api.newegg.com/marketplace/reportmgmt/report/submitrequest?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json

{
    "OperationType": "SettlementTransactionReportRequest",
    "RequestBody": {
        "SettlementTransactionReportCriteria": {
            "RequestType": "SETTLEMENT_TRANSACTION_REPORT",
            "TransactionType": "1",
            "SettlementDateFrom": "2011-02-21",
            "SettlementDateTo": "2012-02-22",
            "SettlementDate": "2/23/2012"
        }
    }
}

回复文件主体

属性 格式 描述
IsSuccess String 获取数据状态操作:
True:成功
False:失败
OperationType String 固定值:SettlementTransactionReportResponse
SellerID String 您的商家编号
RequestId String 新蛋为已提交的请求分配的编号
RequestType String 固定值:SETTLEMENT_TRANSACTION_REPORT
RequestDate String 数据提交的时间(太平洋标准时间)
RequestSatus String 提交状态:

SUBMITTED 已提交(默认)

Memo String 附加信息

Schema: SubmitReportResponse.xsd

示例:XML,Request

<NeweggAPIResponse>
    <IsSuccess>true</IsSuccess>
    <OperationType>SettlementTransactionReportResponse</OperationType>
    <SellerID>a001</SellerID>
    <ResponseBody>
        <ResponseList>
            <ResponseInfo>
                <RequestId>270Z8Y3SYIGQV</RequestId>
                <RequestType>SETTLEMENT_TRANSACTION_REPORT</RequestType>
                <RequestDate>07/12/2014 11:02:35</RequestDate>
                <RequestStatus>SUBMITTED</RequestStatus>
            </ResponseInfo>
        </ResponseList>
    </ResponseBody>
</NeweggAPIResponse>

示例:Json,Response

{
    "IsSuccess": true,
    "OperationType": "SettlementTransactionReportResponse",
    "SellerID": "a001",
    "ResponseBody": {
        "ResponseList": [
            {
                "RequestId": "270Z8Y3SYIGQV",
                "RequestType": "SETTLEMENT_TRANSACTION_REPORT",
                "RequestDate": "07/12/2014 11:34:57",
                "RequestStatus": "SUBMITTED"
            }
        ]
    }
}

请求失败错误信息

常规HTTP错误回复,请参考回复失败错误代码列表

错误代码 描述
RP010 Invalid Order Number.
无效的 Order Number
RP018 Invalid Settlement Date.
无效的 Settlement Date(结算时间)
RP019 The requestID cannot be null or empty.
请求编号(requestID)不能为空
RP020 We are unable to process your request because one of the following search criteria is required: SettlementID, SettlementDate, or SettlementDateFrom and SettlementDateTo.
我们无法处理你的请求,因为你必须提供下列搜索条件中的一个:SettlementID,SettlementDate或 SettlementDateFrom 和 SettlementDateTo
RP021 Maximum item lookup cannot exceed 1000 for each request.
每个请求的商品检索数量最多不超过1000个
RP022 Daily Inventory Report does not support multiple warehouse locations. For multiple warehouse locations, please use International Program – Daily Inventory Report.
每日库存报告不支持多个仓库所在地。若有多个仓库所在地,请使用新蛋全球化 – 每日库存报告章节内容。

示例:XML,Request

<?xml version="1.0" encoding="utf-8"?>
<Errors>
    <Error>
        <Code>RP018</Code>
        <Message>Invalid Settlement Date</Message>
    </Error>
</Errors>

示例:Json,Response

[
    {
        "Code": "RP018",
        "Message": "Invalid Settlement Date"
    }
]

更新日期:12/01/2020