POST api/package/add
Request Information
URI Parameters
None.
Body Parameters
ServicePackageEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| PackageId | integer |
None. |
|
| PackageName | string |
None. |
|
| Price | decimal number |
None. |
|
| TotalSaving | decimal number |
None. |
|
| TaxType | string |
None. |
|
| TaxPercentage | decimal number |
None. |
|
| Active | boolean |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedTime | date |
None. |
|
| VendorId | integer |
None. |
|
| ServiceIds | Collection of integer |
None. |
|
| ServiceDuration | integer |
None. |
|
| LocationId | integer |
None. |
|
| Services | Collection of PackageServiceMapEntity |
None. |
Request Formats
application/json, text/json
Sample:
{
"PackageId": 1,
"PackageName": "sample string 2",
"Price": 3.0,
"TotalSaving": 1.0,
"TaxType": "sample string 4",
"TaxPercentage": 1.0,
"Active": true,
"CreatedTime": "2025-12-31T16:35:44.1915074+05:30",
"UpdatedTime": "2025-12-31T16:35:44.1915074+05:30",
"VendorId": 7,
"ServiceIds": [
1,
2
],
"ServiceDuration": 1,
"LocationId": 1,
"Services": [
{
"PackageServiceMapId": 1,
"ProductName": "sample string 2",
"Price": 1.0,
"ProductId": 3,
"PackageId": 4
},
{
"PackageServiceMapId": 1,
"ProductName": "sample string 2",
"Price": 1.0,
"ProductId": 3,
"PackageId": 4
}
]
}
application/xml, text/xml
Sample:
<ServicePackageEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
<Active>true</Active>
<CreatedTime>2025-12-31T16:35:44.1915074+05:30</CreatedTime>
<LocationId>1</LocationId>
<PackageId>1</PackageId>
<PackageName>sample string 2</PackageName>
<Price>3</Price>
<ServiceDuration>1</ServiceDuration>
<ServiceIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ServiceIds>
<Services>
<PackageServiceMapEntity>
<PackageId>4</PackageId>
<PackageServiceMapId>1</PackageServiceMapId>
<Price>1</Price>
<ProductId>3</ProductId>
<ProductName>sample string 2</ProductName>
</PackageServiceMapEntity>
<PackageServiceMapEntity>
<PackageId>4</PackageId>
<PackageServiceMapId>1</PackageServiceMapId>
<Price>1</Price>
<ProductId>3</ProductId>
<ProductName>sample string 2</ProductName>
</PackageServiceMapEntity>
</Services>
<TaxPercentage>1</TaxPercentage>
<TaxType>sample string 4</TaxType>
<TotalSaving>1</TotalSaving>
<UpdatedTime>2025-12-31T16:35:44.1915074+05:30</UpdatedTime>
<VendorId>7</VendorId>
</ServicePackageEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |