【问题标题】:Amazon MWS Reports API answers _DONE_NO_DATA_ instead of _CANCELLED_亚马逊 MWS 报告 API 回答 _DONE_NO_DATA_ 而不是 _CANCELLED_
【发布时间】:2017-04-23 19:53:20
【问题描述】:

我在 MWS 中使用“报告 API”来获取订单信息。我需要有关客户的帐单信息(帐单地址,...)以便在 CRM 中使用。

我使用报告 _GET_AMAZON_FULFILLED_SHIPMENTS_DATA_ 因为在亚马逊物流上销售,并且此 ReportType 会返回帐单信息。

如果我发出 2 个连续的 API 请求。第二个请求的状态将是_DONE_NO_DATA_,但应该是_CANCELLED_

示例响应:

<ReportRequestInfo>
  <ReportType>_GET_AMAZON_FULFILLED_SHIPMENTS_DATA_</ReportType>
  <ReportProcessingStatus>_DONE_NO_DATA_</ReportProcessingStatus>
  <EndDate>2016-12-08T14:06:49+00:00</EndDate>
  <Scheduled>false</Scheduled>
  <ReportRequestId>127509017143</ReportRequestId>
  <StartedProcessingDate>2016-12-08T14:07:16+00:00</StartedProcessingDate>
  <SubmittedDate>2016-12-08T14:06:49+00:00</SubmittedDate>
  <StartDate>2016-11-30T21:00:00+00:00</StartDate>
  <CompletedDate>2016-12-08T14:07:22+00:00</CompletedDate>
</ReportRequestInfo>
<ReportRequestInfo>
  <ReportType>_GET_AMAZON_FULFILLED_SHIPMENTS_DATA_</ReportType>
  <ReportProcessingStatus>_DONE_</ReportProcessingStatus>
  <EndDate>2016-12-08T14:06:48+00:00</EndDate>
  <Scheduled>false</Scheduled>
  <ReportRequestId>127508017143</ReportRequestId>
  <StartedProcessingDate>2016-12-08T14:06:53+00:00</StartedProcessingDate>
  <SubmittedDate>2016-12-08T14:06:48+00:00</SubmittedDate>
  <StartDate>2016-11-30T21:00:00+00:00</StartDate>
  <CompletedDate>2016-12-08T14:07:16+00:00</CompletedDate>
  <GeneratedReportId>4430367616017143</GeneratedReportId>
</ReportRequestInfo>

不知道是没有真实数据还是大量请求API。 我怎么知道?

对于请求,我使用 Reports API 或暂存器的官方库。反应是平等的。

【问题讨论】:

    标签: php amazon amazon-mws


    【解决方案1】:

    您需要使用 GeneratedReportId 调用 GetReport。这将返回您要查找的数据。

    【讨论】:

    • 可以,但是要获取GeneratedReportId,需要请求GetReportRequestList。如果status ReportProcessingStatus _DONE_ 则可以获取GeneratedReportId,否则为空!
    • 啊,我明白了。我没有阅读上面的 CANCELLED 链接。听起来亚马逊有一个错误,因为它们的实现与文档不同。如果你每 30 分钟执行一次,你会得到 DONE,还是有时会得到 DONE_NO_DATA
    • 发送第一个请求后,我得到 DONE 和 30 分钟 DONE_NO_DATA 。在第一次请求之后。我总是得到 DONE_NO_DATA 但应该 _CANCELLED _.
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多