Product identifiers

Product identifiers are used for:

All classes that inherit from ApiProductIdentifierAbstractBase can be used as product identifiers.

Simple identifiers

1 ByManufacturerAndNumber

        public class ByManufacturerAndNumber : ApiProductIdentifierAbstractBase
        {
            public string ManufacturerIdentifier { get; set; }
            public int Number { get; set; }
        }
    

2 ByNumber

Easier to use, only RSK/E-number is required. But throws exception when used for numbers which match several products. Only VVS has around 10 000 old products where this can happen. SEG has no such duplicates.

        public class ByNumber : ApiProductIdentifierAbstractBase
        {
            public int Number { get; set; }
        }
    

3 ByManufacturerAndManufacturerArticleNumber

Usable in cases when RSK/E-number is not available. Throws exception if it matches several products.

        public class ByManufacturerAndManufacturerArticleNumber : ApiProductIdentifierAbstractBase
        {
            public string ManufacturerIdentifier { get; set; }
            public string ManufacturerArticleNumber { get; set; }
        }
    

4 ByManufacturerAndArticleGTIN

Usable in cases where GTIN is a key. Matches only product's GTIN, not GTINs on the (logistics) packages. Throws exception if it matches several products.

        public class ByManufacturerAndArticleGTIN : ApiProductIdentifierAbstractBase
        {
            public string ManufacturerIdentifier { get; set; }
            public string GTIN { get; set; }
        }
    

Flexible identifier

ByCombinedPrioritized

Identifies the product based on the parameters available in the incoming request. Please notice that priotizing is based on which search parameters are present, not if the product is found in the database. It is possible that the first method ByManufacturerAndNumber is chosen, but the product is not found, and the service returns null for a reading request.

For read requests the ByCombinedPrioritized parameter will be converted to a simple identifier.

For write requests, first a ByCombinedPrioritized will be created based on the ApiProduct, then converted to a simple identifier.

        public class ByCombinedPrioritized : ApiProductIdentifierAbstractBase
        {
            public string ManufacturerIdentifier { get; set; }
            public int? Number { get; set; }
            public string ManufacturerArticleNumber { get; set; }
            public string ArticleGTIN { get; set; }
        }