Get the selling price of one product
Resolves the selling price of one product variant for a given warehouse, and optionally a customer, applying the price lists, discounts and promotions that the instance has configured. The `is*` flags say which kind of document the price is being quoted for, because a price can differ between a sale, an order and an e-shop basket. Requires `Permissions.Product.View`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerProductId
int32warehouseId?integerint32colorId?integerint32sizeId?integerint32lengthId?integerint32dimensionId?integerint32variantId?|int320companyId?|int320quantitySold?|decimal0discountTotal?|decimal0discountItem?|decimal0sellingPriceWithVat?|decimal0discountFromTheSpecifiedPrice?|int320destinationWarehouseId?|int320discountWithEnquiry?|falseisIntake?|falseisDeliveryNote?|falseisSale?|falseisOrder?|falseisEshop?|falseuserId?|int320application/json- response
currencyId?integerint32discount?numberdecimaldiscountGroupId?integerint32exchangeRate?numberdecimalmaxStockQuantity?numberdecimalminStockQuantity?numberdecimaloptimalStockQuantity?numberdecimalprice?numberdecimalpriceId?integerint32priceWithoutVAT?numberdecimalpromotionId?integerint32quantityBlocked?numberdecimalquantityInStock?numberdecimalquantityInStockAllWarehouses?|decimalquantityOrdered?numberdecimalretailPrice?numberdecimalstockPrice?numberdecimalvatRate?numberdecimalwarehouseSellingPrice?numberdecimalcurl -X GET 'https://<your-instance>/api/products/0/price' \ -H 'Authorization: Bearer <access-token>'{ "currencyId": 0, "discount": 0, "discountGroupId": 0, "exchangeRate": 0, "maxStockQuantity": 0, "minStockQuantity": 0, "optimalStockQuantity": 0, "price": 0, "priceId": 0, "priceWithoutVAT": 0, "promotionId": 0, "quantityBlocked": 0, "quantityInStock": 0, "quantityInStockAllWarehouses": 0, "quantityOrdered": 0, "retailPrice": 0, "stockPrice": 0, "vatRate": 0, "warehouseSellingPrice": 0}List a product's photos GET
Returns the photo slots of the product with their metadata. Fetch the image bytes themselves from `GET {productId}/photo`. Requires `Permissions.Product.View`.
Get a purchase price from a supplier GET
Returns the purchase price agreed with `supplierId` that is valid on `priceDate`. Requires `Permissions.Product.View`.