Get full inventory

23 views
Skip to first unread message

adminis...@comptoir-des-monnaies.com

unread,
Dec 19, 2016, 11:53:06 AM12/19/16
to Delcampe.net - API Technical Group
Hello

Is there a way to retrieve a full inventory of fixedPrice listed in my account (to check stock monthly) ?
CSV export in backOffice is down (503 error)
Api ressource is too limited to split my inventory in little piece (100K items on sale)

Regards,

Sébastien Verspecht

unread,
Dec 22, 2016, 2:47:54 AM12/22/16
to Delcampe.net - API Technical Group
<?

//We split our estimated number of items by 500 
for($i=0;$i<100000/500;$i++){
$objSoapClient = new SoapClient('http://api.delcampe.net/soap.php?wsdl');
$return = $objSoapClient->authenticateUser($api_key); //Don't forget to set you $api_key

if($return->status === true) {
// GET LIST OF MY ITEMS STILL ON STORE
$return = $objSoapClient->getMyOpenItemFixedPriceList($return->data,$i*500,500);

if ($return->status === true) {
if(count($return->data)>0) foreach ($return->data as $item) {    
//Here you get all your items
$item->id_item;
$item->personal_reference
}

}
}
}
?>

Merry Christmas ;)

adminis...@comptoir-des-monnaies.com

unread,
Dec 22, 2016, 3:33:49 AM12/22/16
to Delcampe.net - API Technical Group
Thanks Sébastien

We manage this with our own PHP method but idea is the same one.

Regards,
Reply all
Reply to author
Forward
0 new messages