Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 14 hours ago.
Improve this question
I am trying to post SKU & Quantity of product on amazon mws,
My XML format is
<?xml version='1.0' encoding='UTF-8'?> <AmazonEnvelope
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='amzn-envelope.xsd'> <Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>XYZ</MerchantIdentifier> </Header>
<MessageType>Inventory</MessageType> <Message>
<MessageID>1</MessageID> <OperationType>Update</OperationType>
<Inventory> <SKU>F311020-CGDD-7.5</SKU> <Quantity>13</Quantity>
</Inventory> </Message> </AmazonEnvelope>
when i post the xml i get status with 200 ok & Submit successful in response but when i try those submitId on scratchpad i get error 25 as,
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.02</DocumentVersion>
<MerchantIdentifier>XYZ</MerchantIdentifier>
</Header>
<MessageType>ProcessingReport</MessageType>
<Message>
<MessageID>1</MessageID>
<ProcessingReport>
<DocumentTransactionID>64542017417</DocumentTransactionID>
<StatusCode>Complete</StatusCode>
<ProcessingSummary>
<MessagesProcessed>1</MessagesProcessed><MessagesSuccessful>0</MessagesSuccessful>
<MessagesWithError>1</MessagesWithError><MessagesWithWarning>0</MessagesWithWarning>
</ProcessingSummary>
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>25</ResultMessageCode>
<ResultDescription>We are unable to
process the XML feed because one or more items are invalid. Please re-submit
the feed.</ResultDescription>
</Result>
</ProcessingReport>
</Message>
</AmazonEnvelope>
Am I missing anything here? Here I am using JavaScript to post data.
I use very similar XML to update my stock on Amazon, and the only difference is "FulfillmentLatency", you can try this XML.
Are you using same XML feed in scratchPad?
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>$merchant_token</MerchantIdentifier>
</Header>
<MessageType>Inventory</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Inventory>
<SKU>$sku</SKU>
<Quantity>$quantity</Quantity>
<FulfillmentLatency>1</FulfillmentLatency>
</Inventory>
</Message>
</AmazonEnvelope>
Related
I have an XML file as shown below.
<?xml version="1.0" encoding="UTF-8"?>
<body xmlns:bons0="http://DistinctAppSample" xmlns:httpsca="http://www.ibm.com/xmlns/prod/websphere/http/sca/6.1.0" xmlns:mq="http://www.ibm.com/xmlns/prod/websphere/mq/sca/6.0.0" xmlns:smo="http://www.ibm.com/websphere/sibx/smo/v6.0.1" xmlns:tns="http://DistinctAppSample/TestInf" xmlns:tns1="http://www.w3.org/2005/08/addressing" xmlns:tns2="http://www.w3.org/2003/05/soap-envelope" xmlns:tns_1="wsdl.http://DistinctAppSample/TestInf" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="foo.xsd">
<tns:testOperation>
<input>
<request>
<salary>100</salary>
<newSalary>101</newSalary>
</request>
<request>
<salary>123</salary>
<newSalary>101</newSalary>
</request>
<request>
<salary>101</salary>
<newSalary>123</newSalary>
</request>
<request>
<salary>100</salary>
<newSalary>101</newSalary>
</request>
</input>
</tns:testOperation>
</body>
I am trying to remove the duplicate "request" node where we have same salary and newSalary value (node1 and node4 has same values. So I need to consider only one node). Sample output is follows.
<?xml version="1.0" encoding="UTF-8"?>
<body xmlns:bons0="http://DistinctAppSample" xmlns:httpsca="http://www.ibm.com/xmlns/prod/websphere/http/sca/6.1.0" xmlns:mq="http://www.ibm.com/xmlns/prod/websphere/mq/sca/6.0.0" xmlns:smo="http://www.ibm.com/websphere/sibx/smo/v6.0.1" xmlns:tns="http://DistinctAppSample/TestInf" xmlns:tns1="http://www.w3.org/2005/08/addressing" xmlns:tns2="http://www.w3.org/2003/05/soap-envelope" xmlns:tns_1="wsdl.http://DistinctAppSample/TestInf" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="foo.xsd">
<tns:testOperation>
<input>
<request>
<salary>100</salary>
<newSalary>101</newSalary>
</request>
<request>
<salary>123</salary>
<newSalary>101</newSalary>
</request>
<request>
<salary>101</salary>
<newSalary>123</newSalary>
</request>
</input>
</tns:testOperation>
</body>
I would need to write a XPATH to achieve this Scenario.
I have tried //request[not(salary = preceding::salary and newSalary = preceding::newSalary)] but it is not working as expected. Any suggesition would be much appriciated.
Thanks.
i am sending purchase request in xml with createcustomer profile.
customerProfileId is returning good but customerpayment profile id is returning in field customerPaymentProfileIdList > numericString.
here is full response.
<?xml version="1.0" encoding="utf-8"?>
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<transactionResponse>
<responseCode>1</responseCode>
<authCode>R7BVRZ</authCode>
<avsResultCode>Y</avsResultCode>
<cvvResultCode>P</cvvResultCode>
<cavvResultCode>2</cavvResultCode>
<transId>60032752664</transId>
<refTransID />
<transHash>C1F3242645F7F118D709452E5758AF35</transHash>
<testRequest>0</testRequest>
<accountNumber>XXXX0015</accountNumber>
<accountType>MasterCard</accountType>
<messages>
<message>
<code>1</code>
<description>This transaction has been approved.</description>
</message>
</messages>
<transHashSha2 />
</transactionResponse>
<profileResponse>
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<customerProfileId>1813409569</customerProfileId>
<customerPaymentProfileIdList>
<numericString>1808086931</numericString>
</customerPaymentProfileIdList>
<customerShippingAddressIdList />
</profileResponse>
</createTransactionResponse>
I need to update quantity for a single product via SubmitFeed API and "_POST_INVENTORY_AVAILABILITY_DATA_" feed type:
<?xml version=""1.0"" encoding=""utf-8"" ?>
<AmazonEnvelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""amznenvelope.xsd"">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>MERCHANT_ID</MerchantIdentifier>
</Header>
<MessageType>Inventory</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Inventory>
<SKU>MY_SKU_CODE</SKU>
<Quantity>2</Quantity>
</Inventory>
</Message>
</AmazonEnvelope>
Submission was OK (checked from MWS Scratchpad):
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.02</DocumentVersion>
<MerchantIdentifier>...</MerchantIdentifier>
</Header>
<MessageType>ProcessingReport</MessageType>
<Message>
<MessageID>1</MessageID>
<ProcessingReport>
<DocumentTransactionID>...</DocumentTransactionID>
<StatusCode>Complete</StatusCode>
<ProcessingSummary>
<MessagesProcessed>1</MessagesProcessed>
<MessagesSuccessful>1</MessagesSuccessful>
<MessagesWithError>0</MessagesWithError>
<MessagesWithWarning>0</MessagesWithWarning>
</ProcessingSummary>
</ProcessingReport>
</Message>
</AmazonEnvelope>
but the quantity for that SKU hadn't changed in my inventory (as seen in my Amazon Seller Central back office). Amazon's forums did not help. Any suggestion?
When I run into issues where the SKU isn't updating, I include the ASIN which usually does the trick. You'd include it like this:
<SKU>MY_SKU</SKU>
<StandardProductID>
<Type>ASIN</Type>
<Value>MY_SKU'S_ASIN</Value>
</StandardProductID>
You can also use GCID, UPC, etc, just by changing the type in the Type field. This usually does the trick for me if fields aren't updating properly
I find the feeds api will sometimes silently fail. See my post here for more information.
https://sellercentral.amazon.com/forums/thread.jspa?threadID=347480&tstart=0
My solution (in my case tracking on orders is what I'm trying to update) is to periodically confirm that the action I took actually resulted in the change, and if the change did not happen, to just resend the feed exactly the same.
I'm Submitting the below feed and geeting the submit feed id by getFeedSubmissionId().
But The product is not appearing in the sellers site. please help me in this regards.
feed :
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>**********</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>RO7WA11930KB1CASB</SKU>
<StandardProductID>
<Type>EAN</Type>
<Value>$ean</Value>
</StandardProductID>
<LaunchDate>$sDate</LaunchDate>
<DescriptionData>
<Title>$title</Title>
<Brand>$mid</Brand>
<Description>$desc</Description>
<MSRP currency="EUR">$price</MSRP>
<Manufacturer>$mid</Manufacturer>
<ItemType>stilhund</ItemType>
<ItemPackageQuantity>$stock</ItemPackageQuantity>
<RecommendedBrowseNode>12950661</RecommendedBrowseNode>
</DescriptionData>
<ProductData>
<Health>
<ProductType>
<HealthMisc>
<Material>Stilhund Products</Material>
</HealthMisc>
</ProductType>
</Health>
</ProductData>
</Product>
</Message>
</AmazonEnvelope>
Thanks in advance
You can find it with "GetFeedSubmissionResult" api where you pass your "FeedSubmissionId" and get the status of your submitted feed.
I am trying to add a new product using MWS, Here's the XML I am using:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<AmazonEnvelope>
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>my merchant id</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<Message>
<MessageID>1</MessageID>
<Product>
<SKU>SKU-TEST-123</SKU>
<StandardProductID>
<Type>ISBN</Type>
<Value>9781235467899</Value>
</StandardProductID>
<LaunchDate>2010-02-17T20:15:58.309+02:00</LaunchDate>
<ReleaseDate>2010-02-17T20:15:58.309+02:00</ReleaseDate>
<DescriptionData>
<Title>My Product</Title>
<Description>Product Description ...</Description>
</DescriptionData>
</Product>
</Message>
</AmazonEnvelope>
I got error in the processing report:
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>8060</ResultMessageCode>
<ResultDescription>The Product with SKU [SKU-TEST-123] cannot be matched to an existing product for the following reason: (NEW is not allowed; ). For more details, see http://sellercentral.amazon.com/gp/errorcode/8060</ResultDescription>
<AdditionalInfo>
<SKU>SKU-TEST-123</SKU>
</AdditionalInfo>
</Result>
I should be able to upload new products, no? Is there any restrictions to the SKU?
You should specify the OperationType immedately after the MessageID. For example:
<MessageID>1</MessageID>
<OperationType>PartialUpdate</OperationType>
<Product>
<SKU>SKU-TEST-123</SKU>
<StandardProductID>
<Type>ISBN</Type>
<Value>9781235467899</Value>
</StandardProductID>
<ProductTaxCode>A_GEN_TAX</ProductTaxCode>
<DescriptionData>
<Title>My product</Title>
<Brand>My brand</Brand>
<Description>My description</Description>
<MSRP currency="USD">24.03</MSRP>
<Manufacturer>blah</Manufacturer>
<SearchTerms>foo</SearchTerms>
<SearchTerms>bar</SearchTerms>
<SearchTerms>xyzzy</SearchTerms>
</DescriptionData>
</Product>
</Message>
I get the same error with a Text Tab Delimited file upload... all the ones that come back with that error seem to be sold books, or books that I am trying to remove from the database.. But they still seem to come off anyways. Try searching for your sku here https://sellercentral.amazon.com/myi/search/ItemSummary.amzn?ref_=sc_site_map_smless_ezdpc_gui_inv&refsrc=sm
Maybe the files have uploaded and amazon is just spittng out a strange error message at you?