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 ]

Accepted Solutions (0)

Answers (0)

Ask a Question