Amazon Pay and Login with Amazon integration guide

Step 5: Request a processing report

In the BatchNotification IPN with a BatchStatus of complete, there is a field containing a BatchReferenceId. You can use this identifier to request a processing report containing the results of all batch requests. See Step 4: Process IPN messages.

The report can be requested using the GetReport operation using the same MarketplaceId and SellerId that is used to perform the feed request, and the report will be returned as part of the response.

NOTE: The maximum time range for report generation is 30 days. To mitigate throttling, we recommend a 1-day range and then cycling through each day in your range (at 1 request per second).

Sample reports

<?xml version="1.0" encoding="utf-8"?>
<Batch>
  <BatchReferenceId>232323</BatchReferenceId>
  <Requests>
    <Request>
    <SellerRequestId>0</SellerRequestId>
    <Result>Failure</Result>
    <ResponseCode>405</ResponseCode>
    <ResponseStatus>Method Not Allowed</ResponseStatus>
    <ResponseData>
      <![CDATA[
        <ErrorResponse xmlns="http://mws.amazonservices.com/schema/
                      OffAmazonPayments/2013-01-01">
          <Error>
            <Type>Sender</Type>
            <Code>InvalidOrderReferenceStatus</Code>
            <Message>
              OrderReference S01-4855955-7754517 is currently in
              Canceled state. ConfirmOrderReference can only be
              requested in the Draft state.
            </Message>
          </Error>
          <RequestId>
            48baa42f-e13e-11e3-b0ac-bf36bf221732
          </RequestId>
        </ErrorResponse>
      ]]>
    </ResponseData>
    </Request>
  </Requests>
</Batch>

<?xml version="1.0" encoding="utf-8"?>
<Batch>
  <BatchReferenceId>232323</BatchReferenceId>
  <Requests>
    <Request>
      <SellerRequestId>144</SellerRequestId>
      <Result>Success</Result>
      <ResponseCode>200</ResponseCode>
      <ResponseStatus>OK</ResponseStatus>
      <ResponseData>
      <![CDATA[
        <CaptureResponse>
          <CaptureDetails>
            <AmazonCaptureId>
              S01-0780562-2084534-C018299
            </AmazonCaptureId>
            <CaptureStatus>
              <LastUpdateTimestamp>
                2014-05-21T23:19:10.020Z
              </LastUpdateTimestamp>
              <State>Completed</State>
            </CaptureStatus>
            <CaptureAmount>
              <Amount>4.00</Amount>
              <CurrencyCode>USD</CurrencyCode>
            </CaptureAmount>
            <CaptureReferenceId>
              BatchPerf-Capture-exdkxjbbul
            </CaptureReferenceId>
            <SoftDescriptor>AMZ*Note</SoftDescriptor>
            <CreationTimestamp>
              2014-05-21T23:19:10.020Z
            </CreationTimestamp>
            <IdList/>
            <CaptureFee>
              <Amount>0.00</Amount>
              <CurrencyCode>USD</CurrencyCode>
            </CaptureFee>
            <SellerCaptureNote>
              Test capture
            </SellerCaptureNote>
            <RefundedAmount>
              <Amount>0</Amount>
              <CurrencyCode>USD</CurrencyCode>
            </RefundedAmount>
          </CaptureDetails>
        </CaptureResponse>
      ]]>
      </ResponseData>
    </Request>
  </Requests>
</Batch>

Copyright © 2009-2017 Amazon.com, Inc. or its affiliates. Amazon and Amazon.com are registered trademarks of Amazon.com, Inc. or its affiliates. All other trademarks are the property of their respective owners.