使用 XML管理亞馬遜商品教程2——庫存上傳數(shù)據(jù)
庫存上傳數(shù)據(jù)使您能夠更新商品的庫存數(shù)量(庫存水平)。
對于您僅在 Amazon.com 出售的每件商品,請?zhí)峤荒?dāng)前有貨的確切數(shù)量。如果您采用多種銷售渠道,我們建議:一旦您的可用庫存達(dá)到您指定的水平,請配置您的系統(tǒng)已發(fā)送數(shù)量為零的值。當(dāng)數(shù)量大于零時(shí),購買按鈕被激活,每個(gè)訂單的數(shù)量呈遞減狀態(tài)。當(dāng)數(shù)量達(dá)到零時(shí),除非您發(fā)送補(bǔ)貨值,否則該商品在 Amazon.com 上不能購買。
通過指定“配送延遲”的值,庫存上傳數(shù)據(jù)也可以用來表明配送給定商品的交付周期。如果未發(fā)送值,將使用兩個(gè)工作日這一默認(rèn)值。
元素 | 描述 |
SKU | 用來識別每一件單獨(dú)商品。每件商品必須有一個(gè) SKU,并且每個(gè) SKU 必須是唯一的。 |
FulfillmentCenterID | 賣家為運(yùn)營中心定義的編碼(亞馬遜不使用) |
空閑 | 指明該商品是否有貨("true" 表示有貨;"false" 表示無貨) |
數(shù)量 | 指明該商品是否有貨(正數(shù)表示有貨;零表示無貨)。每次提交一件商品的數(shù)量,現(xiàn)有數(shù)量會(huì)被上傳數(shù)據(jù)中新的數(shù)量所代替。 |
補(bǔ)貨日期 | 為商品補(bǔ)貨的日期(如果目前不可用) |
配送延遲 | 訂單日期和配送日期之間的天數(shù) |
切換運(yùn)送方式 | 僅當(dāng)將商品的配送從 MFN(賣家自行配送)切換到 AFN()時(shí)使用,反之亦然 |
<?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>
如果您參與了“亞馬遜配送”計(jì)劃,您可以通過將“運(yùn)營中心編號”替換為當(dāng)?shù)亍爸行摹保褂谩皫齑嫔蟼鲾?shù)據(jù)”將商品由“賣家自行配送”(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>配送網(wǎng)絡(luò)</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>
點(diǎn)擊咨詢現(xiàn)在有哪些新興平臺值得關(guān)注 >>>
特別聲明:以上文章內(nèi)容僅代表作者本人觀點(diǎn),不代表ESG跨境電商觀點(diǎn)或立場。如有關(guān)于作品內(nèi)容、版權(quán)或其它問題請于作品發(fā)表后的30日內(nèi)與ESG跨境電商聯(lián)系。
二維碼加載中...
使用微信掃一掃登錄
使用賬號密碼登錄
平臺顧問
微信掃一掃
馬上聯(lián)系在線顧問
小程序
ESG跨境小程序
手機(jī)入駐更便捷
返回頂部