How to Fix Error 5005: Invalid Merchant Identifier in XML Feeds
Error 5005 blocks XML feed uploads when the <MerchantIdentifier> token (e.g., M_BETASHOP_334455) does not match the Seller Central login used in the HTTP Authorization header. The mismatch halts catalog, inventory, and pricing updates, forcing sellers to correct token and credential alignment.
Overview
Sellers who rely on automated XML feed uploads may encounter Amazon’s Error 5005, an authentication failure that stops the feed from being processed. The error appears when the merchant identifier embedded in the XML file does not match the login credentials supplied in the HTTP request header. Fixing the mismatch is critical because a rejected feed halts catalog, inventory, or pricing updates, directly affecting a seller’s ability to stay competitive on the marketplace.
Key Points
- Authentication mismatch — The error is triggered when the merchant token in the XML header differs from the username/password used in the HTTP header.
- Token format — Merchant identifiers follow a pattern such as
M_ACMEINC_012345and are unique to each seller account. - Credential consistency — The HTTP header must carry the exact Seller Central login (email/username and password) that the account owner uses to sign in.
- Automatic token generation — Amazon creates the merchant token when the seller account is first registered; it cannot be edited manually.
- Common trigger — Managing several Amazon accounts or using outdated integration settings often leads to the token‑credential mismatch.
How Error 5005 Occurs
- XML payload includes merchant token — The feed’s XML header contains a
<MerchantIdentifier>element, for example<MerchantIdentifier>M_MYSHOP_987654</MerchantIdentifier>. - HTTP request carries login credentials — The same submission sends an HTTP header with
Authorization: Basic <base64‑encoded‑username:password>, where the username is the seller’s login email. - Amazon validates both values — Amazon’s gateway checks that the token in step 1 belongs to the account identified by the credentials in step 2. If the token belongs to a different account or is mistyped, the system returns Error 5005 and rejects the feed.
Context: Before vs. After
Analysis & Recommendations
Why This Matters
A rejected feed prevents inventory sync, causing out‑of‑stock listings and stale prices that can lose sales. The issue is purely technical—not a policy violation—so fixing it restores the automated pipeline quickly.
Key Takeaways
- Error 5005 is triggered when the XML <MerchantIdentifier> token differs from the HTTP Basic Auth credentials.
- Merchant tokens follow the pattern M_<ACCOUNT>_######, e.g., M_BETASHOP_334455, and are generated automatically by Amazon.
- The token cannot be edited manually; it must be copied from Seller Central > Settings > Account Info > Your Merchant Token.
- Mismatched tokens often arise when managing multiple Amazon accounts with a shared integration script.
Recommended Actions
- →In Seller Central, go to Settings → Account Info → Your Merchant Token and copy the exact token string.
- →Edit the XML feed to replace the <MerchantIdentifier> value with the copied token.
- →Verify the HTTP Authorization header uses the same Seller Central username/password (re‑encode if the password changed) and re‑run a test upload.
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!