Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 易趣API ReviseInventoryStatus请求返回';不支持的ListingType';更新数量和价格时出错_Xml_Ebay Api - Fatal编程技术网

Xml 易趣API ReviseInventoryStatus请求返回';不支持的ListingType';更新数量和价格时出错

Xml 易趣API ReviseInventoryStatus请求返回';不支持的ListingType';更新数量和价格时出错,xml,ebay-api,Xml,Ebay Api,我想使用他们的 <?xml version="1.0" encoding="utf-8"?> <ReviseInventoryStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken>MY_AUTH_TOKEN</eBayAuthToken> </RequesterCred

我想使用他们的

<?xml version="1.0" encoding="utf-8"?>
<ReviseInventoryStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials>
        <eBayAuthToken>MY_AUTH_TOKEN</eBayAuthToken>
    </RequesterCredentials>
    <InventoryStatus>
        <ItemID>110150500384</ItemID>
        <StartPrice>2.00</StartPrice>
        <Quantity>2</Quantity>
    </InventoryStatus>
</ReviseInventoryStatusRequest> ​

我的授权令牌
110150500384
2
2.
​
但当我尝试运行上述代码时,它会给出以下输出:

<?xml version="1.0" encoding="UTF-8"?>
<ReviseInventoryStatusResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2014-09-22T07:25:15.340Z</Timestamp>
    <Ack>Failure</Ack>
    <Errors>
        <ShortMessage>Unsupported ListingType.</ShortMessage>
        <LongMessage>Valid Listing type for fixedprice apis are FixedPriceItem and StoresFixedPrice.</LongMessage>
        <ErrorCode>21916286</ErrorCode>
        <SeverityCode>Error</SeverityCode>
        <ErrorClassification>RequestError</ErrorClassification>
    </Errors>
    <Version>891</Version>
    <Build>E891_UNI_API5_17051033_R1</Build>
</ReviseInventoryStatusResponse> ​

2014-09-22T07:25:15.340Z
失败
不支持的ListingType。
fixedprice API的有效列表类型为FixedPriceItem和StoresFixedPrice。
21916286
错误
请求错误
891
E891_UNI_API5_17051033_R1
​
错误:
fixedprice API的有效列表类型为FixedPriceItem和StoresFixedPrice。

如何解决这个问题,以便我可以更新我的项目的数量和价格


请帮我做这个。我做错什么了吗?请从您的XML提要中向我介绍这一点。您似乎正在尝试更新正在拍卖而不是固定价格的产品的价格和数量。以及链接[ReviesInventoryStatus][1]

[1] :还表示“允许卖家更改当前活动的固定价格列表的价格和数量”,因此我认为您不能使用此API调用更改拍卖产品的数量和价格

尝试使用ReviseItem调用

<?xml version="1.0" encoding="utf-8"?>
<ReviseItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>$auth_token</eBayAuthToken>
</RequesterCredentials>
<Item ComplexType="ItemType">
<ItemID>$itemid</ItemID>
<StartPrice currencyID="INR/GBP/USD/EUR3">2.00</StartPrice>
<Quantity>2</Quantity>
</Item>
<MessageID>1</MessageID>
<WarningLevel>High</WarningLevel>
<Version>837</Version>
</ReviseItemRequest>​

$auth_令牌
$itemid
2
2.
1.
高
837
​