WinShopAPI docs
ReferenceProduct

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`.

GET
/api/products/{productId}/price

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

productId*integer

ProductId

Formatint32

Query Parameters

warehouseId?integer
Formatint32
colorId?integer
Formatint32
sizeId?integer
Formatint32
lengthId?integer
Formatint32
dimensionId?integer
Formatint32
variantId?|
Formatint32
Default0
companyId?|
Formatint32
Default0
quantitySold?|
Formatdecimal
Default0
discountTotal?|
Formatdecimal
Default0
discountItem?|
Formatdecimal
Default0
sellingPriceWithVat?|
Formatdecimal
Default0
discountFromTheSpecifiedPrice?|
Formatint32
Default0
destinationWarehouseId?|
Formatint32
Default0
discountWithEnquiry?|
Defaultfalse
isIntake?|
Defaultfalse
isDeliveryNote?|
Defaultfalse
isSale?|
Defaultfalse
isOrder?|
Defaultfalse
isEshop?|
Defaultfalse
userId?|
Formatint32
Default0

Response Body

application/json
  1. response
currencyId?integer
Formatint32
discount?number
Formatdecimal
discountGroupId?integer
Formatint32
exchangeRate?number
Formatdecimal
maxStockQuantity?number
Formatdecimal
minStockQuantity?number
Formatdecimal
optimalStockQuantity?number
Formatdecimal
price?number
Formatdecimal
priceId?integer
Formatint32
priceWithoutVAT?number
Formatdecimal
promotionId?integer
Formatint32
quantityBlocked?number
Formatdecimal
quantityInStock?number
Formatdecimal
quantityInStockAllWarehouses?|
Formatdecimal
quantityOrdered?number
Formatdecimal
retailPrice?number
Formatdecimal
stockPrice?number
Formatdecimal
vatRate?number
Formatdecimal
warehouseSellingPrice?number
Formatdecimal
curl -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}