易趣舾装API如何走出股票项目 [英] Ebay Tradding Api how to get out of stock item

查看:141
本文介绍了易趣舾装API如何走出股票项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试让所有我在eBay上的物品是缺货

im trying to get all my items on Ebay that are out of stock

现在即时通讯使用API​​调用GetMyeBaySelling但事情是我唯一可以获取当前ACTIF项目

right now im using the api call "GetMyeBaySelling" but the thing is i only can fetch the current actif items

所以我在eBay上的文档,看到的时候,有一个叫GetSellingManagerInventory电话
http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetSellingManagerInventory.html

so i when on the ebay docs and saw that there is a call called "GetSellingManagerInventory" http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetSellingManagerInventory.html

我认为这是调用我需要,所以我开始尝试的API。

i think this is the call i need so i started to try the api.

但我从来没有能够得到任何结果。

but i never can get any result.

这是我的电话的xml我做

here is my xml call that i make

<?xml version="1.0" encoding="utf-8"?>
<GetSellingManagerInventoryRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <Pagination>
        <EntriesPerPage>200</EntriesPerPage>
        <PageNumber>1</PageNumber>
    </Pagination>
    <Sort>ActiveQuantity</Sort>
    <SortOrder>Ascending</SortOrder>
    <MessageID>test</MessageID>
    <WarningLevel>High</WarningLevel>
    <RequesterCredentials>
        <eBayAuthToken>'.$auth.'</eBayAuthToken>
    </RequesterCredentials>
</GetSellingManagerInventoryRequest>

和这个得到这样的结果。

and with this get this result

Array
(
    [Timestamp] => 2013-09-16T18:15:17.535Z
    [Ack] => Success
    [CorrelationID] => test
    [Version] => 841
    [Build] => E841_UNI_API5_16362888_R1
    [InventoryCountLastCalculatedDate] => 2013-09-16T08:56:13.000Z
    [PaginationResult] => Array
        (
            [TotalNumberOfPages] => 0
            [TotalNumberOfEntries] => 0
        )

)

所以即时猜测我真的需要把一个&LT;搜索和GT; 就像他们在文档中记录了

So im guessing i really need to put an <Search> like they have documented in the docs

所以insted的我拨打这个电话

so insted i make this call

<?xml version="1.0" encoding="utf-8"?>
<GetSellingManagerInventoryRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Search>
    <SearchType>Title</SearchType>
    <SearchValue>2333-XL</SearchValue>
  </Search>
  <Pagination>
    <EntriesPerPage>200</EntriesPerPage>
    <PageNumber>1</PageNumber>
  </Pagination>
  <Sort>ActiveQuantity</Sort>
  <SortOrder>Ascending</SortOrder>
  <MessageID>test</MessageID>
  <WarningLevel>High</WarningLevel>
  <RequesterCredentials>
    <eBayAuthToken>'.$auth.'</eBayAuthToken>
  </RequesterCredentials>
</GetSellingManagerInventoryRequest>

和我仍然得到同样的结果。 (请注意,输入的搜索域是一个易趣上市,我有),所以应该给我一些结果。

and still i get the same result. ( please note that the search field entered is one ebay listing that i have ) so it should give me some result

所以,我必须做一些错误的。

So i must be doing something wrong.

感谢所有帮助我可以有!

Thanks for any help i could have!

推荐答案

GetMyeBaySelling 将返回项目进行股票0,如果你使用清单的项目时,将 OutOfStockControl 以真AddFixedPriceItem。当调用GetMyeBaySelling在 QuantityAvailable 字段将不予退还,这意味着库存水平= 0

GetMyeBaySelling will return the items with stock 0 if you set OutOfStockControl to true when listing the item using AddFixedPriceItem. When calling GetMyeBaySelling the QuantityAvailable field will not be returned which means the stock level = 0

这篇关于易趣舾装API如何走出股票项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