This Choreo returns the latest category hierarchy for the eBay site. The documentation for this eBay method can be found here.
Here is an example of acceptable inputs to retrieve a list of the top-level categories for the specified eBay site:
UserToken: {YOUR EBAY USER TOKEN}
DetailLevel: ReturnAll
LevelLimit: 1
SandboxMode: 1
The following is a sample of the JSON information returned by this Choreo using the inputs above:
{
"@xmlns": "urn:ebay:apis:eBLBaseComponents",
"Timestamp": "2013-08-23T19:16:37.753Z",
"Ack": "Success",
"Version": "837",
"Build": "E837_CORE_API_16303061_R1",
"CategoryArray": {
"Category": [
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "20081",
"CategoryLevel": "1",
"CategoryName": "Antiques",
"CategoryParentID": "20081"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "550",
"CategoryLevel": "1",
"CategoryName": "Art",
"CategoryParentID": "550"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "2984",
"CategoryLevel": "1",
"CategoryName": "Baby",
"CategoryParentID": "2984"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "267",
"CategoryLevel": "1",
"CategoryName": "Books",
"CategoryParentID": "267"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "12576",
"CategoryLevel": "1",
"CategoryName": "Business & Industrial",
"CategoryParentID": "12576"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "625",
"CategoryLevel": "1",
"CategoryName": "Cameras & Photo",
"CategoryParentID": "625"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "1249",
"CategoryLevel": "1",
"CategoryName": "Video Games & Consoles",
"CategoryParentID": "1249"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "99",
"CategoryLevel": "1",
"CategoryName": "Everything Else",
"CategoryParentID": "99"
},
{
"BestOfferEnabled": "true",
"CategoryID": "10159",
"CategoryLevel": "1",
"CategoryName": "Partner",
"CategoryParentID": "10159",
"Expired": "true"
}
]
},
"CategoryCount": "35",
"UpdateTime": "2013-08-09T02:13:20.000Z",
"CategoryVersion": "106",
"ReservePriceAllowed": "true",
"MinimumReservePrice": "0.0"
}
Here is an example of acceptable inputs to retrieve the details on the specified category:
UserToken: {YOUR EBAY USER TOKEN}
CategoryParent: 267
DetailLevel: ReturnAll
LevelLimit: 2
SandboxMode: 1
The following is a sample of the JSON information returned by this Choreo using the inputs above:
{
"@xmlns": "urn:ebay:apis:eBLBaseComponents",
"Timestamp": "2013-08-23T19:27:52.990Z",
"Ack": "Success",
"Version": "837",
"Build": "E837_CORE_API_16303061_R1",
"CategoryArray": {
"Category": [
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "267",
"CategoryLevel": "1",
"CategoryName": "Books",
"CategoryParentID": "267"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "45110",
"CategoryLevel": "2",
"CategoryName": "Accessories",
"CategoryParentID": "267"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "29223",
"CategoryLevel": "2",
"CategoryName": "Antiquarian & Collectible",
"CategoryParentID": "267",
"LeafCategory": "true"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "29792",
"CategoryLevel": "2",
"CategoryName": "Audiobooks",
"CategoryParentID": "267",
"LeafCategory": "true"
},
{
"BestOfferEnabled": "true",
"AutoPayEnabled": "true",
"CategoryID": "118254",
"CategoryLevel": "2",
"CategoryName": "Catalogs",
"CategoryParentID": "267"
}
]
},
"CategoryCount": "13",
"UpdateTime": "2013-08-09T02:13:20.000Z",
"CategoryVersion": "106",
"ReservePriceAllowed": "true",
"MinimumReservePrice": "0.0"
}