POST api/HealthInsurance

Request Information

URI Parameters

None.

Body Parameters

HealthInsuranceModels
NameDescriptionTypeAdditional information
category_code

string

Required

client

string

Required

advisor

string

Required

provider

string

Required

business_status

string

Required

frequency

string

None.

policydate

date

None.

currency_code

string

Required

premium

decimal number

Required

VATamount

decimal number

Required

commission_percentage

decimal number

None.

revenue

decimal number

None.

remarks

string

None.

Request Formats

application/json, text/json

Sample:
{
  "category_code": "sample string 1",
  "client": "sample string 2",
  "advisor": "sample string 3",
  "provider": "sample string 4",
  "business_status": "sample string 5",
  "frequency": "sample string 6",
  "policydate": "2018-07-23T20:58:21.9193437+04:00",
  "currency_code": "sample string 8",
  "premium": 9.0,
  "VATamount": 10.0,
  "commission_percentage": 11.0,
  "revenue": 12.0,
  "remarks": "sample string 13"
}

application/xml, text/xml

Sample:
<HealthInsuranceModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiPromenna.Models">
  <VATamount>10</VATamount>
  <advisor>sample string 3</advisor>
  <business_status>sample string 5</business_status>
  <category_code>sample string 1</category_code>
  <client>sample string 2</client>
  <commission_percentage>11</commission_percentage>
  <currency_code>sample string 8</currency_code>
  <frequency>sample string 6</frequency>
  <policydate>2018-07-23T20:58:21.9193437+04:00</policydate>
  <premium>9</premium>
  <provider>sample string 4</provider>
  <remarks>sample string 13</remarks>
  <revenue>12</revenue>
</HealthInsuranceModels>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HealthInsuranceModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.