使用 XML管理亞馬遜商品教程2——庫存上傳數據
庫存上傳數據使您能夠更新商品的庫存數量(庫存水平)。
對于您僅在 Amazon.com 出售的每件商品,請提交您當前有貨的確切數量。如果您采用多種銷售渠道,我們建議:一旦您的可用庫存達到您指定的水平,請配置您的系統已發送數量為零的值。當數量大于零時,購買按鈕被激活,每個訂單的數量呈遞減狀態。當數量達到零時,除非您發送補貨值,否則該商品在 Amazon.com 上不能購買。
通過指定“配送延遲”的值,庫存上傳數據也可以用來表明配送給定商品的交付周期。如果未發送值,將使用兩個工作日這一默認值。
元素 | 描述 |
SKU | 用來識別每一件單獨商品。每件商品必須有一個 SKU,并且每個 SKU 必須是唯一的。 |
FulfillmentCenterID | 賣家為運營中心定義的編碼(亞馬遜不使用) |
空閑 | 指明該商品是否有貨("true" 表示有貨;"false" 表示無貨) |
數量 | 指明該商品是否有貨(正數表示有貨;零表示無貨)。每次提交一件商品的數量,現有數量會被上傳數據中新的數量所代替。 |
補貨日期 | 為商品補貨的日期(如果目前不可用) |
配送延遲 | 訂單日期和配送日期之間的天數 |
切換運送方式 | 僅當將商品的配送從 MFN(賣家自行配送)切換到 AFN()時使用,反之亦然 |
<?xml version="1.0" ?>
<!- Revision="$Revision: #3 $"
-->
<xsd:schema elementFormDefault="qualified">
<xsd:include schemaLocation="amzn-base.xsd" />
<xsd:element name="Inventory">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="SKU" />
<xsd:element ref="FulfillmentCenterID" minOccurs="0" />
<xsd:choice>
<xsd:element name="Available" type="xsd:boolean" />
<xsd:element name="Quantity" type="xsd:nonNegativeInteger" />
<xsd:element name="Lookup">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="FulfillmentNetwork" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:choice>
<xsd:element name="RestockDate" type="xsd:date" minOccurs="0" />
<xsd:element name="FulfillmentLatency" type="xsd:positiveInteger" minOccurs="0" />
<xsd:element name="SwitchFulfillmentTo" minOccurs="0">
<!-
如果您要更換商品的配送方法,
請使用該元素。
如果您是從 AFN 切換到 MFN,請使用 "MFN"
如果您是從 MFN 切換到 AFN,請使用 "MFN"
-->
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="MFN" />
<xsd:enumeration value="AFN" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>M_SELLER_354577</MerchantIdentifier>
</Header>
<MessageType>庫存</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>更新</OperationType>
<Inventory>
<SKU>ASUSVNA1</SKU>
<Quantity>8</Quantity>
<FulfillmentLatency>1</FulfillmentLatency>
</Inventory>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>更新</OperationType>
<Inventory>
<SKU>ASUS8VM</SKU>
<Quantity>6</Quantity>
<FulfillmentLatency>1</FulfillmentLatency>
</Inventory>
</Message>
</AmazonEnvelope>
如果您參與了“亞馬遜配送”計劃,您可以通過將“運營中心編號”替換為當地“中心”,使用“庫存上傳數據”將商品由“賣家自行配送”(MFN) 切換到“”(AFN),反之亦然。
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>M_tokenhere_12345</MerchantIdentifier>
</Header>
<MessageType>庫存</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>更新</OperationType>
<Inventory>
<SKU>2000578900007 </SKU>
<FulfillmentCenterID>AMAZON_NA</FulfillmentCenterID>
<Lookup>配送網絡</Lookup>
<SwitchFulfillmentTo>AFN</SwitchFulfillmentTo>
</Inventory>
</Message>
</AmazonEnvelope>
Update Quantity Available - Inventory Feed Schema
Description
The Inventory feed allows you to update inventory quantities (stock levels) for your items.
For each item you offer only on Amazon, send the exact number you currently have in stock. If you use multiple sales channels, we recommend configuring your systems to send a value of zero once your available inventory reaches a level you specify. When the quantity is greater than zero, the buy button is activated and the quantity is decremented with each order. When the quantity reaches zero, the item is no longer available for purchase on Amazon until you send a replenishment value.
The inventory feed can also be used to indicate the lead time to ship a given item by specifying a value for FulfillmentLatency. If no value is sent, the default value of two business days is used.
Dictionary
Element Description SKU Used to identify an individual product. Each product must have a SKU, and each SKU must be unique. FulfillmentCenterID Seller-defined identifier for a fulfillment center (not used by Amazon) Available Indicates whether or not the item is available (true = available; false = not available) Note: This element can be used instead of the "Quantity" element below.
Quantity Indicates whether or not an item is available (any positive number = available; 0 = not available). Every time a quantity is sent for an item, the existing quantity is replaced by the new quantity in the feed. Note: This element can be used instead of the "Available" element above.
RestockDate Date the item will be restocked, if not currently available FulfillmentLatency The number of days between the order date and the ship date SwitchFulfillmentTo Used only when switching the fulfillment of an item from MFN (merchant fulfilled) to AFN (Amazon fulfilled) or vice versa Note: Use of AFN requires enrollment in the Fulfillment by Amazon program.
XSD
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/Inventory.xsd
<?xml version="1.0" ?><!- Revision="$Revision: #3 $" --><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xsd:include schemaLocation="amzn-base.xsd" /><xsd:element name="Inventory"><xsd:complexType><xsd:sequence> <xsd:element ref="SKU" /> <xsd:element ref="FulfillmentCenterID" minOccurs="0" /><xsd:choice> <xsd:element name="Available" type="xsd:boolean" /> <xsd:element name="Quantity" type="xsd:nonNegativeInteger" /><xsd:element name="Lookup"><xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:enumeration value="FulfillmentNetwork" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:choice> <xsd:element name="RestockDate" type="xsd:date" minOccurs="0" /> <xsd:element name="FulfillmentLatency" type="xsd:positiveInteger" minOccurs="0" /><xsd:element name="SwitchFulfillmentTo" minOccurs="0"><!- Use this element if you are switching the fulfillment method for your item. If you are switching from AFN to MFN, use "MFN" If you are switching from MFN to AFN, use "AFN" --><xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:enumeration value="MFN" /> <xsd:enumeration value="AFN" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
Example
<?xml version="1.0" encoding="utf-8" ?><AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"><Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier>M_SELLER_354577</MerchantIdentifier> </Header> <MessageType>Inventory</MessageType><Message> <MessageID>1</MessageID> <OperationType>Update</OperationType><Inventory> <SKU>ASUSVNA1</SKU> <Quantity>8</Quantity> <FulfillmentLatency>1</FulfillmentLatency> </Inventory> </Message><Message> <MessageID>2</MessageID> <OperationType>Update</OperationType><Inventory> <SKU>ASUS8VM</SKU> <Quantity>6</Quantity> <FulfillmentLatency>1</FulfillmentLatency> </Inventory> </Message></AmazonEnvelope>
If you participate in the Fulfillment by Amazon program, you can use the Inventory Feed to switch a product from "Fulfilled by Merchant" (MFN) to "Fulfilled by Amazon" (AFN) and vice versa, by replacing the FulfillmentCenterID with the fulfillment center for your locale.
Example: Switching a product to "Fulfilled by Amazon" (AFN)
<?xml version="1.0" encoding="UTF-8"?><AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> <Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier>M_tokenhere_12345</MerchantIdentifier> </Header> <MessageType>Inventory</MessageType> <Message> <MessageID>1</MessageID> <OperationType>Update</OperationType> <Inventory> <SKU>2000578900007</SKU> <FulfillmentCenterID>AMAZON_NA</FulfillmentCenterID> <Lookup>FulfillmentNetwork</Lookup> <SwitchFulfillmentTo>AFN</SwitchFulfillmentTo> </Inventory> </Message></AmazonEnvelope>
特別聲明:以上文章內容僅代表作者本人觀點,不代表ESG跨境電商觀點或立場。如有關于作品內容、版權或其它問題請于作品發表后的30日內與ESG跨境電商聯系。
二維碼加載中...
使用微信掃一掃登錄
使用賬號密碼登錄
平臺顧問
微信掃一掃
馬上聯系在線顧問
小程序
ESG跨境小程序
手機入駐更便捷
返回頂部