eBay Trading API 整理(☆)

eBay Trading API 整理

纠纷相关  

AddDispute:创建一个未支付纠纷 或 取消 a single line item order

AddDisputeResponse:回复/关闭dispute

GetDispute:获取Dispute

GetUserDisputes :获取用户作为买家或卖家的Dispute

SellerReverseDispute

商品相关  

AddItem:添加一个item

AddFixedPriceItem

AddItemFromSellingManagerTemplate:从Selling Manager templates创建 listing

AddItems:上传1到5个item

AddToItemDescription

AddToWatchList:添加一个或多个item到 My eBay watch list

DisableUnpaidItemAssistance:禁用Unpaid Item Assistant 

EndFixedPriceItem:下架fixed-price item

EndItem:下架item

EndItems: 下架10个 items

GetBestOffers:获取商品的Best Offers

GetBidderList:获取用户正在拍、已拍到和已购买的商品

GetItem:Returns item data 

GetItemsAwaitingFeedback:返回等待买家或卖家回复feedback的items

GetMyeBayBuying:从My eBay account>Buying section获取watching、biding on、 has won、has made Best Offers 的 item

GetMyeBaySelling:从My eBay account>Selling section获取user is currently selling (the Active list),items that have bids, sold items, and unsold items.

GetSellerList 

GetSellingManagerSoldListings:获取已卖掉的商品的信息

RelistFixedPriceItem:重新上传a single fixed-price item 或者 a single multi-item listing 到指定的网站

RelistItem:重新上传a single item 或者 a single multi-item listing 到指定的网站

RemoveFromWatchList:remove one or more items from  My eBay watch list

RespondToBestOffer:接受、拒绝 或 买方还价 => Best Offer

ReviseFixedPriceItem:修改active的 fixed-price item 属性

ReviseInventoryStatus:change the price and quantity of currently active fixed-price items

ReviseItem:修改active listing 属性 

VerifyRelistItem:验证重新上传Item

区别ReviseFixedPriceItemReviseInventoryStatusReviseItem  

ReviseFixedPriceItem :

    1、basic fixed-price listings and store inventory listings

    2、gives you an option to track inventory by SKU instead of by ItemID

    3、supports the revising of multi-varation listings

    4、you can revise items in bulk by using the File Transfer API and Bulk Data Exchange API

ReviseItem :auctions, classified ads, or listings with Best Offer

VerifyAddFixedPriceItem:并不真正上传商品,只是测试一下商品的信息,返回上传需要的价格等信息,供卖家参考

VerifyAddItem

订单相关

AddSecondChanceItem:给予未竞拍成功的买家第二次竞拍的机会

VerifyAddSecondChanceItem:验证AddSecondChanceItem的输入参数,返回模拟的start and end times 

AddOrder:合并多个订单,方便买家支付

AddTransactionConfirmationItem:

CompleteSale:在创建了a single line item or multiple line item order,买家做various tasks

GetItemTransactions:返回指定商品的订单

GetOrders:获取身份验证用户的订单,既包括买家也包括卖家

GetOrderTransactions:根据OrderIDs, ItemIDs, or SKU获取一个或多个订单的信息 

GetSellerTransactions:As a seller, you can use this call to retrieve all of your order line items 

PlaceOffer:make a bid, a best offer, or a purchase on the item specified by the ItemID input field 

Message相关

DeleteMyMessages:为用户删除选择的messages

GetMemberMessages:获取买家对你的active item的message

GetMessagePreferences:获取卖家的  Ask Seller a Question (ASQ)

GetMyMessages:获取我的messages 

ReviseMyMessages

Category相关

GetCategories:获取最新的catgories

GetCategoryFeatures:根据不同的category获取想应的 listing durations, shipping term requirements 和 Best Offer support

GetCategoryMappings:获取久category IDs 和新 category IDs 的映射

GetCategorySpecifics:获取category 的 item specifics

GetStoreCategoryUpdateStatus:

GetSuggestedCategories:根据关键字获取10个相关的category

SetStoreCategories:改变caller的eBay store 的 category配置信息

Feedback相关

