POST api/v1/general/programPriceLists
Request Information
URI Parameters
None.
Body Parameters
ProgramPriceListsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PriceListId | integer |
None. |
|
| Name | string |
Required Max length: 50 |
|
| YearId | integer |
None. |
|
| ProgramId | integer |
Required |
|
| MonthlyPrice | decimal number |
Required |
|
| ParentPriceListDiscount | decimal number |
None. |
|
| IsDefaultPriceList | boolean |
Required |
|
| RelatedInstrumentPriceListId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"PriceListId": 1,
"Name": "sample string 2",
"YearId": 3,
"ProgramId": 4,
"MonthlyPrice": 5.0,
"ParentPriceListDiscount": 1.0,
"IsDefaultPriceList": true,
"RelatedInstrumentPriceListId": 1
}
application/xml, text/xml
Sample:
<ProgramPriceListsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models"> <Id>1</Id> <IsDefaultPriceList>true</IsDefaultPriceList> <MonthlyPrice>5</MonthlyPrice> <Name>sample string 2</Name> <ParentPriceListDiscount>1</ParentPriceListDiscount> <PriceListId>1</PriceListId> <ProgramId>4</ProgramId> <RelatedInstrumentPriceListId>1</RelatedInstrumentPriceListId> <YearId>3</YearId> </ProgramPriceListsModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>