尝试在 Ebay 中发布列表时出现问题

问题描述 投票:0回答:1

关于 我正在尝试在 Ebay 交易 API 中发布列表。我们可以看到,这里的 Ebay API 文档提到了品牌信息:https://developer.ebay.com/devzone/xml/docs/Reference/eBay/AddItem.html#Input

但仍然给出以下错误。我是否遗漏了 XML 中的任何内容?

错误详情

缺少商品特定品牌。将品牌添加到此列表中,输入 有效值,然后重试。

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>
xml ebay-api listings
1个回答
0
投票

来自文档

“如果使用BrandMPN容器,则需要同时指定Brand和MPN,否则可能会出现错误。”

也就是说,产品必须同时具备品牌和MPN。这应该可以解决您的问题:

<Item>
    <BrandMPN>
        <Brand>Furhaven</Brand>
        <MPN>Some MPN</MPN>
    </BrandMPN>

    ...
© www.soinside.com 2019 - 2024. All rights reserved.