Ebay API获取活动列表(由易趣位置/国家/地区)

时间:2016-11-03 15:52:43

标签: python api ebay trading

我们在国际eBay上列出产品(相同产品,多个eBay位置)

我试图获取ActiveListings列表,以便我们可以将ebay与我们的本地商店进行比较(我们可以确保当我们在多个渠道上销售时,我们已经用尽了库存,因为我们已经及时销售了这些商品。)

使用GetMyeBaySelling调用如下所示返回所有列表,但无法知道它们列在/来自哪个易趣位置。

这导致相同的产品,多次返回。我希望知道/查看易趣位置。

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

我正在使用eBay python SDK。

def get_active_listings(page):
    acitvelist = api.execute('GetMyeBaySelling', {'ActiveList': True,
                                                  'DetailLevel': 'ReturnAll',
                                                  'PageNumber': page})
    return acitvelist.dict()

一旦我使用.dict()方法将其转换为python字典(返回所有可能的细节),我就把它作为示例产品:



{
  'QuantityAvailable': '2',
  'ItemID': 'xxxx',
  'PictureDetails': {
    'GalleryURL': 'xxxxx'
  },
  'ListingDetails': {
    'ConvertedBuyItNowPrice': {
      'value': '47.41',
      '_currencyID': 'USD'
    },
    'ViewItemURLForNaturalSearch': 'xxxxxx',
    'ViewItemURL': 'xxxxxx',
    'StartTime': '2016-10-04T12:27:56.000Z'
  },
  'ClassifiedAdPayPerLeadFee': {
    'value': '0.0',
    '_currencyID': 'USD'
  },
  'Quantity': '2',
  'WatchCount': '1',
  'TimeLeft': 'PT33S',
  'SellerProfiles': {
    'SellerShippingProfile': {
      'ShippingProfileName': 'Flat:DPD Two Day(Free),DPD Next Day/Flat:Stan#2',
      'ShippingProfileID': '64944860016'
    },
    'SellerReturnProfile': {
      'ReturnProfileID': '67182036016',
      'ReturnProfileName': 'Returns Accepted,Buyer,14 days#13'
    },
    'SellerPaymentProfile': {
      'PaymentProfileID': 'xxxxx',
      'PaymentProfileName': 'PayPal'
    }
  },
  'BuyItNowPrice': {
    'value': '38.5',
    '_currencyID': 'GBP'
  },
  'ListingType': 'FixedPriceItem',
  'SellingStatus': {
    'CurrentPrice': {
      'value': '38.5',
      '_currencyID': 'GBP'
    },
    'ConvertedCurrentPrice': {
      'value': '47.41',
      '_currencyID': 'USD'
    }
  },
  'SKU': 'brubu1sp',
  'ListingDuration': 'GTC',
  'Title': 'Brunswick Soprano Ukulele, Purple (NEW)',
  'ShippingDetails': {
    'ShippingServiceOptions': {
      'ShippingServiceCost': {
        'value': '0.0',
        '_currencyID': 'GBP'
      }
    },
    'ShippingType': 'Flat'
  }
}




我无法找到满意的答案。

0 个答案:

没有答案