Adding Product Attributes
Use the Products API to manage attributeValue information in the database. AttributeValue details include product tax code, price, size, color, image, brand, and description. The Product Attribute Values data collection defines attributes associated with a product item, such as name, value, and audit date. Each product attribute has different options associated with it. Valid values for attributeValue depend on the value used for attributeName.
The following table describes the collection of Product Attribute Values for the productAttributeValues parameter in the ProductDataAttribute data collection.
Name | Description |
---|---|
attributeName | Defines the name
of an attribute. This parameter accepts one or more of the following values:
|
attributeValue |
Defines the value for the product item attribute corresponding to the attributeName specified. Refer to the attributeValue table, below, for a description of the values accepted for each attribute name. Note
attributeValue must be a properly-formatted JSON string. |
attributeOldValue | Changes or updates the existing value of an attribute. |
customerAuditDate | Specifies the date when the audit information of the product group was last modified. |
attributeValue
The following table describes the valid values for the attributeValue parameter based on each attributeName value. The attributeName can have any value, which means that it accepts any non-defined attribute names, and these will pass through the POSLog.
attributeName | attributeValue |
---|---|
CompanyPrefix | Defines the manufacturer's company prefix. This prefix is used to validate GS1 Databar Manufacturer coupon entry. |
DisableItemLevelManualDiscounts |
Specifies the manual item-level discounts to disable using the following comma-separated values:
|
DividendEligible |
|
FrankLevel |
|
GiftCardItemFlag |
|
ItemActivation |
|
ItemBasedPromptScheme |
Example
{ 'ItemDetails': 'PetTrainingPrompt', 'PaymentDetails': '', 'DataCarryover': 'true', 'ReturnStatus': '0', 'ReturnDetails': 'PetTrainingReturnPrompt' } |
NoDiscount |
|
PromptForPriceFlag |
|
PromptForResale |
|
ReturnDays |
Note
This attribute is only intended for items that fall outside the default return days. |
ReturnReasonNotRequired |
|