Skip to main content

unit_pricing_base_measure

Optional Field

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

Description​

The product's base measure for pricing. This determines the denominator used for the unit price shown to customers (e.g. 100ml means the displayed price is calculated per 100ml). Use together with unit_pricing_measure to enable unit price comparison. Accepts a numerical value followed by a unit (e.g. 100ml). Supported units include weight (oz, lb, mg, g, kg), volume (floz, pt, qt, gal, ml, cl, l, cbm), length (in, ft, yd, cm, m), area (sqft, sqm) and per-unit (ct, sheet, item).

Validation Rules​

  • Must be a positive number followed by a supported unit with or without a space (e.g. 100ml, 100 ml)
  • Supported units are oz, lb, mg, g, kg, floz, pt, qt, gal, ml, cl, l, cbm, in, ft, yd, cm, m, sqft, sqm, ct,sheet, item
  • Must use the same unit type as unit_pricing_measure

Best Practices​

Do​

Don't​

  • Do not mix unit types between unit_pricing_measure and unit_pricing_base_measure (e.g. kg and ml)

Example Values​

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

Valid Value
<g:unit_pricing_base_measure>100 g</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1.5 g</g:unit_pricing_measure>
Click to show more valid XML examples
<g:unit_pricing_base_measure>100 g</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1.5 g</g:unit_pricing_measure>
<g:unit_pricing_base_measure>100 ml</g:unit_pricing_base_measure>
<g:unit_pricing_measure>125 ml</g:unit_pricing_measure>
<g:unit_pricing_base_measure>1 l</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1 l</g:unit_pricing_measure>
<g:unit_pricing_base_measure>1 kg</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1.5 kg</g:unit_pricing_measure>
<g:unit_pricing_base_measure>100 cl</g:unit_pricing_base_measure>
<g:unit_pricing_measure>500 cl</g:unit_pricing_measure>
<g:unit_pricing_base_measure>1 ct</g:unit_pricing_base_measure>
<g:unit_pricing_measure>2 ct</g:unit_pricing_measure>
<g:unit_pricing_base_measure>100 cm</g:unit_pricing_base_measure>
<g:unit_pricing_measure>30 cm</g:unit_pricing_measure>
<g:unit_pricing_base_measure>1 sqm</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1 sqm</g:unit_pricing_measure>

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:unit_pricing_base_measure>11.,.,.,111</g:unit_pricing_base_measure>
<g:unit_pricing_base_measure>unkn-own</g:unit_pricing_base_measure>
<g:unit_pricing_base_measure>11 </g:unit_pricing_base_measure>
<g:unit_pricing_base_measure>3 g</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1.5 kg</g:unit_pricing_measure>
<g:unit_pricing_base_measure>0 kg</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1.5 kg</g:unit_pricing_measure>
<g:unit_pricing_base_measure>100 g</g:unit_pricing_base_measure>
<g:unit_pricing_measure>1.5 kg</g:unit_pricing_measure>

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​

📅 2026-05-28

Added

Initial definition

References​