I'm trying to make a call for all of the current active offers sellers have sent to me on my eBay account.
I read in the API documentation that if I don't include and itemID that it should return all of them. The problem is that I don't seem to understand how to run an api call correctly.
I took out my AuthToken because I am not sure what to put there. I have several codes but I don't know what to put there. Regardless of whatever I put there though, I keep getting the same output (see beneath code)
import requests x = """<?xml version="1.0" encoding="utf-8"?> <GetBestOffersRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken></eBayAuthToken> </RequesterCredentials> <ItemID></ItemID> <DetailLevel>ReturnAll</DetailLevel> <BestOfferStatus>All</BestOfferStatus> </GetBestOffersRequest>""" hi = requests.post("https://api.ebay.com/ws/api.dll", data=x) print(hi)
<?xml version="1.0" encoding="UTF-8" ?><GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents"><Timestamp>2020-12-23 03:24:23</Timestamp><Ack>Failure</Ack><Errors><ShortMessage>Unsupported API call.</ShortMessage><LongMessage>The API call "GeteBayOfficialTime" is invalid or not supported in this release.</LongMessage><ErrorCode>2</ErrorCode><SeverityCode>Error</SeverityCode><ErrorClassification>RequestError</ErrorClassification></Errors><Build>19110890</Build></GeteBayOfficialTimeResponse>'