question

piscor_fishing avatar image
0 Likes"
piscor_fishing asked ·

inventory managment

is it possible to update via the new api items published via the ebay G.U.I.? When I try to call inventory_item/getInventoryItem it give me back this: {"errors":[{"errorId":25710,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"We didn't find the entity you are requesting. Please verify the request"}]} STATUS CODE 404 Headers + RlogId {'X-EBAY-REQUEST-ID': '164add8b52d.ad4a8c1.34650.fe64205d![SISClient[!slrinvsvc!10.22.212.73!r1slrinvsvc[UserLookupClient[!lookup.internalId!10.189.164.224!r1userinfo[]]]]]', 'Content-Length': '169', 'Content-Encoding': 'gzip', 'Set-Cookie': 'ebay=%5Esbf%3D%23%5E;Domain=. ebay.com;Path=/', 'RlogId': 't6pitnmsgwj70%3D9iptpitnmsgwj70*1102%3B45%29pqtfwpu%29osu%29fgg%7E-fij-164add8b53f-0x49e4', 'X-EBAY-C-VERSION': '1.0.0', 'Connection': 'keep-alive', 'Date': 'Wed, 18 Jul 2018 14:43:37 GMT', 'X-EBAY-C-REQUEST-ID': 'ri=SyPyOwwEbXeA,rci=bRn17jgNIUMz1pY3', 'Content-Type': 'application/json'} so it seems that items already published via ebay Gui are not visible for the api calls thanks for any help
inventory api
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.

1 Answer

· Write an Answer
gripgate avatar image
0 Likes"
gripgate answered ·
If you refere to the inventory api see following
https://developer.ebay.com/api-docs/sell/inventory/resources/offer/methods/updateOffer
You can update all offers, no matter where you created them from, as long as they exist public function createOffer($aArticle) { $aBody = $this->createOfferItem($aArticle); $sURL = $this->_sURL.'/sell/inventory/v1/offer'; $aResponse = $this->callRESTCurl('POST',$sURL,$aBody); return $aResponse; } public function updateOffer($aArticle) { $sOfferId = $aArticle['ggebayofferid']; $aBody = $this->createOfferItem($aArticle); //echo '
'; var_dump($aBody); echo '
';

		$sURL = $this->_sURL.'/sell/inventory/v1/offer/'.$sOfferId;
	    //print_r("URL: ".$sURL." \n");
	    $aResponse = $this->callRESTCurl('PUT',$sURL,$aBody,$headers);
	    
	    return $aResponse;
    }
· Share
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.