GetFeedback:获取用户或商品或订单的feedback

LeaveFeedback:买/卖家评价

RespondToFeedback:回复feedback或追加后续评论

其他接口

AddSellingManagerInventoryFolder:为用户的Selling Manager account添加一个新的product文件夹

AddSellingManagerProduct:创建一个包含可以重复listing产品模板的Selling Manager product

AddSellingManagerTemplate:添加一个Selling Manager template

AddMemberMessageAAQToPartner:使买家和卖家按一定顺序关系,发送message到彼此的My Messages Inboxes

AddMemberMessageRTQ:让卖家对于an active item回复问题

AddMemberMessagesAAQToBidder:卖家给竞拍者或提出Best Offer的买家发送10条message

ConfirmIdentity:返回已经通过应用程序的同意流程获得授权token的用户ID

DeleteSellingManagerInventoryFolder:删除销售库存管理文件夹

DeleteSellingManagerItemAutomationRule:删除一个产品和Selling Manager automation rules的联系

DeleteSellingManagerProduct:删除一个Selling Manager product

DeleteSellingManagerTemplate:删除一个Selling Manager template

DeleteSellingManagerTemplateAutomationRule:删除一个template和Selling Manager automation rules的联系

FetchToken:检索用户的认证token

GetAccount:获取包括汇总数据在内的eBay account的发票数据

GetAdFormatLeads:Retrieves sales lead information for a lead generation listing.

GetAllBidders:提供三种模式获取用户的拍卖信息

GetApiAccessRules:Use this call to report on how many calls your application has made and how many it is allowed to make

GetChallengeToken:Retrieves a botblock token and URLs for an image or audio clip that the user is to match.

GetCharities:获得慈善机构

GetClientAlertsAuthToken:Retrieves a token required for the GetUserAlerts call in the Client Alerts API.

GetContextualKeywords

GetDescriptionTemplates

GeteBayDetails:根据不同的DetailName获取不同的eBay 详情信息

GeteBayOfficialTime:获取eBay系统的格林威治时间

GetItemShipping:返回卖家提供的商品运输服务

GetMyeBayReminders:从My eBay account 获取所有的Buying和Selling 提醒 

GetNotificationPreferences 

GetNotificationsUsage 

GetPromotionalSaleDetails:获取促销信息

GetSellerDashboard:获取卖家的一个简短的介绍

GetSellerEvents:获取卖家48小时内的 price changes, item 修改, description 修改, and other changes

GetSellingManagerAlerts

GetSellingManagerEmailLog

GetSellingManagerInventory:分页获取销售库存管理

GetSellingManagerInventoryFolder:获取销售库存管理文件夹

GetSellingManagerItemAutomationRule:获取销售管理自动化规则,这个规则可以自动商品上架、保证active商品个数等

GetSellingManagerSaleRecord:获取销售管理记录

GetSellingManagerTemplateAutomationRule:获取销售模板管理自动化规则

GetSellingManagerTemplates

GetSessionID:获取一个session ID,用来创建token(待看)

GetShippingDiscountProfiles

GetStore:通过UserID或者caller获取eBay store 的配置信息

GetStoreCustomPage  

GetStoreOptions:eBay商店配置设置的当前列表

GetStorePreferences:用户的eBay Store的喜好

GetTaxTable:获取某一网站的税表

GetTokenStatus

GetUser:获取有关单一eBay用户的数据

GetUserContactDetails

GetUserPreferences:获取用户的喜好

GetVeROReasonCodeDetails

GetVeROReportStatus

MoveSellingManagerInventoryFolder:移动Selling Manager inventory folder 

ReviseCheckoutStatus:use this call to update the payment details, the shipping details, and the status of an order 

ReviseMyMessagesFolders

ReviseSellingManagerInventoryFolder 

ReviseSellingManagerProduct 

ReviseSellingManagerSaleRecord 

ReviseSellingManagerTemplate 

RevokeToken:撤销token

SaveItemToSellingManagerTemplate

SendInvoice:卖家发送发票给买家

SetMessagePreferences

SetNotificationPreferences

