Wednesday 15 July 2015

Ebay trading API - Where's the postage? -



Ebay trading API - Where's the postage? -

i'm using ebay trading api inventory of user.

i'm using getsellerlist() granularity = fine, iterate through itemtypecollection each itemtype. info need there except postage.

the products have postage stamp on them of £7.50 in itemtype?

any ideas how find/get this?

well found lurking way deep downwards here:

myitemtypecollection[x].shippingdetails.shippingserviceoptions[x].shippingservicecost.value

please see here nuts , bolts of how seller list ebay: http://developer.ebay.com/devzone/xml/docs/reference/ebay/getsellerlist.html

after have called getsellerlist below code should postage, have targeted royalmail shipping service in if inspect object you'll see other options:

//get seller list ebay itemtypecollection itemlists = apigetsellerlist.getsellerlist(); //loop through itemtypecollection each item foreach (itemtype oitem in itemlists) { foreach (shippingserviceoptionstype shiptype in oitem.shippingdetails.shippingserviceoptions) { ////loop through various shipping options switch (shiptype.shippingservice) { case "uk_royalmailsecondclassstandard": //this standard postage stamp add together addproduct.deliverystandard = (decimal)shiptype.shippingservicecost.value; break; default: break; } } }

ebay ebay-api

No comments:

Post a Comment