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.
Related Fields
Validation Rules
- Length must be between
1-50
characters - Unit must be one of
g
,kg
,lb
oroz
Example Values
Here are examples of how a valid shipping_weight value should look like in XML and CSV (with header) respectively.
- XML
- CSV
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>
Valid Value
shipping_weight
11.2 kg
Click to show more valid CSV examples
shipping_weight
11.2 kg
shipping_weight
11 kg
shipping_weight
11 g
shipping_weight
11.2 g
shipping_weight
11 oz
shipping_weight
11 lb
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.
- XML
- CSV
<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>
danger
danger
danger
Properties
Property | Value | Description |
---|---|---|
Data Type | string | Closest data type in code |
Nested | False | Defines if this field consists of one or more sub-fields |
Case Sensitive | False | If small or large letters matter for this field |
Repeatable | False | If you can supply multiple items of this field (it´s a list) |
Repeatable limit | 0 | If a list, this specifices the max number of items |
Changelog
📅 2022-12-07
Added
Initial definition