deleteOffer
<h1>deleteOffer</h1>
<p><strong>DELETE</strong> /offer/{offerId}</p>
<p>如果用于未发布的优惠,此呼叫将永久删除该优惠。如果是已发布的优惠(或eBay直播列表),则成功通话将结束与优惠相关联的单一变体列表,或者将从eBay列表中删除该产品差异,并自动从该产品中删除该产品变体。库存项目组。对于多变量列表,如果该变体具有一个或多个销售额,则deleteOffer不会从列表中删除产品变体。如果该产品变体具有一个或多个销售额,则卖方可以交 替地将该产品变体的可用数量设置为0,因此在易趣搜索或查看项目页面中不可用,然后卖家可以在以后从库存项目组中删除该产品变体。</p>
<h6>Input</h6>
<h6>Resource URI (production)</h6>
<p><strong>DELETE</strong> <a href="https://api.ebay.com/sell/inventory/v1/offer/{offerId">https://api.ebay.com/sell/inventory/v1/offer/{offerId</a>}</p>
<h6>URI parameters</h6>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>offerId</td>
<td>string</td>
<td>要删除的商品的唯一标识符。商品(offerId)的唯一标识符在调用URI的末尾传递。发生:必需</td>
</tr>
</tbody>
</table>
<h5>HTTP请求标头</h5>
<p>对eBay REST操作发出的所有请求都要求您提供授权 HTTP标头以进行身份验证授权。
此方法具有下面列出的其他请求标头要求。请参阅<a href="http://developer.ebay.com/devzone/rest/ebay-rest/content/rest-request-components.html#HTTP" title="HTTP请求标头">HTTP请求标头</a>- 打开其余请求组件页面以获取详细信息</p>
<h6>OAuth范围</h6>
<p>此请求需要使用<a href="https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html" title="授权代码授权">授权代码授权</a>流创建的访问令牌,使用以下列表中的一个范围:</p>
<p><a href="https://api.ebay.com/oauth/api_scope/sell.inventory">https://api.ebay.com/oauth/api_scope/sell.inventory</a></p>
<p>有关详细信息,请参阅<a href="https://developer.ebay.com/api-docs/static/oauth-tokens.html" title="OAuth访问令牌">OAuth访问令牌</a>。</p>
<h6>Request payload</h6>
<p>This call has no payload.</p>
<h6>Request fields</h6>
<p>This call has no field definitions.</p>
<h6>Output</h6>
<h6>HTTP response headers</h6>
<p>This call has no response headers.</p>
<h6>Response payload</h6>
<p>This call has no payload.</p>
<h6>Response fields</h6>
<p>This call has no field definitions.</p>
<p><strong>HTTP状态代码</strong>
此调用可以返回以下HTTP状态代码之一。状态代码的概述,请参阅<a href="https://developer.ebay.com/api-docs/static/rest-response-components.html#HTTP" title="HTTP状态代码">HTTP状态代码</a>在使用eBay RESTful API中。</p>
<table>
<thead>
<tr>
<th>状态码</th>
<th>含义</th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>成功</td>
</tr>
<tr>
<td>400</td>
<td>错误的请求</td>
</tr>
<tr>
<td>404</td>
<td>未找到资源</td>
</tr>
<tr>
<td>500</td>
<td>内部服务器错误</td>
</tr>
</tbody>
</table>
<p><strong>错误代码</strong>
有关错误的更多信息以及其他常见错误的代码,请参阅<a href="https://developer.ebay.com/api-docs/static/handling-error-messages.html" title="处理错误">处理错误</a>。</p>
<table>
<thead>
<tr>
<th>状态码</th>
<th>域</th>
<th>类别</th>
<th>含义</th>
</tr>
</thead>
<tbody>
<tr>
<td>25001</td>
<td>API_INVENTORY</td>
<td>应用</td>
<td>发生了系统错误。{附加信息}</td>
</tr>
<tr>
<td>25713</td>
<td>API_INVENTORY</td>
<td>请求</td>
<td>该提供不可用</td>
</tr>
</tbody>
</table>
<h6>示例</h6>
<p>新的API调用?请参阅<a href="https://developer.ebay.com/api-docs/static/make-a-call.html" title="拨打电话">拨打电话</a>。</p>
<p>注意:这些样本中的标识符(例如订单ID或用户ID)和个人数据可能是匿名的,或者在eBay上可能不再有效。如有必要,请在您的请求中替换当前相关的eBay数据。</p>
<h6>示例1:删除提供</h6>
<p>此通话将删除与卖家账户相关的特定已发布或未发布的报价。对于已发布的offer,成功通话将实际删除该offer并结束相关的易趣列表。</p>
<h6>Input</h6>
<p>与删除提议相关联 的offerId值被输入到调用URI的末尾。在这种情况下,商品的offerId值是3455632452345。</p>
<p><strong>DELETE</strong>
<a href="https://api.ebay.com/sell/inventory/v1/offer/3455632452345">https://api.ebay.com/sell/inventory/v1/offer/3455632452345</a></p>
<h6>Output</h6>
<p>此响应没有输出有效负载。成功的呼叫响应HTTP状态代码:
204 No Content。</p>