skip to Main Content

About
I am trying to post Listing in Ebay Trading API. As we can see that there is brand info mentioned as per the Ebay API documentation here: https://developer.ebay.com/devzone/xml/docs/Reference/eBay/AddItem.html#Input

but still it gives below error. Am I missing anything in the XML?

Error details

The item specific Brand is missing. Add Brand to this listing, enter a
valid value, and then try again.

XML

<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials>
        <eBayAuthToken>authToken</eBayAuthToken>
    </RequesterCredentials>
    <Item>
        <Brand>Furhaven</Brand>
        <BuyerProtection>ItemIneligible</BuyerProtection>
        <ConditionID>1000</ConditionID>
        <Title>Apple iPhone 12 Pro Max 256GB Pacific Blue Unlocked - Excellent Condition</Title>
        <Description>This listing is for a gently used Apple iPhone 12 Pro Max in the Pacific Blue color variant. The phone is unlocked and has a storage capacity of 256GB, providing ample space for your apps, photos, and videos.The phone has been well-maintained and is in excellent condition with minimal signs of wear. It has been tested and verified to be fully functional. The screen is free of scratches or cracks, and the body of the phone may have minor cosmetic imperfections consistent with normal use.Included with the phone are the original box and accessories, including the charging cable and adapter. The phone will be securely packaged for shipping.</Description>
        <PictureDetails>
            <GalleryType>Gallery</GalleryType>
            <PhotoDisplay>PicturePack</PhotoDisplay>
            <PictureURL>https://www.pexels.com/photo/bridge-near-waterfall-358457/</PictureURL>
            <ExternalPictureURL>https://www.pexels.com/photo/bridge-near-waterfall-358457/</ExternalPictureURL>
        </PictureDetails>
        <ReturnPolicy>
            <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
            <RefundOption>MoneyBack</RefundOption>
            <ReturnsWithinOption>Days_30</ReturnsWithinOption>
            <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
        </ReturnPolicy>
        <PostalCode>33181</PostalCode>
        <ShippingDetails>
            <CalculatedShippingRate>
                <OriginatingPostalCode>33181</OriginatingPostalCode>
                <PackagingHandlingCosts currencyID="USD">0.0</PackagingHandlingCosts>
            </CalculatedShippingRate>
            <ShippingServiceOptions>
                <ShippingService>UPSGround</ShippingService>
                <ShippingServicePriority>2</ShippingServicePriority>
            </ShippingServiceOptions>
        </ShippingDetails>
        <ProductListingDetails>
            <BrandMPN>
                <Brand>iPhone 12 Pro Max</Brand>
                <MPN>MGDC3LL/A</MPN>
            </BrandMPN>
            <IncludeeBayProductDetails>true</IncludeeBayProductDetails>
        </ProductListingDetails>
        <ShippingPackageDetails>
            <ShippingPackage>USPSLargePack</ShippingPackage>
            <WeightMajor unit="lbs">6</WeightMajor>
            <WeightMinor unit="oz">0</WeightMinor>
        </ShippingPackageDetails>
        <Location>San Jose</Location>
        <PrimaryCategory>
            <CategoryID>137865</CategoryID>
        </PrimaryCategory>
        <StartPrice>10.00</StartPrice>
        <Currency>USD</Currency>
        <Country>US</Country>
        <DispatchTimeMax>3</DispatchTimeMax>
        <ListingDuration>Days_7</ListingDuration>
    </Item>
</AddItemRequest>

Updated XML

