getProductType
get
/ccstore/v1/productTypes/{id}
Get Product Type. Get product type info
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID of the file.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getProductType_response
Type:
Show Source
object
-
count(optional):
integer
The count of product.
-
displayName(optional):
string
The display name of the product type
-
id(optional):
string
The ID of the product type.
-
shopperInputs(optional):
array shopperInputs
List of Shopper Inputs for user-defined product type.
-
skuProperties(optional):
array skuProperties
List of Sku Properties for user-defined product type
-
specifications(optional):
array specifications
List of specifications for user-defined product type.
-
variants(optional):
array variants
Variants of the product
Nested Schema : shopperInputs
Type:
array
List of Shopper Inputs for user-defined product type.
Show Source
Nested Schema : skuProperties
Type:
array
List of Sku Properties for user-defined product type
Show Source
Nested Schema : specifications
Type:
array
List of specifications for user-defined product type.
Show Source
Nested Schema : items
Type:
Show Source
object
-
label(optional):
string
The display name of Shopper Input
-
localizedValues(optional):
object localizedValues
Additional Properties Allowed: additionalPropertiesLocalized enumerated values map (base -> localized), returned when type=enumerated and there is localization.
-
name(optional):
string
Name of the Shopper Input
-
promptText(optional):
string
Helper text for the the Shopper Input
-
repositoryId(optional):
string
Repository ID of Shopper Input
-
required(optional):
boolean
Whether the Shopper Input is required
-
type(optional):
string
Data type of the Shopper Input
-
uiEditorType(optional):
string
UI editor type of the Shopper Input
-
values(optional):
array values
Enumerated values, returned when type=enumerated.
Nested Schema : localizedValues
Type:
object
Additional Properties Allowed
Show Source
Localized enumerated values map (base -> localized), returned when type=enumerated and there is localization.
Nested Schema : items
Type:
Show Source
object
-
default(optional):
string
The default value of the sku property
-
editableAttributes(optional):
array editableAttributes
The editable attributes of the sku property
- hidden(optional): boolean
-
id(optional):
string
The ID of the sku property
-
itemType(optional):
string
The itemtype of the sku property.
-
label(optional):
string
The label attribute of the sku property
-
length(optional):
integer
The length of the sku property
-
order(optional):
integer
The order count of the sku property
-
propertyType(optional):
string
Whether this is a base or custom sku property
-
required(optional):
boolean
The required attribute of the sku property
-
type(optional):
string
The type of the sku property
-
variantBasedDisplay(optional):
boolean
Whether this variant based display should be allowed
-
writable(optional):
boolean
The writable attribute of sku property
Nested Schema : editableAttributes
Type:
array
The editable attributes of the sku property
Show Source
Nested Schema : items
Type:
Show Source
object
-
default(optional):
string
Default specification of product type.
-
editableAttributes(optional):
array editableAttributes
List of editable attributes
- hidden(optional): boolean
-
id(optional):
string
ID of specification.
-
itemType(optional):
string
Item type for user-defined product.
-
label(optional):
string
Label for new item type.
-
listingVariant(optional):
boolean
Whether listing should be done based on this variant.
-
order(optional):
integer
Order count of item type.
-
required(optional):
boolean
Whether it is required or not.
-
type(optional):
string
Data type of variant.
-
variantBasedDisplay(optional):
boolean
Whether this variant based display should be allowed
-
writable(optional):
string
Whether writable or not.
Nested Schema : items
Type:
Show Source
object
-
default(optional):
string
Default editable attribute.
- hidden(optional): boolean
-
label(optional):
string
Label for the item type.
-
listingVariant(optional):
boolean
Whether listing should be done based on this variant.
-
order(optional):
integer
Order count of item type.
-
required(optional):
boolean
Whether it is required or not.
Nested Schema : items
Type:
Show Source
object
-
default(optional):
string
The default property of the variant
-
editableAttributes(optional):
array editableAttributes
The editable attributes of the variants
- hidden(optional): boolean
-
id(optional):
string
The ID of the variant
-
itemType(optional):
string
The itemtype of the variant.
-
label(optional):
string
The label property of the variant
-
length(optional):
integer
The length property of the variant
-
order(optional):
integer
The order property of the variant
-
required(optional):
boolean
The required property of the variant
-
type(optional):
string
The type of the variant
-
uiEditorType(optional):
string
The UIEditorType property of the variant
-
values(optional):
array values
The variants
-
writable(optional):
boolean
The writable property of variant
Example Response (application/json)
{
"skuProperties":[
{
"itemType":"sku-MensApparel",
"hidden":false,
"variantBasedDisplay":false,
"label":"UPC Code",
"type":"shortText",
"required":false,
"searchable":false,
"writable":true,
"internalOnly":false,
"default":"1234567890",
"listingVariant":false,
"propertyType":"sku-custom",
"localizable":false,
"textSearchable":false,
"id":"upccode",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":null,
"multiSelect":false
}
],
"shopperInputs":[
{
"uiEditorType":"shortText",
"repositoryId":"giftMessage",
"name":"Gift Message",
"label":"Gift Message",
"type":"shortText",
"promptText":"Enter the gift message:",
"required":false
}
],
"displayName":"Men",
"count":19,
"id":"MensApparel",
"variants":[
{
"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,
"localizable":false,
"id":"color",
"editableAttributes":[
"default",
"order",
"listingVariant",
"hidden",
"label",
"required",
"variantBasedDisplay"
],
"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,
"localizable":false,
"id":"size",
"editableAttributes":[
"default",
"order",
"listingVariant",
"hidden",
"label",
"required",
"variantBasedDisplay"
],
"order":null
}
],
"specifications":[
{
"itemType":"MensApparel",
"hidden":false,
"length":1000,
"variantBasedDisplay":false,
"label":"Fabric",
"type":"shortText",
"required":false,
"writable":true,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":false,
"id":"fabric",
"editableAttributes":[
"default",
"order",
"listingVariant",
"hidden",
"label",
"required",
"variantBasedDisplay"
],
"order":null
}
]
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code