How to check specific category for the particular inventory item?
This is the product payload:
{
"product": {
"title": "Xenon Lamp for Audi A3",
"description": "XENON D1S LAMP VOOR EEN AUDI A3",
"aspects": {
"Brand": ["Audi"],
"Model": ["A3"],
"Part": ["Xenon Lamp"]
},
"upc": ["888462079525"],
"imageUrls": [
"imageurl"
]
},
"condition": "NEW",
"price": {
"value": "75.00",
"currency": "USD"
},
"quantity": 1,
"categoryId": "33707",
"packageWeightAndSize": {
"dimensions": {
"height": 5,
"length": 10,
"width": 15,
"unit": "INCH"
},
"packageType": "LARGE_ENVELOPE",
"weight": {
"value": 2,
"unit": "POUND"
}
},
"availability": {
"shipToLocationAvailability": {
"quantity": 10
}
}
}
----------------------------------
This is the offer payload:
{
"sku": "AUDI_XENON_LAMP_7671439",
"marketplaceId": "EBAY_US",
"format": "FIXED_PRICE",
"listingDescription": "listingDescription",
"availableQuantity": 10,
"quantityLimitPerBuyer": 2,
"pricingSummary": {
"price": {
"value": 75.00,
"currency": "USD"
}
},
"listingPolicies": {
"fulfillmentPolicyId": "62062090001",
"paymentPolicyId": "62062080001",
"returnPolicyId": "62062100001"
},
"categoryId": "33707",
"merchantLocationKey": "Store1",
"tax": {
"vatPercentage": 10.2,
"applyTax": true,
"thirdPartyTaxCategory": "Electronics"
}
}
In this how can I check what is the product category and category id for the same?
Because while publishing the offer I'm getting this error:
{
"errors": [
{
"errorId": 25005,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "The eBay listing associated with the inventory item, or the unpublished offer has an invalid category ID. The category selected is not a leaf category."
}
]
}
Also I've tried to check "/commerce/taxonomy/v1/category_tree/{category_tree_id}/get_category_suggestions" api.
But getting below error:
Status: 503 Service Unavailable
So I couldn't check.
bipa6338
Posted 2 years ago · Edited 2 years ago
0 comments