enableInventoryLocation
<p><strong>POST</strong> /location/{merchantLocationKey}/enable</p>
<p>此调用启用merchantLocationKeypath参数中指定的已禁用库存位置。启用已停用的广告资源位置后,卖家可以开始将广告资源加载/修改到该广告资源位置。</p>
<p>所述authorizationHTTP标头是该呼叫的唯一所需的请求报头。</p>
<p>成功调用将返回HTTP状态值200 OK。</p>
<h5>Input</h5>
<h6>Resource URI (production)</h6>
<p>POST <a href="https://api.ebay.com/sell/inventory/v1/location/{merchantLocationKey}/enable">https://api.ebay.com/sell/inventory/v1/location/{merchantLocationKey}/enable</a></p>
<h6>URI parameters</h6>
<table>
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>merchantLocationKey</td>
<td>string</td>
<td>商品定义的唯一商品密钥(ID),用于库存位置。此唯一标识符或密钥在其他Inventory API调用中用于标识库存位置。最大长度:36 发生:必需</td>
</tr>
</tbody>
</table>
<h6>HTTP请求标头</h6>
<p>对eBay REST操作发出的所有请求都要求您提供授权 HTTP标头以进行身份验证授权。
此外,此方法要求您包含Content-Type标头,其值应设置为“ application / json ”。请参阅<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>eBayUser</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>
<h5>Output</h5>
<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>
<h6>HTTP status codes</h6>
<p>此调用可以返回以下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>204</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>
<h3>错误代码</h3>
<table>
<thead>
<tr>
<th>有关错误的更多信息以及其他常见错误的代码,请参阅<a href="https://developer.ebay.com/api-docs/static/handling-error-messages.html" title="处理错误">处理错误</a>。</th>
<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>25802</td>
<td>API_INVENTORY</td>
<td>请求</td>
<td>输入错误。{附加信息}</td>
</tr>
<tr>
<td>25804</td>
<td>API_INVENTORY</td>
<td>请求</td>
<td>输入错误。{附加信息}</td>
</tr>
<tr>
<td>25805</td>
<td>API_INVENTORY</td>
<td>请求</td>
<td>{fieldName}未找到。</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>此示例启用先前已禁用的现有库存位置。</p>
<h6>Input</h6>
<p>使用库存位置的merchantLocationKey值指定要启用的位置。
<strong>POST</strong>
<a href="https://api.ebay.com/sell/inventory/v1/location/warehouse-1/enable">https://api.ebay.com/sell/inventory/v1/location/warehouse-1/enable</a></p>
<h6>Output</h6>
<p>如果调用成功,则返回HTTP状态代码200和空响应有效负载。</p>
<pre><code>If successful, this operation returns an HTTP status code of "200 OK", with an empty payload.</code></pre>