Represents an attribute of a product variant.

interface ProductAttribute {
    AttributeValues: ProductAttributeValue[];
    ControlType: AttributeControlType;
    DisplayLocation: AttributeDisplayLocation;
    DisplayOrder: number;
    ExternalIds: ExternalId[];
    HideFromCustomer: boolean;
    Id: number;
    IsRequired: boolean;
    Label: string;
    Name: string;
}

Properties

AttributeValues: ProductAttributeValue[]

Attribute values associated with the product attribute.

The control type of the product attribute.

DisplayLocation: AttributeDisplayLocation

The display location of the product attribute.

DisplayOrder: number

The display order of the product attribute.

ExternalIds: ExternalId[]

External identifiers associated with the product attribute.

HideFromCustomer: boolean

Indicates whether the product attribute is hidden from the customer.

Id: number

The identifier of the product attribute.

IsRequired: boolean

Indicates whether the product attribute is required.

Label: string

The label or display name of the product attribute.

Name: string

The name of the product attribute.