timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
808 stars 326 forks source link

Delivery type "Collection in person only" #316

Closed Olimhon31 closed 4 years ago

Olimhon31 commented 4 years ago

is it possible to filter out the products which is delivery type "Collection in person only" in Finding API? Thank you!!!

fsmosca commented 4 years ago

As I understand this is like free local pickup, the buyer will pick up the item.

You can use LocalPickupOnly and set it to true.

The result would look like this. "shippingType": "FreePickup",

    "shippingInfo": {
        "shippingServiceCost": {
            "_currencyId": "USD",
            "value": "0.0"
        },
        "shippingType": "FreePickup",
        "shipToLocations": "Worldwide",
        "expeditedShipping": "true",
        "oneDayShippingAvailable": "false",
        "handlingTime": "1"
    },

I tried the call index findItemsAdvanced()

Olimhon31 commented 4 years ago

@fsmosca i tried as you said . ShippingType of most products were FreePickup but some of them are different(Flat,Calculated,Free). Should it be like this or different?

Olimhon31 commented 4 years ago
response = api.execute('findItemsAdvanced',{
'keywords': 'nike',
            'itemFilter': [
   {
                        'name':'LocalPickupOnly',
                        'value':"true"
                    }          
                ],
})
fsmosca commented 4 years ago

@fsmosca i tried as you said . ShippingType of most products were FreePickup but some of them are different(Flat,Calculated,Free). Should it be like this or different?

Free - shipping is free and items will be shipped according to the buyer's specified delivery address. FreePickUp - there is no shipping cost charged to the buyer, but the buyer will pick up the item at a place specified by the seller. Both shippings are free but there is a difference.

fsmosca commented 4 years ago
response = api.execute('findItemsAdvanced',{
'keywords': 'nike',
            'itemFilter': [
   {
                        'name':'LocalPickupOnly',
                        'value':"true"
                    }          
                ],
})

I use something like this. 'name': 'LocalPickupOnly', 'value': True

fsmosca commented 4 years ago

Sorry I did misinterpret what you want.

It is returning perhaps all shipping types whether LocalPickupOnly is True or False.

You better try other call index.

If it cannot filter out, just take all shipping types, and run another process to remove the FreePickup shipping type.