Relative request path: | api/orgs/{organisationId}/items/pricelists |
Property | Description |
---|---|
organisationId | organisation id |
WarehouseId | WarehouseId |
CustomerId | CustomerId |
ItemId | ItemId |
Filter options:
/// GetItemsData search filter.
public class ItemsDataFilter
{
// WarehouseId
public long? WarehouseId { get; set; }
// CustomerId
public long? CustomerId { get; set; }
// ItemId
public long? ItemId { get; set; }
}
Request parameters:
Property | Description |
---|---|
Rows | Returned rows. List of ItemPriceListItem. |
ValidationMessages | Validation messages. List of mMApiValidationMessage. |
This method returns result of type 'SAOP.API.Models.ListResult`1'.
/// ListResult is the return type for all list api methods.
public class ListResult<T>
{
// Returned rows.
public T Rows { get; set; }
// Validation messages.
public List<mMApiValidationMessage> ValidationMessages { get; set; }
}
/// Returns item data including selling price (with and without VAT) for combination of given parameters – warehouse and item or custumer and item.
public class ItemPriceListItem
{
// Item title.
public string Title { get; set; }
// Item code.
public string Code { get; set; }
// Item selling price without VAT.
public Decimal PriceWithoutVAT { get; set; }
// Item selling price with VAT.
public Decimal PriceWithVAT { get; set; }
// Item unit of measurement.
public string UnitOfMeasurement { get; set; }
// Item id.
public mMApiFkField Item { get; set; }
// Warehouse id.
public mMApiFkField Warehouse { get; set; }
// Customer id.
public mMApiFkField Customer { 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; }
}
public class mMApiValidationMessage
{
public string Message { get; set; }
public string PropertyName { get; set; }
}
This method returns result of type 'SAOP.API.Models.ListResult`1'.
/// ListResult is the return type for all list api methods.
class ListResult
{
// Returned rows.
public $Rows;
// Validation messages.
public $ValidationMessages;
}
/// Returns item data including selling price (with and without VAT) for combination of given parameters – warehouse and item or custumer and item.
class ItemPriceListItem
{
// Item title.
public $Title;
// Item code.
public $Code;
// Item selling price without VAT.
public $PriceWithoutVAT;
// Item selling price with VAT.
public $PriceWithVAT;
// Item unit of measurement.
public $UnitOfMeasurement;
// Item id.
public $Item;
// Warehouse id.
public $Warehouse;
// Customer id.
public $Customer;
}
/// 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;
}
class mMApiValidationMessage
{
public $Message;
public $PropertyName;
}
This method returns result of type 'SAOP.API.Models.ListResult`1'.
/// ListResult is the return type for all list api methods.
public class ListResultT
{
// Returned rows.
public T Rows;
// Validation messages.
public List<mMApiValidationMessage> ValidationMessages;
}
/// Returns item data including selling price (with and without VAT) for combination of given parameters – warehouse and item or custumer and item.
public class ItemPriceListItem
{
// Item title.
public String Title;
// Item code.
public String Code;
// Item selling price without VAT.
public Double PriceWithoutVAT;
// Item selling price with VAT.
public Double PriceWithVAT;
// Item unit of measurement.
public String UnitOfMeasurement;
// Item id.
public mMApiFkField Item;
// Warehouse id.
public mMApiFkField Warehouse;
// Customer id.
public mMApiFkField Customer;
}
/// 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;
}
public class mMApiValidationMessage
{
public String Message;
public String PropertyName;
}