Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue while trying to post listing in Ebay

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>My Token</eBayAuthToken>
    </RequesterCredentials>
    <Item>
        <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>MGDC3LLA</MPN>
            </BrandMPN>
            <Brand>iPhone 12 Pro Max</Brand>
            <IncludeeBayProductDetails>false</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>
        <ItemSpecifics>
            <NameValueList>
                <Name>iPhone 12 Pro Max</Name>
                <Value>MGDC3LLA</Value>
            </NameValueList>
        </ItemSpecifics>
    </Item>
</AddItemRequest>

Error Details

<?xml version="1.0" encoding="UTF-8"?>
<AddItemResponse
    xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2024-04-02T19:44:39.536Z</Timestamp>
    <Ack>Failure</Ack>
    <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</Version>
    <Build>E1353_UNI_API5_19110890_R1</Build>
</AddItemResponse>
like image 684
Pankaj Avatar asked Nov 30 '25 16:11

Pankaj


1 Answers

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.

Edit:

The brand might need to be Apple. Try this:

<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest
    xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials>
        <eBayAuthToken>My Token</eBayAuthToken>
    </RequesterCredentials>
    <Item>
        <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>Apple</Brand>
                <MPN>MGDC3LLA</MPN>
            </BrandMPN>
            <IncludeeBayProductDetails>false</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>
like image 161
Lord Elrond Avatar answered Dec 03 '25 08:12

Lord Elrond



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!