listItemTypes
get
/ccstore/v1/itemTypes
List Item Types. Get item type info and base type info of a list of item types.
Request
Supported Media Types
- application/json
Query Parameters
- includeBase
-
Type:
booleanSet to true to get base type details.- itemTypeIds
Type:stringRequired:trueComma separated list of item types to be returned- parent
Type:stringParent Type of current requested item type. It takes product as default parent for custom types.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listItemTypes_response
- items
-
Type:
arrayitemsAdditional Properties Allowed:Array containing the properties of the item type ids in the request
Nested Schema : items
Nested Schema : items
Type:
object- base
-
Type:
arraybaseAdditional Properties Allowed:Base type Details - count
-
Type:
integerThe count of items. - displayName
-
Type:
stringThe display name of the item type - id
-
Type:
stringThe ID of the item type. - specifications
-
Type:
arrayspecificationsAdditional Properties Allowed:List of properties for user-defined item type. - variants
-
Type:
arrayvariantsAdditional Properties Allowed:Variants of the product
Nested Schema : base
Nested Schema : specifications
Nested Schema : variants
Nested Schema : items
Type:
object- default
-
Type:
stringDefault specification of product type. - hidden
-
Type:
booleanWhether item is hidden. - id
-
Type:
stringID of specification. - itemType
-
Type:
stringItem type for user-defined product. - label
-
Type:
stringLabel for new item type. - length
-
Type:
integerThe length property of the variant - listingVariant
-
Type:
booleanWhether listing should be done based on this variant. - localizable
-
Type:
booleanWhether Localizable or not. - order
-
Type:
integerOrder count of item type. - required
-
Type:
booleanWhether it is required or not. - type
-
Type:
stringData type of variant. - uiEditorType
-
Type:
stringThe UIEditorType property of the variant - variantBasedDisplay
-
Type:
booleanWhether this variant based display should be allowed - writable
-
Type:
stringWhether writable or not.
Nested Schema : items
Type:
object- default
-
Type:
stringDefault specification of product type. - hidden
-
Type:
booleanWhether item is hidden. - id
-
Type:
stringID of specification. - itemType
-
Type:
stringItem type for user-defined product. - label
-
Type:
stringLabel for new item type. - length
-
Type:
integerThe length property of the variant - listingVariant
-
Type:
booleanWhether listing should be done based on this variant. - localizable
-
Type:
booleanWhether Localizable or not. - order
-
Type:
integerOrder count of item type. - required
-
Type:
booleanWhether it is required or not. - type
-
Type:
stringData type of variant. - uiEditorType
-
Type:
stringThe UIEditorType property of the variant - variantBasedDisplay
-
Type:
booleanWhether this variant based display should be allowed - writable
-
Type:
stringWhether writable or not.
Nested Schema : items
Type:
object- default
-
Type:
stringDefault specification of product type. - hidden
-
Type:
booleanWhether item is hidden. - id
-
Type:
stringID of specification. - itemType
-
Type:
stringItem type for user-defined product. - label
-
Type:
stringLabel for new item type. - length
-
Type:
integerThe length property of the variant - listingVariant
-
Type:
booleanWhether listing should be done based on this variant. - localizable
-
Type:
booleanWhether Localizable or not. - order
-
Type:
integerOrder count of item type. - required
-
Type:
booleanWhether it is required or not. - type
-
Type:
stringData type of variant. - uiEditorType
-
Type:
stringThe UIEditorType property of the variant - variantBasedDisplay
-
Type:
booleanWhether this variant based display should be allowed - writable
-
Type:
stringWhether writable or not.
Example application/json
{
"items":[
{
"id":"sku",
"specifications":[
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"baseLevelSkuProperty",
"type":"shortText",
"required":false,
"writable":true,
"default":null,
"listingVariant":false,
"propertyType":"sku-base",
"localizable":false,
"id":"baseLevelSkuProperty",
"order":null
}
],
"base":[
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"Name",
"type":"shortText",
"required":false,
"writable":true,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":true,
"id":"displayName",
"order":"-11"
},
{
"itemType":"sku",
"hidden":false,
"length":165,
"variantBasedDisplay":false,
"label":"Id",
"type":"shortText",
"required":false,
"writable":false,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":false,
"id":"id",
"order":"-4"
},
{
"itemType":"sku",
"hidden":false,
"length":1,
"variantBasedDisplay":false,
"label":"Active",
"type":"checkbox",
"required":false,
"writable":true,
"uiEditorType":null,
"default":true,
"listingVariant":false,
"localizable":false,
"id":"active",
"order":"50"
}
]
},
{
"id":"sku-MensApparel",
"specifications":[
{
"itemType":"sku-MensApparel",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"customLevelSkuProperty",
"type":"shortText",
"required":false,
"writable":true,
"default":null,
"listingVariant":false,
"propertyType":"sku-custom",
"localizable":false,
"id":"customLevelSkuProperty",
"order":null
},
{
"itemType":"sku-MensApparel",
"localizedValues":null,
"hidden":false,
"values":[
"Beige",
"Black",
"Blue",
"Brown",
"Camo",
"Dark Worn",
"Gray",
"Green",
"Medium Worn",
"Navy",
"Orange",
"Red",
"Tan",
"White"
],
"length":19,
"variantBasedDisplay":false,
"label":"Color",
"type":"enumerated",
"required":false,
"writable":true,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"propertyType":"variant",
"localizable":false,
"id":"color",
"order":null
},
{
"itemType":"sku-MensApparel",
"localizedValues":null,
"hidden":false,
"values":[
"Small",
"Medium",
"Large",
"X-Large"
],
"length":19,
"variantBasedDisplay":false,
"label":"Size",
"type":"enumerated",
"required":false,
"writable":true,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"propertyType":"variant",
"localizable":false,
"id":"size",
"order":null
}
],
"base":[
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"Name",
"type":"shortText",
"required":false,
"writable":true,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":true,
"id":"displayName",
"order":"-11"
},
{
"itemType":"sku",
"hidden":false,
"length":165,
"variantBasedDisplay":false,
"label":"Id",
"type":"shortText",
"required":false,
"writable":false,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":false,
"id":"id",
"order":"-4"
},
{
"itemType":"sku",
"hidden":false,
"length":1,
"variantBasedDisplay":false,
"label":"Active",
"type":"checkbox",
"required":false,
"writable":true,
"uiEditorType":null,
"default":true,
"listingVariant":false,
"localizable":false,
"id":"active",
"order":"50"
},
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"baseLevelSkuProperty",
"type":"shortText",
"required":false,
"writable":true,
"default":null,
"listingVariant":false,
"propertyType":"sku-base",
"localizable":false,
"id":"baseLevelSkuProperty",
"order":null
}
]
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|33013|Could not find item type|
|20589|Invalid parent type provided.|
|20688|Parent Id does not match Item Type|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{"items": [
{
"id": "sku",
"specifications": [{
"itemType": "sku",
"hidden": false,
"length": 254,
"variantBasedDisplay": false,
"label": "baseLevelSkuProperty",
"type": "shortText",
"required": false,
"writable": true,
"default": null,
"listingVariant": false,
"propertyType": "sku-base",
"localizable": false,
"id": "baseLevelSkuProperty",
"order": null
}],
"base": [
{
"itemType": "sku",
"hidden": false,
"length": 254,
"variantBasedDisplay": false,
"label": "Name",
"type": "shortText",
"required": false,
"writable": true,
"uiEditorType": null,
"default": null,
"listingVariant": false,
"localizable": true,
"id": "displayName",
"order": "-11"
},
{
"itemType": "sku",
"hidden": false,
"length": 165,
"variantBasedDisplay": false,
"label": "Id",
"type": "shortText",
"required": false,
"writable": false,
"uiEditorType": null,
"default": null,
"listingVariant": false,
"localizable": false,
"id": "id",
"order": "-4"
},
{
"itemType": "sku",
"hidden": false,
"length": 1,
"variantBasedDisplay": false,
"label": "Active",
"type": "checkbox",
"required": false,
"writable": true,
"uiEditorType": null,
"default": true,
"listingVariant": false,
"localizable": false,
"id": "active",
"order": "50"
}
]
},
{
"id": "sku-MensApparel",
"specifications": [
{
"itemType": "sku-MensApparel",
"hidden": false,
"length": 254,
"variantBasedDisplay": false,
"label": "customLevelSkuProperty",
"type": "shortText",
"required": false,
"writable": true,
"default": null,
"listingVariant": false,
"propertyType": "sku-custom",
"localizable": false,
"id": "customLevelSkuProperty",
"order": null
},
{
"itemType": "sku-MensApparel",
"localizedValues": null,
"hidden": false,
"values": [
"Beige",
"Black",
"Blue",
"Brown",
"Camo",
"Dark Worn",
"Gray",
"Green",
"Medium Worn",
"Navy",
"Orange",
"Red",
"Tan",
"White"
],
"length": 19,
"variantBasedDisplay": false,
"label": "Color",
"type": "enumerated",
"required": false,
"writable": true,
"uiEditorType": null,
"default": null,
"listingVariant": false,
"propertyType": "variant",
"localizable": false,
"id": "color",
"order": null
},
{
"itemType": "sku-MensApparel",
"localizedValues": null,
"hidden": false,
"values": [
"Small",
"Medium",
"Large",
"X-Large"
],
"length": 19,
"variantBasedDisplay": false,
"label": "Size",
"type": "enumerated",
"required": false,
"writable": true,
"uiEditorType": null,
"default": null,
"listingVariant": false,
"propertyType": "variant",
"localizable": false,
"id": "size",
"order": null
}
],
"base": [
{
"itemType": "sku",
"hidden": false,
"length": 254,
"variantBasedDisplay": false,
"label": "Name",
"type": "shortText",
"required": false,
"writable": true,
"uiEditorType": null,
"default": null,
"listingVariant": false,
"localizable": true,
"id": "displayName",
"order": "-11"
},
{
"itemType": "sku",
"hidden": false,
"length": 165,
"variantBasedDisplay": false,
"label": "Id",
"type": "shortText",
"required": false,
"writable": false,
"uiEditorType": null,
"default": null,
"listingVariant": false,
"localizable": false,
"id": "id",
"order": "-4"
},
{
"itemType": "sku",
"hidden": false,
"length": 1,
"variantBasedDisplay": false,
"label": "Active",
"type": "checkbox",
"required": false,
"writable": true,
"uiEditorType": null,
"default": true,
"listingVariant": false,
"localizable": false,
"id": "active",
"order": "50"
},
{
"itemType": "sku",
"hidden": false,
"length": 254,
"variantBasedDisplay": false,
"label": "baseLevelSkuProperty",
"type": "shortText",
"required": false,
"writable": true,
"default": null,
"listingVariant": false,
"propertyType": "sku-base",
"localizable": false,
"id": "baseLevelSkuProperty",
"order": null
}
]
}
]}