getItemType
get
/ccadmin/v1/itemTypes/{id}
Get Item Type. Get information about item types by ID. This get endpoint will not support for products. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueID of item type.
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getItemType_response
- 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
{
"propertiesOrder":[
"derivedApprovalRequired",
"name",
"description",
"derivedOrderPriceLimit",
"customerType",
"derivedCustomerType",
"type",
"dunsNumber",
"organizationLogo",
"uniqueId",
"taxReferenceNumber",
"vatReferenceNumber",
"active",
"TestShortItemType2"
],
"displayName":"Organization",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/itemTypes/organization"
}
],
"id":"organization",
"specifications":[
{
"length":22,
"label":"Order limit",
"type":"number",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"number",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"derivedOrderPriceLimit",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":0,
"label":"Customer type",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"customerType",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"TestShortItemType2",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"TestShortItemType2",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":false
},
{
"length":254,
"label":"vatReferenceNumber",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"vatReferenceNumber",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":0,
"label":"Type",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"type",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"DUNS number",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"dunsNumber",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"uniqueId",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"uniqueId",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":1,
"label":"Approval required",
"type":"checkbox",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"checkbox",
"internalOnly":false,
"default":true,
"localizable":false,
"textSearchable":false,
"id":"derivedApprovalRequired",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"Description",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"description",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"Name",
"type":"shortText",
"required":true,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"name",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"searchable"
],
"multiSelect":null
},
{
"length":1,
"label":"active",
"type":"checkbox",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"checkbox",
"internalOnly":false,
"default":true,
"localizable":false,
"textSearchable":false,
"id":"active",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":0,
"label":"Customer type",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"derivedCustomerType",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"taxReferenceNumber",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"taxReferenceNumber",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":null
},
{
"length":254,
"label":"organizationLogo",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"uiEditorType":"shortText",
"internalOnly":false,
"default":null,
"localizable":false,
"textSearchable":false,
"id":"organizationLogo",
"dimension":false,
"editableAttributes":[
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect":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|
|------------------|------------------|
|200501|Invalid item type Id|
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:
{
"propertiesOrder": [
"derivedApprovalRequired",
"name",
"description",
"derivedOrderPriceLimit",
"customerType",
"derivedCustomerType",
"type",
"dunsNumber",
"organizationLogo",
"uniqueId",
"taxReferenceNumber",
"vatReferenceNumber",
"active",
"TestShortItemType2"
],
"displayName": "Organization",
"links": [{
"rel": "self",
"href": "http://localhost:9080/ccadminui/v1/itemTypes/organization"
}],
"id": "organization",
"specifications": [
{
"length": 22,
"label": "Order limit",
"type": "number",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "number",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "derivedOrderPriceLimit",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 0,
"label": "Customer type",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "customerType",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "TestShortItemType2",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "TestShortItemType2",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": false
},
{
"length": 254,
"label": "vatReferenceNumber",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "vatReferenceNumber",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 0,
"label": "Type",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "type",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "DUNS number",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "dunsNumber",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "uniqueId",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "uniqueId",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 1,
"label": "Approval required",
"type": "checkbox",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "checkbox",
"internalOnly": false,
"default": true,
"localizable": false,
"textSearchable": false,
"id": "derivedApprovalRequired",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "Description",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "description",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "Name",
"type": "shortText",
"required": true,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "name",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"searchable"
],
"multiSelect": null
},
{
"length": 1,
"label": "active",
"type": "checkbox",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "checkbox",
"internalOnly": false,
"default": true,
"localizable": false,
"textSearchable": false,
"id": "active",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 0,
"label": "Customer type",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "derivedCustomerType",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "taxReferenceNumber",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "taxReferenceNumber",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
},
{
"length": 254,
"label": "organizationLogo",
"type": "shortText",
"required": false,
"searchable": false,
"writable": true,
"uiEditorType": "shortText",
"internalOnly": false,
"default": null,
"localizable": false,
"textSearchable": false,
"id": "organizationLogo",
"dimension": false,
"editableAttributes": [
"textSearchable",
"multiSelect",
"dimension",
"internalOnly",
"default",
"label",
"required",
"searchable"
],
"multiSelect": null
}
]
}