Relative request path: | api/orgs/{organisationId}/stocks/{itemId} |
Property | Description |
---|---|
organisationId | organisation id |
itemId | item id |
WarehouseId | Warehouse ID. |
BatchNumber | Batch number. |
Date | Date. |
Filter options:
public class StockItemFilter
{
// Warehouse ID.
public long? WarehouseId { get; set; }
// Batch number.
public string BatchNumber { get; set; }
// Date.
public DateTime? Date { get; set; }
}
Request parameters:
Property | Description |
---|---|
Item | class Item. Item. |
ItemName | Item name. |
ItemCode | Item code. |
ItemEANCode | Item EAN Code. |
UnitOfMeasurement | Item unit of measurement. |
AveragePurchasePrice | Item average purchase price. |
SellingPrice | Item selling price. |
Quantity | Item quantity. |
Value | Item value. |
BatchNumber | Item batch number; present, if results are reported divided by batch number. |
Currency | class Currency. Currency. |
This method returns result of type 'SAOP.API.Models.Stock.StockListItem'.
/// Stock list item details.
public class StockListItem
{
// Item.
public mMApiFkField Item { get; set; }
// Item name.
public string ItemName { get; set; }
// Item code.
public string ItemCode { get; set; }
// Item EAN Code.
public string ItemEANCode { get; set; }
// Item unit of measurement.
public string UnitOfMeasurement { get; set; }
// Item average purchase price.
public Decimal? AveragePurchasePrice { get; set; }
// Item selling price.
public Decimal? SellingPrice { get; set; }
// Item quantity.
public Decimal? Quantity { get; set; }
// Item value.
public Decimal? Value { get; set; }
// Item batch number; present, if results are reported divided by batch number.
public string BatchNumber { get; set; }
// Currency.
public mMApiFkField Currency { get; set; }
}
/// Link with id, name and url to related data.
public class mMApiFkField
{
// Record id.
public long? ID { get; set; }
// Record name.
public string Name { get; private set; }
// Url to full record details.
public string ResourceUrl { get; private set; }
}
This method returns result of type 'SAOP.API.Models.Stock.StockListItem'.
/// Stock list item details.
class StockListItem
{
// Item.
public $Item;
// Item name.
public $ItemName;
// Item code.
public $ItemCode;
// Item EAN Code.
public $ItemEANCode;
// Item unit of measurement.
public $UnitOfMeasurement;
// Item average purchase price.
public $AveragePurchasePrice;
// Item selling price.
public $SellingPrice;
// Item quantity.
public $Quantity;
// Item value.
public $Value;
// Item batch number; present, if results are reported divided by batch number.
public $BatchNumber;
// Currency.
public $Currency;
}
/// Link with id, name and url to related data.
class mMApiFkField
{
// Record id.
public $ID;
// Record name.
public $Name;
// Url to full record details.
public $ResourceUrl;
}
This method returns result of type 'SAOP.API.Models.Stock.StockListItem'.
/// Stock list item details.
public class StockListItem
{
// Item.
public mMApiFkField Item;
// Item name.
public String ItemName;
// Item code.
public String ItemCode;
// Item EAN Code.
public String ItemEANCode;
// Item unit of measurement.
public String UnitOfMeasurement;
// Item average purchase price.
public Double AveragePurchasePrice;
// Item selling price.
public Double SellingPrice;
// Item quantity.
public Double Quantity;
// Item value.
public Double Value;
// Item batch number; present, if results are reported divided by batch number.
public String BatchNumber;
// Currency.
public mMApiFkField Currency;
}
/// Link with id, name and url to related data.
public class mMApiFkField
{
// Record id.
public Long ID;
// Record name.
public String Name;
// Url to full record details.
public String ResourceUrl;
}