Get property definitions
const url = 'https://catalog.shopgate.io/v1/merchants/example/properties?limit=1000&offset=0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://catalog.shopgate.io/v1/merchants/example/properties?limit=1000&offset=0'Get all property definitions
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Filter string. Supported filters: code, name, type
Sorting of the products (sequenceId only works with filter catalogCode)
The limit of entries of one page
The offset where to start the page
Responses
Section titled “Responses”Property definition information
object
object
object
Code of the product property this definition applies to (matches ProductProperties[].code).
Name of the property definition.
Type of the property. It is immutable once the property definition is created.
Whether the property holds an array of values of the given type.
Unit of the property value, e.g. kg, cm, lbs.
Example
{ "meta": { "limit": 10, "offset": 0, "totalItemCount": 1 }, "properties": [ { "code": "weight", "name": "Weight", "type": "string", "isArray": false, "unit": "kg" } ]}Validation error
object
object
object
object
The parameter-field, that failed to validate, like “userId”
The value, that was sent, like “xxx”
Machine readable error code
Human readable error code
object
object
Machine readable error code
Human readable error code
Example
{ "error": { "code": "SCHEMA_VALIDATION_FAILED", "results": { "errors": [ { "code": "MAX_LENGTH", "message": "Name too long", "description": "Property Name is too long", "path": [ "name" ] } ] } }}Merchant not found
object
Example
{ "code": "NotFound", "message": "Merchant not found"}
