POST api/BenefitPlans/{companyId}
Create a new BenefitPlan
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | integer |
Required |
Body Parameters
BenefitPlanNew| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId | integer |
None. |
|
| BenefitPlanTypeId | integer |
None. |
|
| BenefitPlanName | string |
None. |
|
| BenefitAmount | decimal number |
None. |
|
| InsuranceProviderId | integer |
None. |
|
| IPDAmount | decimal number |
None. |
|
| OPDAmount | decimal number |
None. |
|
| DentalAmount | decimal number |
None. |
|
| Over65Amount | decimal number |
None. |
|
| RoomAmount | decimal number |
None. |
|
| IsOver65 | boolean |
None. |
|
| IsRetire | boolean |
None. |
|
| Note | string |
None. |
|
| IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Note": "sample string 1",
"IsActive": true,
"CompanyId": 1,
"BenefitPlanTypeId": 2,
"BenefitPlanName": "sample string 3",
"BenefitAmount": 4.0,
"InsuranceProviderId": 5,
"IPDAmount": 1.0,
"OPDAmount": 1.0,
"DentalAmount": 1.0,
"Over65Amount": 1.0,
"RoomAmount": 1.0,
"IsOver65": true,
"IsRetire": true
}
text/html
Sample:
{"Note":"sample string 1","IsActive":true,"CompanyId":1,"BenefitPlanTypeId":2,"BenefitPlanName":"sample string 3","BenefitAmount":4.0,"InsuranceProviderId":5,"IPDAmount":1.0,"OPDAmount":1.0,"DentalAmount":1.0,"Over65Amount":1.0,"RoomAmount":1.0,"IsOver65":true,"IsRetire":true}
application/xml, text/xml
Sample:
<BenefitPlanNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels"> <BenefitAmount>4</BenefitAmount> <BenefitPlanName>sample string 3</BenefitPlanName> <BenefitPlanTypeId>2</BenefitPlanTypeId> <CompanyId>1</CompanyId> <DentalAmount>1</DentalAmount> <IPDAmount>1</IPDAmount> <InsuranceProviderId>5</InsuranceProviderId> <IsActive>true</IsActive> <IsOver65>true</IsOver65> <IsRetire>true</IsRetire> <Note>sample string 1</Note> <OPDAmount>1</OPDAmount> <Over65Amount>1</Over65Amount> <RoomAmount>1</RoomAmount> </BenefitPlanNew>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResultTypedOfBenefitPlan| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| Errors | Collection of string |
None. |
|
| Data | BenefitPlan |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 1,
"Errors": [
"sample string 1",
"sample string 2"
],
"Data": {
"Note": "sample string 1",
"IsActive": true,
"BenefitPlanId": 1,
"CompanyId": 2,
"BenefitPlanTypeId": 3,
"BenefitPlanTypeName": "sample string 4",
"BenefitPlanName": "sample string 5",
"BenefitAmount": 6.0,
"InsuranceProviderId": 7,
"InsuranceProviderName": "sample string 8",
"HasPlanDocument": true,
"DocumentFileName": "sample string 10",
"DocumentURL": "sample string 11",
"FamilyId": 1,
"InsuranceFileName": "sample string 12",
"InsuranceURL": "sample string 13",
"IPDAmount": 1.0,
"OPDAmount": 1.0,
"DentalAmount": 1.0,
"Over65Amount": 1.0,
"RoomAmount": 1.0,
"IsNewcomer": true,
"IsOver65": true,
"IsRetire": true
}
}
text/html
Sample:
{"Code":1,"Errors":["sample string 1","sample string 2"],"Data":{"Note":"sample string 1","IsActive":true,"BenefitPlanId":1,"CompanyId":2,"BenefitPlanTypeId":3,"BenefitPlanTypeName":"sample string 4","BenefitPlanName":"sample string 5","BenefitAmount":6.0,"InsuranceProviderId":7,"InsuranceProviderName":"sample string 8","HasPlanDocument":true,"DocumentFileName":"sample string 10","DocumentURL":"sample string 11","FamilyId":1,"InsuranceFileName":"sample string 12","InsuranceURL":"sample string 13","IPDAmount":1.0,"OPDAmount":1.0,"DentalAmount":1.0,"Over65Amount":1.0,"RoomAmount":1.0,"IsNewcomer":true,"IsOver65":true,"IsRetire":true}}
application/xml, text/xml
Sample:
<ServiceResultTypedOfBenefitPlanYj8O1tFc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSW.Common.Models">
<Code>1</Code>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
<d2p1:BenefitAmount>6</d2p1:BenefitAmount>
<d2p1:BenefitPlanId>1</d2p1:BenefitPlanId>
<d2p1:BenefitPlanName>sample string 5</d2p1:BenefitPlanName>
<d2p1:BenefitPlanTypeId>3</d2p1:BenefitPlanTypeId>
<d2p1:BenefitPlanTypeName>sample string 4</d2p1:BenefitPlanTypeName>
<d2p1:CompanyId>2</d2p1:CompanyId>
<d2p1:DentalAmount>1</d2p1:DentalAmount>
<d2p1:DocumentFileName>sample string 10</d2p1:DocumentFileName>
<d2p1:DocumentURL>sample string 11</d2p1:DocumentURL>
<d2p1:FamilyId>1</d2p1:FamilyId>
<d2p1:HasPlanDocument>true</d2p1:HasPlanDocument>
<d2p1:IPDAmount>1</d2p1:IPDAmount>
<d2p1:InsuranceFileName>sample string 12</d2p1:InsuranceFileName>
<d2p1:InsuranceProviderId>7</d2p1:InsuranceProviderId>
<d2p1:InsuranceProviderName>sample string 8</d2p1:InsuranceProviderName>
<d2p1:InsuranceURL>sample string 13</d2p1:InsuranceURL>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:IsNewcomer>true</d2p1:IsNewcomer>
<d2p1:IsOver65>true</d2p1:IsOver65>
<d2p1:IsRetire>true</d2p1:IsRetire>
<d2p1:Note>sample string 1</d2p1:Note>
<d2p1:OPDAmount>1</d2p1:OPDAmount>
<d2p1:Over65Amount>1</d2p1:Over65Amount>
<d2p1:RoomAmount>1</d2p1:RoomAmount>
</Data>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
</ServiceResultTypedOfBenefitPlanYj8O1tFc>