Amazon API Transaction Summary

I use the Amazon Marketplace web service ordering API:

https://developer.amazonservices.com/gp/mws/api.html/181-8217517-6357550?ie=UTF8&group=orders§ion=orders&version=latest

Is there a transaction API for Amazon?

I want to calculate the exact fee for Amazon:

Amazon fees (commission change fee, commission) Shipping costs

Is there an API where I can get these exact amounts?

+4
source share
2 answers

Yes, you can get this information by retrieving settlement reports using the MWS Reporting API. They are available in XML or flat file format.

The following is general information about settlement reports: http://www.amazon.com/gp/help/customer/display.html?nodeId=200253140

MWS : http://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html#ReportTypeCategories__SettlementReports

+3

API Finances ( Amazon). , , ListFinancialEvents ( Amazon). . , PostedAfter, PostedBefore AmazonOrderID. - Scratchpad.

, , , c #, c # amazon. ( dll dist). MWSClientCsRuntime-1.0.dll.

, .

    public ListFinancialEventsResult GetOrderFeesByPostedDateRange(DateTime postedAfter, DateTime postedBefore)
    {
        var config = new MWSFinancesServiceConfig();
        config.ServiceURL = "https://mws.amazonservices.com";
        var client = new MWSFinancesServiceClient(AccessKey, SecretKey, AppName, AppVersion, config);
        try
        {
            var request = new MWSFinancesService.Model.ListFinancialEventsRequest();
            request.PostedAfter = postedAfter;
            request.PostedBefore = postedBefore;
            request.SellerId = SellerId;

            var response = client.ListFinancialEvents(request);
            return response.ListFinancialEventsResult;

        }
        catch (MWSFinancesServiceException ex)
        {
            MWSFinancesService.Model.ResponseHeaderMetadata responseHeaderMetatData = ex.ResponseHeaderMetadata;
            File.AppendAllText(ErrorLog, "----- SERVICE EXCEPTION -----" + Environment.NewLine);

            if (responseHeaderMetatData != null)
            {
                File.AppendAllText(ErrorLog, "     - RequestID: " + responseHeaderMetatData.RequestId + Environment.NewLine);
                File.AppendAllText(ErrorLog, "     - Timestamp: " + responseHeaderMetatData.Timestamp + Environment.NewLine);
            }

            File.AppendAllText(ErrorLog, "     - Message: " + ex.Message + Environment.NewLine);
            File.AppendAllText(ErrorLog, "     - StatusCode: " + ex.StatusCode + Environment.NewLine);
            File.AppendAllText(ErrorLog, "     - ErrorCode: " + ex.ErrorCode + Environment.NewLine);
            File.AppendAllText(ErrorLog, "     - ErrorType: " + ex.ErrorType + Environment.NewLine + Environment.NewLine);
            throw;
        }
    }
0

All Articles