GetProductInformations (REST)

Description

With this method, we want to receive real time product information from the ERP system. It contains customer-specific product information like pricing and discount information. Also stock information is returned. We will use this method to show real time product information on the product detail page in the web shop.

The method requests the productinformations for a list of productnumbers.

Note:

Since ShoxlRestApiSwagger_v6 this interface replaces the deprecated GetProductInformation endpoint which supported only the processing of one productnumber

REST API:

URL: /Shoxl​/v1​/GetProductInformations Method: POST

Changes in ShoxlRestApiSwagger_v8

  • A new field taxPercentage is introduced

  • The field vatCode is changed to nullable and marked as deprecated. The field is preserved for backwards compatiblity in current implementations but must not be used in new implementations.

Request body:

GetProductInformationsRequest{

}

Example:

{
  "accountNumber": "string",
  "productNumbers": ["123","456"]
}

Response body:

GetProductInformationResult[{

}]

QuantityDiscountPrice{

}

Example:

[
  {
    "productNumber": "123",
    "quantityDiscountPrices": [
      {
        "discountAmountPerItemExclVat": 0,
        "discountPercentagePerItem": 0,
        "fromQuantity": 0,
        "nettoPricePerItemExclVat": 0,
        "toQuantity": 0
      }
    ],
    "stock": 0,
    "stockIndicationCode": 0,
    "taxPercentage": 0,
    "baseUnit": "string",
    "priceUnit": 0
  },
  {
    "productNumber": "456",
    "quantityDiscountPrices": [
      {
        "discountAmountPerItemExclVat": 0,
        "discountPercentagePerItem": 0,
        "fromQuantity": 0,
        "nettoPricePerItemExclVat": 0,
        "toQuantity": 0
      }
    ],
    "stock": 0,
    "stockIndicationCode": 0,
    "taxPercentage": 0,
    "baseUnit": "string",
    "priceUnit": 0
  }
]

Last updated