Skip to main content

quantity

Optional Field

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

Description

The number of items in stock for the shop

Validation Rules

  • Must be in sync with the enums of availability
  • Must not be negative

Example Values

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

Valid Value
<g:quantity>100</g:quantity>
Click to show more valid XML examples
<g:quantity>100</g:quantity>

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.

Properties

PropertyValueDescription
Data TypeintegerClosest 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

📅 2025-02-24

Added

Initial definition

References