Skip to main content

shipping_weight

Optional Field

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

Description​

It is recommended to add this attribute if delivery costs based on weight. This attribute is required if any of your shipping services in Business Center has a weight condition, since the shipping of an offer can only be built from such a service when the weight of the offer is known and falls inside the configured range.

Effects When Omitted​

  • An offer without a weight can never be matched by a Business Center shipping service that has a weight condition. If all your services have weight conditions, such an offer is published without shipping information.

Validation Rules​

  • Length must be between 1-50 characters
  • Unit must be one of g, kg, lb or oz
  • Value and unit must be separated by a single space, for example 11.2 kg
  • Matching against Business Center. Weights are compared after conversion to grams, so you can use any supported unit. A minimum in a weight condition is inclusive and a maximum is exclusive

Example Values​

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

Valid Value
<g:shipping_weight>11.2 kg</g:shipping_weight>
Click to show more valid XML examples
<g:shipping_weight>11.2 kg</g:shipping_weight>
<g:shipping_weight>11 kg</g:shipping_weight>
<g:shipping_weight>11 g</g:shipping_weight>
<g:shipping_weight>11.2 g</g:shipping_weight>
<g:shipping_weight>11 oz</g:shipping_weight>
<g:shipping_weight>11 lb</g:shipping_weight>

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:shipping_weight>11.,.,.,111</g:shipping_weight>
<g:shipping_weight>unkn-own</g:shipping_weight>
<g:shipping_weight>11 </g:shipping_weight>
<g:shipping_weight>empty value</g:shipping_weight>
<g:shipping_weight>111.222.333 kg</g:shipping_weight>
<g:shipping_weight>11 kilo</g:shipping_weight>

Properties​

PropertyValueDescription
Data TypestringClosest 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
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-08-17

Changed

Documented that this attribute is needed to match shipping services with a weight condition in Business Center.

📅 2022-12-07

Added

Initial definition

References​