Skip to main content

promotion_id

Optional Field

This field is optional, but omitting it may leave out functionality on Prisjakt for your offers

Description

The promotion_id field allows mapping your inventory to promotions. Offer is mapped to promotion by promotion_id in promotion feed.

Effects When Used

  • Use this attribute if you want to highlight offers included in your current promotion campaigns.

Validation Rules

  • Length must be between 1-50 characters

Example Values

Here are examples of how a valid promotion_id value should look like in XML and CSV (with header) respectively.

Valid Value
<g:promotion_id><![CDATA[10-year-anniversary-promo]]></g:promotion_id>
<g:promotion_id><![CDATA[mega deals]]></g:promotion_id>
Click to show more valid XML examples
<g:promotion_id><![CDATA[10-year-anniversary-promo]]></g:promotion_id>
<g:promotion_id><![CDATA[mega deals]]></g:promotion_id>
<g:promotion_id><![CDATA[super promo]]></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.

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

Properties

PropertyValueDescription
Data TypeList[String]Closest data type in code
NestedFalseDefines if this field consists of one or more sub-fields
Case SensitiveFalseIf small or large letters matter for this field
RepeatableTrueIf you can supply multiple items of this field (it´s a list)
Repeatable limit10If a list, this specifices the max number of items

Changelog

📅 2022-12-07

Added

Initial definition

References