Skip to main content
Published: January 17 2007, 1:57:00 PMUpdated: August 05 2022, 5:26:11 AM

Question: I have the following XML Schema request:

<?xml version="1.0" encoding="utf-8"?>
<GeteBayOfficialTimeRequest xmlns="urn:ebay:apis:eBLBaseComponents">

The request is correct, so why I am still getting this error?

<?xml version="1.0" encoding="UTF-8" ?>
  <Timestamp>2022-08-05 12:19:12</Timestamp>
    <ShortMessage>Unsupported API call.</ShortMessage>
    <LongMessage>The API call "GeteBayOfficialTimes" is invalid or not supported in this release.</LongMessage>


Answer: Apart from ensuring that the body of the request is correct, you need to ensure that the headers are also set correctly.  One common gotcha is that in the header you need to specify the name of the call minus the "Request" phrase.  For example, to get the eBay official time, you need to set the header to "GeteBayOfficialTime" and in the request body, the root element needs to be GeteBayOfficialTimeRequest.  If you set the header to GeteBayOfficialTimeRequest, you will get the Unsupported API call.



Detailed Description

You need to set the following information in your request header:
  • Content-Type
  • Version
  • DevID
  • AppID
  • CertID
  • CallName
  • SiteID

Here is an example of setting the Headers for GeteBayOfficialTime using Javascript:

xmlHttpReq = new XMLHttpRequest();

Version Info

The code example above was based on the versions specified below:

API Schema Version967




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