getProductType

get

/ccadmin/v1/productTypes/{id}

Get Product Type. Get information about user-defined product types by ID.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getProductType_response
Type: object
Show Source
Nested Schema : shopperInputs
Type: array
List of Shopper Inputs for user-defined product type.
Show Source
Nested Schema : specifications
Type: array
List of specifications for user-defined product type.
Show Source
Nested Schema : variants
Type: array
List of variants for user-defined product type.
Show Source
Nested Schema : items
Type: object
Show Source
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 : values
Type: array
List of values when the type=enumerated.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : editableAttributes
Type: array
List of editable attributes
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : editableAttributes
Type: array
List of editable attributes
Show Source
Nested Schema : localizedValues
Type: object
Additional Properties Allowed
Show Source
Localized values for variant. Key is option value in default locale, value is option value in specified locale
Nested Schema : values
Type: array
Values for variant.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "shopperInputs":[
    ],
    "displayName":"New Product Type",
    "count":0,
    "id":"NewProductType",
    "variants":[
        {
            "itemType":"sku-NewProductType",
            "localizedValues":{
                "red":"rojo",
                "blue":"azul"
            },
            "hidden":false,
            "values":[
                "red",
                "blue"
            ],
            "variantBasedDisplay":"false",
            "wildcardSearchable":null,
            "label":"color",
            "type":"enumerated",
            "required":false,
            "searchable":null,
            "writable":"true",
            "internalOnly":null,
            "default":null,
            "listingVariant":"true",
            "textSearchable":null,
            "id":"color",
            "dimension":null,
            "editableAttributes":[
                "textSearchable",
                "dimension",
                "internalOnly",
                "default",
                "order",
                "listingVariant",
                "hidden",
                "label",
                "required",
                "variantBasedDisplay",
                "wildcardSearchable",
                "searchable"
            ],
            "order":null
        }
    ],
    "specifications":[
        {
            "itemType":"NewProductType",
            "hidden":false,
            "wildcardSearchable":true,
            "label":"New Property",
            "type":"shortText",
            "required":true,
            "searchable":"true",
            "writable":"true",
            "internalOnly":"false",
            "default":"null",
            "textSearchable":"true",
            "id":"newProperty",
            "dimension":"false",
            "editableAttributes":[
                "textSearchable",
                "dimension",
                "internalOnly",
                "default",
                "order",
                "hidden",
                "label",
                "required",
                "wildcardSearchable",
                "searchable"
            ],
            "order":null
        }
    ],
    "skuPropeties":[
    ]
}

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| |------------------|------------------| |20581|Could not find product type| |20580|Internal Error|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top