Skip to content

Get property definition

GET
/merchants/{merchantCode}/properties/{propertyCode}
curl --request GET \
--url https://catalog.shopgate.io/v1/merchants/example/properties/example

Get property definition information

merchantCode
required
string
<= 255 characters
propertyCode
required
string
<= 255 characters

Property definition information

Media typeapplication/json
object
property
object
code
required

Code of the product property this definition applies to (matches ProductProperties[].code).

string
<= 255 characters /^[^.]*$/
name
required

Name of the property definition.

string
<= 255 characters
type
required

Type of the property. It is immutable once the property definition is created.

string
Allowed values: string number boolean
isArray
required

Whether the property holds an array of values of the given type.

boolean
unit

Unit of the property value, e.g. kg, cm, lbs.

null | string
<= 100 characters
Example
{
"property": {
"code": "weight",
"name": "Weight",
"type": "string",
"isArray": false,
"unit": "kg"
}
}

Merchant or property definition not found

Media typeapplication/json
object
statusCode
number
code
required
string
message
required
string
Example
{
"code": "NotFound",
"message": "Merchant not found"
}