cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Listing failed due to `The provided condition id is invalid for the selected primary category id.`

Here is the API call that I am doing but while the create offer call the listing has been failed. Please check my objects.

 

var createListing = {
    'product': {
        'title': 'Case Logic earpiece + " & , -',
        'upc': ['805112311071'],
        'aspects': {'Brand': ['Case Logic'], 'MPN': ['Does not apply']},
        'epid': '',
        'imageUrls': ['https://cdn8.bigcommerce.com/s-cogsnzk9ez/products/3910/images/9051/71ZWznbmc-L._SX569___52032.1542473529.500.750.jpg?c=2']
    },
    'condition': 'USED_GOOD',
    'packageWeightAndSize': {
        'weight': {'value': 12, 'unit': 'OUNCE'},
        'dimensions': {'height': 5, 'length': 5, 'width': 5, 'unit': 'INCH'}
    },
    'availability': {'shipToLocationAvailability': {'quantity': 1}}
};

// Above object has been used to create the listing.
// It has been created succfully.

var createOffer = {
    sku: '805112311071GD',
    marketplaceId: 'EBAY_US',
    format: 'FIXED_PRICE',
    listingDescription: '<p>Description</p>',
    pricingSummary: {price: {value: '29.99', currency: 'USD'}},
    listingPolicies:
        {
            fulfillmentPolicyId: '130240227023',
            paymentPolicyId: '83974131023',
            returnPolicyId: '138457585023'
        },
    categoryId: '112529',
    merchantLocationKey: 'ebay_inventory_location_46268',
    tax: {applyTax: true}
};

// But while creating the offer. The listing went failed and error occcurs.
// The create offer has been failed only while I use the condition `USED_GOOD` for rest of the condition listing has been made successfully.

Result: Fail Message: The eBay listing associated with the inventory item, or the unpublished offer has invalid item condition information. The provided condition id is invalid for the selected primary category id.

Entire error message is as below :
[ { errorId: 25021,
    domain: 'API_INVENTORY',
    subdomain: 'Selling',
    category: 'REQUEST',
    message: 'The eBay listing associated with the inventory item, or the unpublished offer has invalid item condition information. The provided condition id is invalid for the selected primary category id.' },
  Headers: { 'content-length': '303',
    cneonction: 'close',
    date: 'Mon, 19 Nov 2018 13:26:20 GMT',
    rlogid: 't6pitnmsgwj70%3D9iptpitnmsgwj70*1357501%29pqtfwpu%29osu%29fgg%7E-fij-1672c268017-0x64b0e',
    'set-cookie': [ 'ebay=%5Esbf%3D%23%5E;Domain=.ebay.com;Path=/' ],
    'x-ebay-c-request-id': 'ri=L6gqyb52GHBC,rci=2o4QE%2BPDsibTIk4i',
    'x-ebay-c-version': '1.0.0',
    'x-ebay-client-tls-version': 'CLIENT.SSL.VERSION+", "+CLIENT.IP.SRC',
    'x-ebay-request-id': '1672c268007.ad4a45c.1ed59.fc9cc048![UserLookupClient[!lookup.publicUserId!10.166.102.128!r1userinfo[]]!SISClient[!offerid.publish_offer_POST!10.173.106.244!r1slrinvsvc[]]]',
    'content-type': 'application/json',
    connection: 'keep-**bleep**' },
  StatusCode: 400 ]
Message 1 of 6
latest reply
5 REPLIES 5

Listing failed due to `The provided condition id is invalid for the selected primary category id.`

I poked around, and my take on it is that USED_GOOD is NOT a valid condition for that category
112529,"Consumer Electronics > Portable Audio & Headphones > Headphones"

I could be wrong, or maybe it used to be valid before the catalog rollout, but from looking here:
https://developer.ebay.com/api-docs/sell/inventory/types/slr:ConditionEnum
and here:
https://www.ebay.com/help/selling/listings/creating-managing-listings/item-conditions-category?id=47...

it looks like USED_GOOD might only be valid in DVDs & Movies, Music, Video Games, and Books.

Message 2 of 6
latest reply

Listing failed due to `The provided condition id is invalid for the selected primary category id.`

Thanks for the info! On Electronics it simply reccomends "Used" do you know which Enumeration should be used in this case to create a "Used" listing? This is stange as the listings go through no problem via Ebays user interface. 

Message 3 of 6
latest reply

Listing failed due to `The provided condition id is invalid for the selected primary category id.`

@karmaelectronics

 

For info about the various eBay APIs, you might ask on the DeveloperZone forums - https://forums.developer.ebay.com/

eBay is continually updating this site. Some advice given may have changed. Please reply to this thread, to let us know if this advice works for you. The links on the bottom of any eBay page can help you deal with most eBay issues. Contact eBay Customer Service on Facebook.com/eBay or Twitter.com/AskeBay
Message 4 of 6
latest reply

Listing failed due to `The provided condition id is invalid for the selected primary category id.`

What dollybeauty said about the developer forums is the best advice. (I'm winging it here)

I believe you are supposed to use just "USED" as the condition and also use a "Condition Description" field to further explain the sub condition of a USED item, although that does not appear as a choice on the Trading API documentation page I linked, and there is mention of a "Condition ID" value to also be used, but I really don't know as I don't use the APIs, am not a developer, and I don't know what API you are using (Trading?)


>>This is stange as the listings go through no problem via Ebays user interface

I'm not sure I understand that. Are you talking about using the advanced listing form web interface to create a listing? Plain "USED" is the only used option in the headphones subcat (along with a condition description). ???
Message 5 of 6
latest reply

Listing failed due to `The provided condition id is invalid for the selected primary category id.`

@karmaelectronics

 

It appears that eBay may want a number for the condition. The value for "Used" is 3000.  The meaning of the numbers can be found here:

 

https://developer.ebay.com/devzone/finding/callref/Enums/conditionIdList.html#ConditionIDValues

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 6 of 6
latest reply