<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest
    xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials>
        <eBayAuthToken>authToken</eBayAuthToken>
    </RequesterCredentials>
    <Item>
        <BrandMPN>
            <Brand>iPhone 12 Pro Max</Brand>
            <MPN>MGDC3LL/A</MPN>
        </BrandMPN>
        <Brand>iPhone 12 Pro Max</Brand>
        <BuyerProtection>ItemIneligible</BuyerProtection>
        <ConditionID>1000</ConditionID>
        <Title>Apple iPhone 12 Pro Max 256GB Pacific Blue Unlocked - Excellent Condition</Title>
        <Description>This listing is for a gently used Apple iPhone 12 Pro Max in the Pacific Blue color variant. The phone is unlocked and has a storage capacity of 256GB, providing ample space for your apps, photos, and videos.The phone has been well-maintained and is in excellent condition with minimal signs of wear. It has been tested and verified to be fully functional. The screen is free of scratches or cracks, and the body of the phone may have minor cosmetic imperfections consistent with normal use.Included with the phone are the original box and accessories, including the charging cable and adapter. The phone will be securely packaged for shipping.</Description>
        <PictureDetails>
            <GalleryType>Gallery</GalleryType>
            <PhotoDisplay>PicturePack</PhotoDisplay>
            <PictureURL>https://www.pexels.com/photo/bridge-near-waterfall-358457/</PictureURL>
            <ExternalPictureURL>https://www.pexels.com/photo/bridge-near-waterfall-358457/</ExternalPictureURL>
        </PictureDetails>
        <ReturnPolicy>
            <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
            <RefundOption>MoneyBack</RefundOption>
            <ReturnsWithinOption>Days_30</ReturnsWithinOption>
            <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
        </ReturnPolicy>
        <PostalCode>33181</PostalCode>
        <ShippingDetails>
            <CalculatedShippingRate>
                <OriginatingPostalCode>33181</OriginatingPostalCode>
                <PackagingHandlingCosts currencyID="USD">0.0</PackagingHandlingCosts>
            </CalculatedShippingRate>
            <ShippingServiceOptions>
                <ShippingService>UPSGround</ShippingService>
                <ShippingServicePriority>2</ShippingServicePriority>
            </ShippingServiceOptions>
        </ShippingDetails>
        <ProductListingDetails>
            <BrandMPN>
                <Brand>iPhone 12 Pro Max</Brand>
                <MPN>MGDC3LL/A</MPN>
            </BrandMPN>
            <IncludeeBayProductDetails>true</IncludeeBayProductDetails>
        </ProductListingDetails>
        <ShippingPackageDetails>
            <ShippingPackage>USPSLargePack</ShippingPackage>
            <WeightMajor unit="lbs">6</WeightMajor>
            <WeightMinor unit="oz">0</WeightMinor>
        </ShippingPackageDetails>
        <Location>San Jose</Location>
        <PrimaryCategory>
            <CategoryID>137865</CategoryID>
        </PrimaryCategory>
        <StartPrice>10.00</StartPrice>
        <Currency>USD</Currency>
        <Country>US</Country>
        <DispatchTimeMax>3</DispatchTimeMax>
        <ListingDuration>Days_7</ListingDuration>
    </Item>
</AddItemRequest>

Error Details

<Errors>
    <ShortMessage>The item specific Brand is missing.</ShortMessage>
    <LongMessage>The item specific Brand is missing. Add Brand to this listing, enter a valid value, and then try again.</LongMessage>
    <ErrorCode>21919303</ErrorCode>
    <SeverityCode>Error</SeverityCode>
    <ErrorParameters ParamID="0">
        <Value>The item specific Brand is missing.</Value>
    </ErrorParameters>
    <ErrorParameters ParamID="1">
        <Value>The item specific Brand is missing. Add Brand to this listing, enter a valid value, and then try again.</Value>
    </ErrorParameters>
    <ErrorParameters ParamID="2">
        <Value>Brand</Value>
    </ErrorParameters>
    <ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>1353
</Vers

2

Answers


  1. From the docs:

    "Both Brand and MPN should be specified if the BrandMPN container is used, or an error may occur."

    In other words, the product must have both the brand and MPN. This should fix your problem:

    <Item>
        <BrandMPN>
            <Brand>Furhaven</Brand>
            <MPN>Some MPN</MPN>
        </BrandMPN>
    
        ...
    
    Login or Signup to reply.
  2. The item specific Brand is missing

    I do see "ItemSpecifics" in the documentation

    So eBay might expect item specifics, like the brand, to be tucked inside that specific part of the XML <ItemSpecifics>:

    <?xml version="1.0" encoding="utf-8"?>
    <AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
      ...
      <Item>
        ...
        <ItemSpecifics>
          <NameValueList>
            <Name>Brand</Name>
            <Value>iPhone 12 Pro Max</Value>
          </NameValueList>
        </ItemSpecifics>
        ...
      </Item>
    </AddItemRequest>
    

    By wrapping your brand info inside <ItemSpecifics> and <NameValueList>, eBay should know exactly where to find the brand name you are trying to add.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search