fillup / walmart-partner-api-sdk-php

PHP client for Walmart Partner APIs
MIT License
37 stars 51 forks source link

Bulk Create Varient Group #42

Open shanijahania opened 7 years ago

shanijahania commented 7 years ago

Hi, I am new to walmart partner api. I am trying to create Variant items using api. I am trying to create a Clothing item with its variant attributes as shown in xml below but getting feed error

Input XML validation failed. Expected attribute not found which is followed by: 'clothing'. No child element is expected at this point.

Here is my xml looks like `

<MPItemFeedHeader>
  <version>2.1</version>
  <requestId>1486985303</requestId>
  <requestBatchId>1486985303</requestBatchId>
</MPItemFeedHeader>
<MPItem>
  <sku>MDR-CLIPON-BOYS-C62-11</sku>
  <Product>
    <productName>Moda Di Raza - Boy's NeckTie Solid Clip on Polyester Tie - Burgundy/11</productName>
    <longDescription>Our boy's solid clip on tie is a quick way to look stylish.</longDescription>
    <shelfDescription>Our boy's solid clip on tie is a quick way to look stylish.</shelfDescription>
    <shortDescription>Our boy's solid clip on tie is a quick way to look stylish.</shortDescription>
    <mainImage>
      <mainImageUrl/>
    </mainImage>
    <productIdentifiers>
      <productIdentifier>
        <productIdType>UPC</productIdType>
        <productId>614458946812</productId>
      </productIdentifier>
    </productIdentifiers>
    <productTaxCode>2038710</productTaxCode>
    <Home>
      <brand>Moda Di Raza</brand>
    </Home>
    <clothing>
      <variantGroupId>VP-MDR-CLIPON-BOYS</variantGroupId>
      <variantAttributeNames>
        <variantAttributeName>color</variantAttributeName>
      </variantAttributeNames>
      <color>
        <colorValue>Burgundy</colorValue>
      </color>
      <clothingSize>11 inch</clothingSize>
      <isPrimaryVariant>1</isPrimaryVariant>
    </clothing>
  </Product>
  <price>
    <currency>USD</currency>
    <amount>8.09</amount>
  </price>
  <shippingWeight>
    <value>0.1</value>
    <unit>LB</unit>
  </shippingWeight>
</MPItem>

`

Can anyone please help me resolving the issue. Thanks.

fillup commented 7 years ago

Can you provide more information with the error?