POST api/HealthInsuranceTicket

Request Information

URI Parameters

None.

Body Parameters

HealthInsuranceTicketModels
NameDescriptionTypeAdditional information
referenceno

string

Required

clientname

string

Required

existingpolicyno

string

None.

policynumber

string

Required

policydate

date

Required

renewaldate

date

Required

activationdate

date

None.

chequefavoring

string

Matching regular expression pattern: C|P

censuscategory

string

Matching regular expression pattern: A|B|C|D

noofpayments

integer

Required

paymentmethod

string

Required

premium

decimal number

Required

VATamount

decimal number

Required

clientpremium

decimal number

Required

remarks

string

None.

invoiceno

string

Required

invoicedate

date

Data type: Date

invoiceamount

decimal number

None.

invoiceVATAmount

decimal number

None.

taxinvoiceno

string

Required

taxinvoicedate

date

Data type: Date

commissionamount

decimal number

None.

commissionVATamount

decimal number

None.

EndorsementType

string

Matching regular expression pattern: EA|ED|EC|ER

Request Formats

application/json, text/json

Sample:
{
  "referenceno": "sample string 1",
  "clientname": "sample string 2",
  "existingpolicyno": "sample string 3",
  "policynumber": "sample string 4",
  "policydate": "2018-11-14T21:59:59.929+04:00",
  "renewaldate": "2018-11-14T21:59:59.929+04:00",
  "activationdate": "2018-11-14T21:59:59.929+04:00",
  "chequefavoring": "sample string 8",
  "censuscategory": "sample string 9",
  "noofpayments": 1,
  "paymentmethod": "sample string 10",
  "premium": 11.0,
  "VATamount": 12.0,
  "clientpremium": 13.0,
  "remarks": "sample string 14",
  "invoiceno": "sample string 15",
  "invoicedate": "2018-11-14T21:59:59.929+04:00",
  "invoiceamount": 17.0,
  "invoiceVATAmount": 18.0,
  "taxinvoiceno": "sample string 19",
  "taxinvoicedate": "2018-11-14T21:59:59.929+04:00",
  "commissionamount": 21.0,
  "commissionVATamount": 22.0,
  "EndorsementType": "sample string 23"
}

application/xml, text/xml

Sample:
<HealthInsuranceTicketModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiPromenna.Models">
  <EndorsementType>sample string 23</EndorsementType>
  <VATamount>12</VATamount>
  <activationdate>2018-11-14T21:59:59.929+04:00</activationdate>
  <censuscategory>sample string 9</censuscategory>
  <chequefavoring>sample string 8</chequefavoring>
  <clientname>sample string 2</clientname>
  <clientpremium>13</clientpremium>
  <commissionVATamount>22</commissionVATamount>
  <commissionamount>21</commissionamount>
  <existingpolicyno>sample string 3</existingpolicyno>
  <invoiceVATAmount>18</invoiceVATAmount>
  <invoiceamount>17</invoiceamount>
  <invoicedate>2018-11-14T21:59:59.929+04:00</invoicedate>
  <invoiceno>sample string 15</invoiceno>
  <noofpayments>1</noofpayments>
  <paymentmethod>sample string 10</paymentmethod>
  <policydate>2018-11-14T21:59:59.929+04:00</policydate>
  <policynumber>sample string 4</policynumber>
  <premium>11</premium>
  <referenceno>sample string 1</referenceno>
  <remarks>sample string 14</remarks>
  <renewaldate>2018-11-14T21:59:59.929+04:00</renewaldate>
  <taxinvoicedate>2018-11-14T21:59:59.929+04:00</taxinvoicedate>
  <taxinvoiceno>sample string 19</taxinvoiceno>
</HealthInsuranceTicketModels>

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 'HealthInsuranceTicketModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.