GET api/stocks/{shopId}/combinedstock/{variantId}

Provides combined stock quantities, given shop id and variant id. Stock at shop, stock in transfer and stock purchased.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopId

integer

Required

variantId

integer

Required

Body Parameters

None.

Response Information

Resource Description

PublicAPI.Models.CombinedStockDto
NameDescriptionTypeAdditional information
VariantId

Identifier for an item

string

None.

StockInShop

The amount of items in stock at shop

integer

None.

TransferDrafts

The amount of transfer items internally

integer

None.

PurchaseDrafts

The amount of transfer from supplier

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "VariantId": "sample string 1",
  "StockInShop": 2,
  "TransferDrafts": 3,
  "PurchaseDrafts": 4
}

application/xml, text/xml

Sample:
<CombinedStockDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <PurchaseDrafts>4</PurchaseDrafts>
  <StockInShop>2</StockInShop>
  <TransferDrafts>3</TransferDrafts>
  <VariantId>sample string 1</VariantId>
</CombinedStockDto>