Code Monkey home page Code Monkey logo

Comments (2)

claytondus avatar claytondus commented on June 12, 2024

I don't have an EUR account, but I was just able to complete this request:

FeesEstimateRequest = new List<FeesEstimateRequest>()
                {
                    new FeesEstimateRequest()
                    {
                        MarketplaceId = "ATVPDKIKX0DER",
                        IdType = "ASIN",
                        IdValue = "B016W63ZYS",
                        IsAmazonFulfilled = false,
                        Identifier = "request1",
                        PriceToEstimateFees = new PriceToEstimateFees()
                        {
                            ListingPrice = new MoneyType()
                            {
                                Amount = 12.99M,
                                CurrencyCode = "USD",
                            },
                        }
                    }
                }
<GetMyFeesEstimateResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"><GetMyFeesEstimateResult><FeesEstimateResultList><FeesEstimateResult><Status>Success</Status><FeesEstimateIdentifier><MarketplaceId>ATVPDKIKX0DER</MarketplaceId><SellerId>A2EIAUMHCIBDMM</SellerId><IdType>ASIN</IdType><IdValue>B016W63ZYS</IdValue><IsAmazonFulfilled>False</IsAmazonFulfilled><PriceToEstimateFees><ListingPrice><CurrencyCode>USD</CurrencyCode>*<Amount>12.99</Amount>*</ListingPrice></PriceToEstimateFees><SellerInputIdentifier>request1</SellerInputIdentifier></FeesEstimateIdentifier><FeesEstimate><TimeOfFeesEstimation>12/24/2019 17:31:52</TimeOfFeesEstimation><TotalFeesEstimate><CurrencyCode>USD</CurrencyCode><Amount>3.75</Amount></TotalFeesEstimate><FeeDetailList><FeeDetail><FeeType>ReferralFee</FeeType><FeeAmount><CurrencyCode>USD</CurrencyCode><Amount>1.95</Amount></FeeAmount><FeePromotion><CurrencyCode>USD</CurrencyCode><Amount>0.00</Amount></FeePromotion><FinalFee><CurrencyCode>USD</CurrencyCode><Amount>1.95</Amount></FinalFee></FeeDetail><FeeDetail><FeeType>VariableClosingFee</FeeType><FeeAmount><CurrencyCode>USD</CurrencyCode><Amount>1.80</Amount></FeeAmount><FeePromotion><CurrencyCode>USD</CurrencyCode><Amount>0.00</Amount></FeePromotion><FinalFee><CurrencyCode>USD</CurrencyCode><Amount>1.80</Amount></FinalFee></FeeDetail><FeeDetail><FeeType>PerItemFee</FeeType><FeeAmount><CurrencyCode>USD</CurrencyCode><Amount>0.00</Amount></FeeAmount><FeePromotion><CurrencyCode>USD</CurrencyCode><Amount>0.00</Amount></FeePromotion><FinalFee><CurrencyCode>USD</CurrencyCode><Amount>0.00</Amount></FinalFee></FeeDetail></FeeDetailList></FeesEstimate></FeesEstimateResult></FeesEstimateResultList></GetMyFeesEstimateResult><ResponseMetadata><RequestId>5ccfb172-de7f-48d7-8607-8f3856db9d6f</RequestId></ResponseMetadata></GetMyFeesEstimateResponse>

from claytondus.amazonmws.

kevinvenclovas avatar kevinvenclovas commented on June 12, 2024

Hi,
now i got the issue after come back again.

You need to recode the WriteFragmentTo in the Claytondus.AmazonMWS.Products.Model.MoneyType class.
With the german localization the ".ToString" function convert the decimal "Amount" -> 12.99M to 12,99 but amazon need the dot version 12.99 .

So you need to change :
writer.Write("Amount", _amount);

to

writer.Write("Amount", _amount?.ToString(CultureInfo.InvariantCulture));

from claytondus.amazonmws.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.