question

katv-2201 avatar image
0 Likes"
katv-2201 asked

[API JSON] Can I get data regarding purchases we have made in 2021?

We would like to be able to get data which is shown on "My eBay -> Purchase History" so that we can automatically load items we have purchased into our in-house inventory system. Is this possible using the eBay API? We have searched and cannot find the appropriate call.

apijsonbaying2021
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

katv-2201 avatar image
0 Likes"
katv-2201 answered

Please tell me what am I doing wrong?

axios({
  method: 'POST',
  url: 'https://api.ebay.com/ws/api.dll',
  headers: {
    'Content-Type':'text/xml',
    'X-EBAY-API-APP-NAME':'****',
    'X-EBAY-API-DEV-NAME':'****',
    'X-EBAY-API-CERT-NAME':'****',
    'X-EBAY-API-SITEID':0,
    'X-EBAY-API-COMPATIBILITY-LEVEL':967,
    'X-EBAY-API-CALL-NAME':'GetMyeBayBuying',
  },
  body: `<?xml version="1.0" encoding="utf-8"?>
<GetMyeBayBuyingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>****</eBayAuthToken>
  </RequesterCredentials>
  <ErrorLanguage>en_US</ErrorLanguage>
  <WarningLevel>High</WarningLevel>
  <DetailLevel>ReturnAll</DetailLevel>
  <BuyingSummary>
    <Include>false</Include>
  </BuyingSummary>
    <WatchList>
    <Include>false</Include>
  </WatchList>
  <BidList>
    <Include>false</Include>
  </BidList>
  <BestOfferList>
    <Include>false</Include>
  </BestOfferList>
  <LostList>
    <Include>false</Include>
  </LostList>
  <FavoriteSearches>
    <Include>false</Include>
  </FavoriteSearches>
  <FavoriteSellers>
    <Include>false</Include>
  </FavoriteSellers>
  <WonList>
    <Include>true</Include>
    <DurationInDays>3</DurationInDays>
    <Pagination>
      <EntriesPerPage>10</EntriesPerPage>
    </Pagination>
  </WonList>
</GetMyeBayBuyingRequest>`
}).then( (data) => {
  console.log(data.data);
})

Response:

ERROR CODE 21359


<?xml version="1.0" encoding="UTF-8"?>

<GetMyeBayBuyingResponse xmlns="urn:ebay:apis:eBLBaseComponents">

<Timestamp>2021-07-02T08:09:51.241Z</Timestamp>

<Ack>Failure</Ack><Errors>

<ShortMessage>Input transfer has been terminated because your request timed out.</ShortMessage>

<LongMessage>Input transfer has been terminated because your request timed out.</LongMessage>

<ErrorCode>21359</ErrorCode>

<SeverityCode>Error</SeverityCode>

<ErrorParameters ParamID="0">

<Value>Please try again.</Value>

</ErrorParameters>

<ErrorClassification>SystemError</ErrorClassification>

</Errors>

<Version>1193</Version>

<Build>E1193_CORE_API_19146280_R1</Build>

</GetMyeBayBuyingResponse>

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

katv-2201 avatar image
0 Likes"
katv-2201 answered

This does not work!

https://developer.ebay.com/devzone/XML/docs/Reference/eBay/GetMyeBayBuying.html

Response

<?xml version="1.0" encoding="UTF-8"?>
<GetOrdersResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2021-07-22T17:08:17.867Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Invalid job context type</ShortMessage>
<LongMessage>The job context object is not supported by Action Service Framework.</LongMessage>
<ErrorCode>21843</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorParameters ParamID="0">
<Value>GetOrders</Value>
</ErrorParameters>
<ErrorParameters ParamID="1">
<Value>GetMyeBayBuyingRequestType</Value>
</ErrorParameters>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>1213</Version>
<Build>E1213_CORE_APIXO_19220561_R1</Build>
</GetOrdersResponse>
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.