Understanding the XML Header Schema for Amazon Feed Submissions
Amazon feed XML must start with a <Header> containing <DocumentVersion>1.01</DocumentVersion> (matches \d{1,2}\.\d{1,2}) and the exact MerchantIdentifier from Seller Central. Missing or malformed header triggers immediate rejection, preventing product updates during critical periods like Prime Day.
Overview
When Amazon sellers upload product data via Seller Central or the SP‑API, every XML feed must start with a correctly structured header. This header conveys the feed’s version and the seller’s unique identifier, allowing Amazon to route and validate the submission. Getting the header right prevents outright rejections that can delay inventory updates and sales‑critical changes.
Key Points
- Header required on every feed — The XML header appears at the top of each feed envelope; omitting it causes Amazon to reject the file before any product data is examined.
- Document version follows a strict pattern — Amazon currently accepts version 1.01; the value must match the regex
\d{1,2}\.\d{1,2}(e.g., “1.01” or “10.5”). - Merchant identifier must be exact — This is the seller‑account ID assigned by Amazon; a mismatch (such as using a legacy ID from an old template) triggers a “Invalid Merchant Identifier” error.
- Schema validation is non‑negotiable — Amazon validates the header against its published XSD file; any deviation in element order, naming, or data type results in immediate rejection.
- Common cause of feed failures — Missing or malformed header fields account for the majority of early‑stage rejections reported in Seller Central’s Feed Processing Reports.
How the Header Schema Works
- Create the feed envelope — Begin with the root element
<AmazonEnvelope>; for example,<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">. This wrapper signals to Amazon that the file contains a feed. - Insert the
<Header>element — Inside the envelope, add<Header>as the first child. A typical snippet looks like:
The<Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier>A1B2C3D4E5F6G7</MerchantIdentifier> </Header>DocumentVersiontells Amazon which schema version to apply, while links the feed to your seller account.
Analysis & Recommendations
Why This Matters
A malformed header halts the feed, causing missed pricing updates and delayed product launches, which can cost sales during high‑traffic events such as Prime Day. Correct header validation ensures the feed proceeds to product‑level checks, preserving inventory accuracy and revenue.
Key Takeaways
- Header must be the first child of <AmazonEnvelope>; omission leads to rejection.
- DocumentVersion currently accepted is "1.01" and must match the regex \d{1,2}\.\d{1,2}.
- MerchantIdentifier must exactly match the seller‑account ID shown in Seller Central Settings; mismatches raise "Invalid Merchant Identifier".
- Run local XSD validation (e.g., xmllint --schema AmazonEnvelope.xsd yourfeed.xml) to catch structural errors before upload.
Recommended Actions
- →Update your feed generator to insert <Header><DocumentVersion>1.01</DocumentVersion><MerchantIdentifier>[Exact ID from Seller Central > Settings > ...
- →Add a pre‑flight step that runs `xmllint --schema AmazonEnvelope.xsd yourfeed.xml` and aborts the upload if errors are returned.
- →Before each upload, open Seller Central > Inventory > Add Products via Upload and verify the XML file’s header order and values.
Comments
Join the discussion
Log in or create an account to share your thoughts on this update.
No comments yet. Be the first to share your thoughts!