Skip to main content

promotion_id

Required Field

This field is required and must not be omitted

Description

Identifier should be unique for every promotion. Attribute is used to map promotion to a product. In the offer feed, promotion_id field is used to map a promotion to a product.

Validation Rules

  • Must be a string
  • Must be shorter than 50 characters
  • Must be unique for every promotion

Best Practices

Do

  • Use a unique ID for each different promotion.

Don´t

  • Don't reuse or recycle the same ID for different promotions
  • Avoid whitespaces

Example Values

Here are examples of how a valid promotion_id value should look like in XML.

Valid Value
<g:promotion_id><![CDATA[tbby123_us]]></g:promotion_id>
Click to show more valid XML examples
<g:promotion_id><![CDATA[tbby123_us]]></g:promotion_id>

Error Codes

Below you will find possible error codes generated when validating this field alongside with an example in XML and CSV that would trigger the code. Please refer to the validation rules to understand the cause.

danger
validation_invalid_length
<g:promotion_id><![CDATA[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 50 characters value)]]></g:promotion_id>

Properties

PropertyValueDescription
Data TypestringClosest data type in code
NestedFalseDefines if this field consists of one or more sub-fields
Case SensitiveTrueIf small or large letters matter for this field
RepeatableFalseIf you can supply multiple items of this field (it´s a list)
Repeatable limit0If a list, this specifices the max number of items

Changelog

📅 2023-12-11

Added

Initial definition

References