GetProductInformations (REST)
Last updated
Last updated
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
URL: /Shoxl/v1/GetProductInformations Method: POST
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:
Parameter | Type | Description |
---|---|---|
}
Response body:
}]
}
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
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
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) nullable: true
This field is deprecated. Use the taxPercentage field instead.
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.
taxPercentage
number($double) nullable: true
The tax percentage of the product
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
discountAmountPerItemExclVat
number($double) nullable: true
Discount amount on the default net price. 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 given discount on the default net 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) nullable: true
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. Can be set to null if no upper bound is available.