Endpoint - Get Attributes By Category

This endpoint returns a list of required and optional attributes. This is used e.g. when configurator attribute window is opened. Request contains selected customer category ids and filled customer settings that can be used to determine the list of attributes to be returned.

This endpoint returns a list of required and optional attributes. This is used e.g. when configurator attribute window is opened. Request contains selected customer category ids and filled customer settings that can be used to determine the list of attributes to be returned.

Request

Post

ProductCategoryAttributeRequest

Field NameTypeDescription
AuthorizationTokenStringAuthorization Token from the customers integration
CategoryIdsString[]Defines the category ids the customer has selected.
GeneralSettingsSetting[]See Setting table. Defines the settings the customer has filled out based on what was provided by the developer in the GetConfiguratorSettings call.

Setting

Field NameTypeDescription
IDStringConfigItemId defined in GetConfiguratorSettings.
ValuesString[]The value(s) chosen by the customer for this setting.

Sample

{
  "AuthorizationToken": "0dfdbaf3e4d5434f825e774e31bcc148",
  "CategoryIds": [
    "3",
    "8"
  ],
  "GeneralSettings": []
}

Response

ProductCategoryAttributeResponse

Field NameTypeDescription
AttributesListingCategoryAttribute[]See ListingCategoryAttribute table.
ErrorStringDefines if there was an error with the request and returns it.

ListingCategoryAttribute

Field NameTypeDescription
IDStringId of the attribute.
FriendlyNameStringName of the attribute displayed to the customer in the attributes window.
DescriptionStringIs used for the tooltip of the attribute to give the customer additional information to help him understand what this attribute is exactly.
MustBeSpecifiedMustBeSpecifiedSee MustBeSpecified table. Defines how the attribute will be marked in the attributes window.
ExpectedTypeStringDetermines what type of value is expected. See ExpectedType
ValueOptionsString[]Provides a list of options the customer can select the attribute value from.
ValueFromOptionsListBooleanSet to true if setting ValueOptions
MaxAttributeUseIntegerDefines how often each attribute can be set by the customer for any given listing. E.g. you might only be allowed to set 1 condition, but have several different Tags.
Default is 0 must be set to 1 or more
AttribueReadFromAttribueReadFromDefines where the attribute will be read from. See AttribueReadFrom
RegExValidationStringCurrently not used.
RegExErrorStringCurrently not used.

MustBeSpecified (Flagged Enum)

FlagNumeric ValueDescription
Required1Means that the attribute has to be set by the customer in order to create the listing and cannot be left empty and will be auto added to the selected attributes in the attributes screen.
Desired2Means that the attribute value can remain empty in order to create/update the listing.

ExpectedType (Flagged Enum)

FlagNumeric ValueDescription
STRING1String
INT2Integer
DECIMAL3Decimal
BOOL4Boolean
DATETIME5DateTime
LIST6List

AttribueReadFrom (Flagged Enum)

FlagNumeric ValueDescription
Child0Means that the attribute will be read and added to each variation child item.
Parent1Means that the attribute will be read and added to the variation parent item (if a variation listing).
Optional2Means that the customer can decide themselves if it should be read from the parent or each child item..

Sample

{
  "Attributes": [
    {
      "AttribueReadFrom": "Child",
      "Description": "Color",
      "ExpectedType": "STRING",
      "FriendlyName": "Color",
      "MaxAttributeUse": 1,
      "MustBeSpecified": "Required",
      "RegExError": null,
      "RegExValidation": null,
      "ValueFromOptionsList": true,
      "ValueOptions": [
        "Red",
        "Green",
        "Blue"
      ]
    }
  ],
  "Error": null
}