POST api/PricingModel/InsertUpdatePrecingModel
Request Information
URI Parameters
None.
Body Parameters
PricingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| itemCode | string |
None. |
|
| itemName | string |
None. |
|
| UPCNumber | string |
None. |
|
| Employeeid | string |
None. |
|
| itemQuantity | string |
None. |
|
| customerId | string |
None. |
|
| CustomerTypeR | string |
None. |
|
| CustomerTypeD | string |
None. |
|
| itemCategoryId | integer |
None. |
|
| PageSize | integer |
None. |
|
| PageNumber | integer |
None. |
|
| retailCustomerId | string |
None. |
|
| distributorCustomerId | string |
None. |
|
| customerTypeId | string |
None. |
|
| customerGroupId | string |
None. |
|
| isSalesTaxApplicable | boolean |
None. |
|
| isTaxApplied | string |
None. |
|
| deliveryType | string |
None. |
|
| companyId | integer |
None. |
|
| stateId | string |
None. |
|
| isSpecialPricing | string |
None. |
|
| SectionId | integer |
None. |
|
| IsShippingDifferent | boolean |
None. |
|
| IsCashCustomer | boolean |
None. |
|
| Application | string |
None. |
|
| CompanyId | integer |
None. |
|
| PricingModelId | integer |
None. |
|
| PricingModelName | string |
None. |
|
| Description | string |
None. |
|
| EmployeeId | integer |
None. |
|
| IsDeleted | boolean |
None. |
|
| ItemCategoryPricing | ItemCategoryPricing |
None. |
|
| CashandCarrySpecialPricing | Collection of CashandCarrySpecialPricing |
None. |
Request Formats
application/json, text/json
Sample:
{
"itemCode": "sample string 1",
"itemName": "sample string 2",
"UPCNumber": "sample string 3",
"Employeeid": "sample string 4",
"itemQuantity": "sample string 5",
"customerId": "sample string 6",
"CustomerTypeR": "sample string 7",
"CustomerTypeD": "sample string 8",
"itemCategoryId": 1,
"PageSize": 9,
"PageNumber": 10,
"retailCustomerId": "sample string 11",
"distributorCustomerId": "sample string 12",
"customerTypeId": "sample string 13",
"customerGroupId": "sample string 14",
"isSalesTaxApplicable": true,
"isTaxApplied": "sample string 16",
"deliveryType": "sample string 17",
"companyId": 18,
"stateId": "sample string 19",
"isSpecialPricing": "sample string 20",
"SectionId": 21,
"IsShippingDifferent": true,
"IsCashCustomer": true,
"Application": "sample string 24",
"CompanyId": 25,
"PricingModelId": 26,
"PricingModelName": "sample string 27",
"Description": "sample string 28",
"EmployeeId": 29,
"IsDeleted": true,
"ItemCategoryPricing": {
"ItemCategoryPricingId": 1,
"PricingModelId": 2,
"ItemCategoryId": 3,
"Amount": 4.0,
"IsFixed": true,
"CompanyId": 6,
"EmployeeId": 7,
"IsDeleted": true
},
"CashandCarrySpecialPricing": [
{
"PricingId": 1,
"ItemId": 2,
"Amount": 3.0,
"CurrentPrice": 4.0
},
{
"PricingId": 1,
"ItemId": 2,
"Amount": 3.0,
"CurrentPrice": 4.0
}
]
}
application/xml, text/xml
Sample:
<PricingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OMSWebApi.Models">
<Application>sample string 24</Application>
<CashandCarrySpecialPricing>
<CashandCarrySpecialPricing>
<Amount>3</Amount>
<CurrentPrice>4</CurrentPrice>
<ItemId>2</ItemId>
<PricingId>1</PricingId>
</CashandCarrySpecialPricing>
<CashandCarrySpecialPricing>
<Amount>3</Amount>
<CurrentPrice>4</CurrentPrice>
<ItemId>2</ItemId>
<PricingId>1</PricingId>
</CashandCarrySpecialPricing>
</CashandCarrySpecialPricing>
<CompanyId>25</CompanyId>
<CustomerTypeD>sample string 8</CustomerTypeD>
<CustomerTypeR>sample string 7</CustomerTypeR>
<Description>sample string 28</Description>
<EmployeeId>29</EmployeeId>
<Employeeid>sample string 4</Employeeid>
<IsCashCustomer>true</IsCashCustomer>
<IsDeleted>true</IsDeleted>
<IsShippingDifferent>true</IsShippingDifferent>
<ItemCategoryPricing>
<Amount>4</Amount>
<CompanyId>6</CompanyId>
<EmployeeId>7</EmployeeId>
<IsDeleted>true</IsDeleted>
<IsFixed>true</IsFixed>
<ItemCategoryId>3</ItemCategoryId>
<ItemCategoryPricingId>1</ItemCategoryPricingId>
<PricingModelId>2</PricingModelId>
</ItemCategoryPricing>
<PageNumber>10</PageNumber>
<PageSize>9</PageSize>
<PricingModelId>26</PricingModelId>
<PricingModelName>sample string 27</PricingModelName>
<SectionId>21</SectionId>
<UPCNumber>sample string 3</UPCNumber>
<companyId>18</companyId>
<customerGroupId>sample string 14</customerGroupId>
<customerId>sample string 6</customerId>
<customerTypeId>sample string 13</customerTypeId>
<deliveryType>sample string 17</deliveryType>
<distributorCustomerId>sample string 12</distributorCustomerId>
<isSalesTaxApplicable>true</isSalesTaxApplicable>
<isSpecialPricing>sample string 20</isSpecialPricing>
<isTaxApplied>sample string 16</isTaxApplied>
<itemCategoryId>1</itemCategoryId>
<itemCode>sample string 1</itemCode>
<itemName>sample string 2</itemName>
<itemQuantity>sample string 5</itemQuantity>
<retailCustomerId>sample string 11</retailCustomerId>
<stateId>sample string 19</stateId>
</PricingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |