2016-08-23 9 views
1

이 feed.xml 파일을 사용하여 Amazon에 내 제품을 성공적으로 업로드 할 수 있습니다.Amazon MWS 제품 피드 (관계 포함)

:

<?xml version="1.0" encoding="iso-8859-1"?> 
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> 
    <Header> 
    <DocumentVersion>1.01</DocumentVersion> 
    <MerchantIdentifier>MERCHANTID</MerchantIdentifier> 
    </Header> 
    <MessageType>Product</MessageType> 
    <PurgeAndReplace>false</PurgeAndReplace> 
    <Message> 
    <MessageID>1</MessageID> 
    <OperationType>Update</OperationType> 
    <Product> 
     <SKU>56791</SKU> 
     <StandardProductID> 
     <Type>UPC</Type> 
     <Value>1234567890</Value> 
     </StandardProductID> 
     <Condition> 
     <ConditionType>New</ConditionType> 
     </Condition> 
     <DescriptionData> 
     <Title>Yougurt Covered Raisins 300</Title> 
     <Brand>Valued Naturals</Brand> 
     <Description>Quality you can see and taste</Description> 
     <BulletPoint>Contains milk and soy</BulletPoint> 
     <BulletPoint>Gluten Free</BulletPoint> 
     <BulletPoint>Kosher</BulletPoint> 
     <Manufacturer>IFood</Manufacturer> 
     <ItemType>raisins</ItemType> 
     </DescriptionData> 
     <ProductData> 
     <FoodAndBeverages> 
      <ProductType> 
      <Food> 
       <VariationData> 
         <Parentage>parent</Parentage> 
         <VariationTheme>Size</VariationTheme> 
         <Size>100</Size> 
        </VariationData> 
       <UnitCount unitOfMeasure="GR">396</UnitCount> 
      </Food> 
      </ProductType> 
     </FoodAndBeverages> 
     </ProductData> 
    </Product> 
    </Message> 

<Message> 
    <MessageID>2</MessageID> 
    <OperationType>Update</OperationType> 
    <Product> 
     <SKU>56791-300</SKU> 
     <StandardProductID> 
     <Type>UPC</Type> 
     <Value>1234567890</Value> 
     </StandardProductID> 
     <Condition> 
      <ConditionType>New</ConditionType> 
     </Condition> 
     <DescriptionData> 
     <Title>Yougurt Covered Raisins 300gr</Title> 
     <Brand>Valued Naturals</Brand> 
     <Description>Quality you can see and taste</Description> 
     <BulletPoint>Contains milk and soy</BulletPoint> 
     <BulletPoint>Gluten Free</BulletPoint> 
     <BulletPoint>Kosher</BulletPoint> 
     <Manufacturer>IFood</Manufacturer> 
     <ItemType>raisins</ItemType> 
     </DescriptionData> 
     <ProductData> 
     <FoodAndBeverages> 
      <ProductType> 
      <Food> 
       <VariationData> 
       <Parentage>child</Parentage> 
       <VariationTheme>Size</VariationTheme> 
       <Size>100</Size> 
       </VariationData> 
       <UnitCount unitOfMeasure="GR">396</UnitCount> 
      </Food> 
      </ProductType> 
     </FoodAndBeverages> 
     </ProductData> 
    </Product> 
    </Message> 
    <Message> 
    <MessageID>3</MessageID> 
    <OperationType>Update</OperationType> 
    <Product> 
     <SKU>56791-100</SKU> 
     <StandardProductID> 
     <Type>UPC</Type> 
     <Value>1234567890</Value> 
     </StandardProductID> 
     <Condition> 
      <ConditionType>New</ConditionType> 
     </Condition> 
     <DescriptionData> 
     <Title>Yougurt Covered Raisins 100gr</Title> 
     <Brand>Valued Naturals</Brand> 
     <Description>Quality you can see and taste</Description> 
     <BulletPoint>Contains milk and soy</BulletPoint> 
     <BulletPoint>Gluten Free</BulletPoint> 
     <BulletPoint>Kosher</BulletPoint> 
     <Manufacturer>IFood</Manufacturer> 
      <ItemType>raisins</ItemType> 
     </DescriptionData> 
     <ProductData> 
     <FoodAndBeverages> 
      <ProductType> 
      <Food> 
       <VariationData> 
        <Parentage>child</Parentage> 
        <VariationTheme>Size</VariationTheme> 
        <Size>100</Size> 
        </VariationData> 
       <UnitCount unitOfMeasure="GR">100</UnitCount> 
      </Food> 
      </ProductType> 
     </FoodAndBeverages> 
     </ProductData> 
    </Product> 
    </Message> 
</AmazonEnvelope> 

아마존에서 성공 메시지 후 I는 다음과 같습니다 첫 번째 제품의 자식으로 두 번째와 세 번째 제품을 설정하기 위해 제품 간의 관계를 정의하기 위해 요청을 게시했다

<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> 
    <Header> 
    <DocumentVersion>1.01</DocumentVersion> 
    <MerchantIdentifier>MYMERCHANTID</MerchantIdentifier> 
    </Header> 
    <MessageType>Relationship</MessageType> 
    <PurgeAndReplace>false</PurgeAndReplace> 

    <Message> 
    <MessageID>1</MessageID> 
    <OperationType>Update</OperationType> 
    <Relationship> 
     <ParentSKU>56791</ParentSKU> 
     <Relation> 
     <SKU>56791-300</SKU> 
     <Type>Variation</Type> 
     </Relation> 
     <Relation> 
     <SKU>56791-100</SKU> 
     <Type>Variation</Type> 
     </Relation> 
    </Relationship> 
    </Message> 
</AmazonEnvelope> 

예를 들어 첫 번째 feed.xml 파일에 여분의 데이터를 배치하는 것과 같이 이러한 모든 부모 - 자식 관계를 단일 요청 내에서 정의 할 수 있는지 궁금합니다.

답변

2

슬프게도 할 수 없습니다. MessageType은 AmazonEnvelope 내에서 고유해야합니다. 봉투 중 하나는 Product 유형이고 다른 하나는 Relatonship 유형입니다.

관련 문제