question

md-teile avatar image
0 Likes"
md-teile asked

Java - AddFixedPriceItem - Adding KTypes issue

Hi, I get this issue when I try to add ktypes to my request

<?xml version="1.0" encoding="UTF-8"?>
<AddFixedPriceItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2021-11-04T17:20:41.346Z</Timestamp>
<Ack>Failure</Ack>
<Errors><ShortMessage>
All compatibilities invalid.</ShortMessage>
<LongMessage>All compatibilities are invalid, Item not listed.</LongMessage>
<ErrorCode>21917122</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Errors><ShortMessage>
Invalid compatibility combination(s).</ShortMessage>
<LongMessage>One or more compatibility combinations are invalid. Name, value, or name-value pair are not recognized. &lt;Invalid&gt;[27959]&lt;/Invalid&gt;</LongMessage>
<ErrorCode>21916724</ErrorCode>
<SeverityCode>Warning</SeverityCode>
<ErrorParameters ParamID="0"><Value>
&lt;Invalid&gt;[27959]&lt;/Invalid&gt;</Value>
</ErrorParameters>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>1229</Version>
<Build>E1229_UNI_API5_19110890_R1</Build>
<HardExpirationWarning>2021-11-05 00:30:33</HardExpirationWarning>
</AddFixedPriceItemResponse>


This is what my request looks like:

String xml = "?xml version=\"1.0\" encoding=\"utf-8\"?>"+
"<AddFixedPriceItemRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">"+
"<RequesterCredentials>"+
"<eBayAuthToken>"+ clientAccessToken +"</eBayAuthToken>"+
"</RequesterCredentials>"+
"<ErrorLanguage>en_US</ErrorLanguage>"+
"<WarningLevel>High</WarningLevel>"+
"<Item>"+
"<Title>" + articleController.getExportTitle(article) + "</Title>"+
"<Description> <![CDATA["+ articleController.getDewabitExportDescription(article) +"]]> </Description>"+
"<PrimaryCategory>"+
"<CategoryID>"+ articleController.getDewabitExportCategory2(article) +"</CategoryID>"+
"</PrimaryCategory>"+
"<StartPrice>"+ getExportPrice(article) +"</StartPrice>"+
"<VATDetails> VATDetailsType"+
"<VATPercent>"+ Main.company.getMwSt() +"</VATPercent>"+
"</VATDetails>"+
"<ConditionID>"+ articleController.getDewabitExportCondition(article) +"</ConditionID>"+
"<ConditionDescription>"+ articleController.getExportConditionDescription(article) +"</ConditionDescription>"+
"<Country>DE</Country>"+
"<Currency>EUR</Currency>"+
"<DispatchTimeMax>1</DispatchTimeMax>"+
"<eBayPlus>true</eBayPlus>"+
"<ListingDuration>GTC</ListingDuration>"+
"<ListingType>FixedPriceItem</ListingType>"+
"<Location>"+ Main.company.getCity() +"</Location>"+
"<PostalCode>"+ Main.company.getPostcode() +"</PostalCode>";
xml = xml.concat("<PictureDetails>");
xml = xml.concat( getExportPictures(article) );
xml = xml.concat("</PictureDetails>"+
"<ProductListingDetails>"+
//"<UPC>885909298594</UPC>"+
"<IncludeStockPhotoURL>true</IncludeStockPhotoURL>"+
"<IncludeeBayProductDetails>true</IncludeeBayProductDetails>"+
"<UseFirstProduct>true</UseFirstProduct>"+
"<ReturnSearchResultOnDuplicates>true</ReturnSearchResultOnDuplicates>"+
"</ProductListingDetails>");
xml = xml.concat("<ItemSpecifics>");
xml = xml.concat( article.getFormattedOE3() );
xml = xml.concat( getExportManufacturer(article) );
xml = xml.concat( getExportPulleyInformations(article) );
xml = xml.concat( getExportVolt(article) );
xml = xml.concat("</ItemSpecifics>"+
"<Quantity>2</Quantity>"+

"<ItemCompatibilityList>"+
"<Compatibility>"+
"<NameValueList>"+
"<Name>KType</Name>"+
"<Value>27959</Value>"+
"</NameValueList>"+
"<CompatibilityNotes>Relation Per Car</CompatibilityNotes>"+
"</Compatibility>"+
"</ItemCompatibilityList>"+

"<SellerProfiles> SellerProfilesType"+
"<SellerPaymentProfile> SellerPaymentProfileType"+
//"<PaymentProfileID> long </PaymentProfileID>"+
"<PaymentProfileName> eBay-Zahlungsabwicklung </PaymentProfileName>"+
"</SellerPaymentProfile>"+
"<SellerReturnProfile> SellerReturnProfileType"+
//"<ReturnProfileID> long </ReturnProfileID>"+
"<ReturnProfileName> ReturnStandardPolicy </ReturnProfileName>"+
"</SellerReturnProfile>"+
"<SellerShippingProfile> SellerShippingProfileType"+
//"<ShippingProfileID> long </ShippingProfileID>"+
"<ShippingProfileName> Kostenloser Standard Versand </ShippingProfileName>"+
"</SellerShippingProfile>"+
"</SellerProfiles>"+

"<ShippingDetails>"+
"<ShippingType>Flat</ShippingType>"+
"<ShippingServiceOptions>"+
"<ShippingServicePriority>1</ShippingServicePriority>"+
"<ShippingService>DE_DHLPaket</ShippingService>"+
"<FreeShipping>true</FreeShipping>"+
"<ShippingServiceAdditionalCost currencyID=\"EUR\">0.00</ShippingServiceAdditionalCost>"+
"</ShippingServiceOptions>"+
"</ShippingDetails>"+
"<Site>US</Site>"+
"</Item>"+
"</AddFixedPriceItemRequest>");

Any ideas?

addfixedpriceitemJavaktypektypes
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers