Skip to main content
Published: June 23 2006, 10:30:00 AMUpdated: November 28 2020, 2:06:53 PM

Why am I receiving error 90002 when calling SetStore to set a custom header?

You are receving this error because your custom header includes HTML. In order to add HTML to your custom header, you need to escape all HTML markup characters with character entity references. For example, the request below will return error 90002 due to the HTML markup in the CustomHeader element:

<?xml version="1.0" encoding="utf-8"?>
<SetStoreRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ErrorLanguage>en_US</ErrorLanguage>
<Version>467</Version>
<Store>
<CustomHeader>
<table><tr><td class="stdclass">My Test Store Header</td></tr></table>
</CustomHeader>
<CustomHeaderLayout>CustomHeaderShown</CustomHeaderLayout>
</Store>
<RequesterCredentials>
<eBayAuthToken>x</eBayAuthToken>
</RequesterCredentials>
</SetStoreRequest>

The correct method for sending in the header would be to replace all '<' characters with '<' and replace all > characters with '>' as shown in the request below (also attached)

<?xml version="1.0" encoding="utf-8"?>
<SetStoreRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ErrorLanguage>en_US</ErrorLanguage>
<Version>467</Version>
<Store>
<CustomHeader><table><tr><td class="stdclass"> My Test Store Header </td></tr></table></CustomHeader>
<CustomHeaderLayout>CustomHeaderShown</CustomHeaderLayout>
</Store>
<RequesterCredentials>
<eBayAuthToken>x</eBayAuthToken>
</RequesterCredentials>
</SetStoreRequest>

How well did this answer your question?
Answers others found helpful