SetPromotionalSale:Promotional sales enable sellers to apply discounts and/or free shipping across many listings

SetPromotionalSaleListings:改变被promotional sale影响到的item

SetSellingManagerFeedbackOptions

SetSellingManagerItemAutomationRule

SetSellingManagerTemplateAutomationRule

SetShippingDiscountProfiles:设置运费折扣文件

SetStore:设置caller的eBay store 的配置信息

SetStoreCustomPage:Creates or updates a custom page on a user's eBay Store.

SetStorePreferences:设置user's eBay Store喜好

SetTaxTable:设置卖家给定的网站的税表

SetUserNotes:add, replace, and delete My eBay notes for items that are being tracked in the My eBay All Selling and All Buying areas

SetUserPreferences

UploadSiteHostedPictures  

              Uploads a picture to the eBay Picture Service and returns a URL for the picture.

              1、没有获取上传图片的API,所以返回的图片地址要保存好

              2、图片上传5天内不用来上传商品或者10天内没调用Large Merchant Service上传商品,图片会被删除

              3、上传附件不支持Large Merchant Service

              4、eBay Picture Service(EPS)支持jpg、gif、png、bmp、tif格式,不支持psd等格式。

              5、图片最大7MB。

ValidateChallengeInput

ValidateTestUserRegistration 

VeROReportItems

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个示例代码,可以批量修改 eBay Feed 中的库存信息: ```python import requests import xml.etree.ElementTree as ET # eBay API endpoint and credentials endpoint = 'https://api.ebay.com/ws/api.dll' dev_id = 'YOUR_DEV_ID' app_id = 'YOUR_APP_ID' cert_id = 'YOUR_CERT_ID' auth_token = 'YOUR_AUTH_TOKEN' site_id = '0' # US site ID # function to build eBay API request body def build_request_body(item_id, quantity): xml = '<?xml version="1.0" encoding="UTF-8"?>' xml += '<BulkDataExchangeRequests xmlns="urn:ebay:apis:eBLBaseComponents">' xml += '<Header><SiteID>{}</SiteID></Header>'.format(site_id) xml += '<Request><RequestID>1</RequestID>' xml += '<Item><ItemID>{}</ItemID>'.format(item_id) xml += '<Quantity>{}</Quantity></Item></Request>'.format(quantity) xml += '</BulkDataExchangeRequests>' return xml # function to make eBay API call def call_ebay_api(xml_request): headers = { 'X-EBAY-API-COMPATIBILITY-LEVEL': '967', 'X-EBAY-API-DEV-NAME': dev_id, 'X-EBAY-API-APP-NAME': app_id, 'X-EBAY-API-CERT-NAME': cert_id, 'X-EBAY-API-CALL-NAME': 'BulkDataExchange', 'X-EBAY-API-SITEID': site_id, 'X-EBAY-API-IAF-TOKEN': auth_token, 'Content-Type': 'text/xml' } response = requests.post(endpoint, headers=headers, data=xml_request) return response # example usage item_ids = ['ITEM_ID_1', 'ITEM_ID_2', 'ITEM_ID_3'] quantities = [10, 20, 30] for item_id, quantity in zip(item_ids, quantities): xml_request = build_request_body(item_id, quantity) response = call_ebay_api(xml_request) root = ET.fromstring(response.content) ack = root.find('.//{urn:ebay:apis:eBLBaseComponents}Ack').text if ack == 'Success': print('Successfully updated quantity for item {}'.format(item_id)) else: print('Failed to update quantity for item {}: {}'.format(item_id, response.content)) ``` 请注意,在使用此代码之前,您需要将代码中的 `YOUR_DEV_ID`、`YOUR_APP_ID`、`YOUR_CERT_ID` 和 `YOUR_AUTH_TOKEN` 替换为您自己的 eBay 开发者凭据。此外,您还需要将 `ITEM_ID_1`、`ITEM_ID_2` 和 `ITEM_ID_3` 替换为您要更新库存信息的 eBay 商品的实际 ID,以及 `10`、`20` 和 `30` 替换为相应的库存数量。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值