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
Request body:
GetProductInformationsRequest{
accountNumber
string
required
This is the (project) account number of the customer.
productNumbers
[string] required
List of product numbers for the requested product details, this can be a customer-specific product numbers
}
Example:
Response body:
GetProductInformationResult[{
productNumber
string required
quantityDiscountPrices
[QuantityDiscountPrice]
nullable: true
A list of QuantityDiscountPrices. For the complete description check the QuantityDiscountPrice section in the documentation. The QuantityDiscountPrices is used to return quantity price breaks, example; from quantity x use the unit price = y
stock
number($double)
nullable: true
The amount of stock still available for the product
stockIndicationCode
integer($int32)
A stock indication, 1 = in stock (green), 2 = not in stock, short delivery time (orange), 3 = not in stock, longer delivery time (red)
vatCode
integer($int32)
The VAT Code of the product, 1 = percentage from the customer settings, 2 = LOW (6%), 3 = ZERO (0%). This VAT code must be set by the ERP taking into account that this VAT code can be overrulled by the customer settings, for example foreign customers use ZERO as a VAT code, in this case the ERP will return 3 to Shoxl Shop.
baseUnit
string nullable: true
The base unit of the product, eg pce or meter.
priceUnit
number($double)
nullable: true
The quantity on which price is based
}]
QuantityDiscountPrice{
discountAmountPerItemExclVat
number($double) nullable: true
This field can be used to give the calculated Discount Amount using a discount percentage. Or just give a discount amount when no discount percentage is used for the calculation.
discountPercentagePerItem
number($double) nullable: true
A percentage of the give discount on the default netto price per item excluding VAT. When this field is set, the field DiscountAmountPerItemExclVat is required.
fromQuantity
integer($int32) nullable: true
The from quantity where the discount price is valid from
nettoPricePerItemExclVat
number($double)
The calculated netto price per item. This is the price including discounts.
toQuantity
integer($int32) nullable: true
The to quantity where the discount price is valid to
}
Example:
Last updated