POST api/mobile/v1/editpaoffer?withdownload={withdownload}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
withdownload

boolean

Default value is False

Body Parameters

OFFER_PAOFFERS
NameDescriptionTypeAdditional information
OFFER_PAOFFERS_ID

integer

None.

OFFER_CODE

string

None.

OFFER_SERIAL

integer

None.

POLICY_HOLDER_TITLE

string

None.

POLICY_HOLDER_NAME

string

None.

POLICY_HOLDER_ADDRESS

string

None.

POLICY_HOLDER_TELEPHONE

string

None.

POLICY_HOLDER_GENDER

string

None.

POLICY_HOLDER_EMAIL

string

None.

POLICY_HOLDER_POBOX

string

None.

INSURED_NAME

string

None.

INSURED_BIRTHDATE

string

None.

WORKERSNATIONALITY_ID

integer

None.

INSURED_IDCARD

string

None.

INSURED_GENDER

string

None.

PAOCCUPATIONS_ID

integer

None.

EMPLOYEE_STATUS

string

None.

TOTALPREMIUM

integer

None.

RECEIVEDPREMIUM

integer

None.

ENTRY_USER_ID

integer

None.

SUBUSERS_ID

integer

None.

LoggedInEmail

string

None.

PrintType

string

None.

BrokerCode

string

None.

WithConditions

boolean

None.

PACovers

Collection of PACovers

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "OFFER_PAOFFERS_ID": 1,
  "OFFER_CODE": "sample string 1",
  "OFFER_SERIAL": 1,
  "POLICY_HOLDER_TITLE": "sample string 2",
  "POLICY_HOLDER_NAME": "sample string 3",
  "POLICY_HOLDER_ADDRESS": "sample string 4",
  "POLICY_HOLDER_TELEPHONE": "sample string 5",
  "POLICY_HOLDER_GENDER": "sample string 6",
  "POLICY_HOLDER_EMAIL": "sample string 7",
  "POLICY_HOLDER_POBOX": "sample string 8",
  "INSURED_NAME": "sample string 9",
  "INSURED_BIRTHDATE": "sample string 10",
  "WORKERSNATIONALITY_ID": 1,
  "INSURED_IDCARD": "sample string 11",
  "INSURED_GENDER": "sample string 12",
  "PAOCCUPATIONS_ID": 1,
  "EMPLOYEE_STATUS": "sample string 13",
  "TOTALPREMIUM": 1,
  "RECEIVEDPREMIUM": 1,
  "ENTRY_USER_ID": 1,
  "SUBUSERS_ID": 1,
  "LoggedInEmail": "sample string 14",
  "PrintType": "sample string 15",
  "BrokerCode": "sample string 16",
  "WithConditions": true,
  "PACovers": [
    {
      "OFFER_PACOVERAGEDATA_ID": 1,
      "CoverDesc_EN": "sample string 1",
      "CoverDesc_AR": "sample string 2",
      "CalculatedSumInsured": 1,
      "DeductibleDesc_EN": "sample string 3",
      "DeductibleDesc_AR": "sample string 4",
      "CalculatedPrem": 1,
      "OFFER_PAOFFERS_ID": 1,
      "BasicCover": true,
      "OFFER_PACOVERS_ID": 1,
      "RelatedCover": 1,
      "CoverRelatedCover": 1,
      "AdditionalSumInsured": true,
      "IsChecked": true,
      "Rate": 1.0
    },
    {
      "OFFER_PACOVERAGEDATA_ID": 1,
      "CoverDesc_EN": "sample string 1",
      "CoverDesc_AR": "sample string 2",
      "CalculatedSumInsured": 1,
      "DeductibleDesc_EN": "sample string 3",
      "DeductibleDesc_AR": "sample string 4",
      "CalculatedPrem": 1,
      "OFFER_PAOFFERS_ID": 1,
      "BasicCover": true,
      "OFFER_PACOVERS_ID": 1,
      "RelatedCover": 1,
      "CoverRelatedCover": 1,
      "AdditionalSumInsured": true,
      "IsChecked": true,
      "Rate": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<OFFER_PAOFFERS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SenbokAPI.Models">
  <BrokerCode>sample string 16</BrokerCode>
  <EMPLOYEE_STATUS>sample string 13</EMPLOYEE_STATUS>
  <ENTRY_USER_ID>1</ENTRY_USER_ID>
  <INSURED_BIRTHDATE>sample string 10</INSURED_BIRTHDATE>
  <INSURED_GENDER>sample string 12</INSURED_GENDER>
  <INSURED_IDCARD>sample string 11</INSURED_IDCARD>
  <INSURED_NAME>sample string 9</INSURED_NAME>
  <LoggedInEmail>sample string 14</LoggedInEmail>
  <OFFER_CODE>sample string 1</OFFER_CODE>
  <OFFER_PAOFFERS_ID>1</OFFER_PAOFFERS_ID>
  <OFFER_SERIAL>1</OFFER_SERIAL>
  <PACovers>
    <PACovers>
      <AdditionalSumInsured>true</AdditionalSumInsured>
      <BasicCover>true</BasicCover>
      <CalculatedPrem>1</CalculatedPrem>
      <CalculatedSumInsured>1</CalculatedSumInsured>
      <CoverDesc_AR>sample string 2</CoverDesc_AR>
      <CoverDesc_EN>sample string 1</CoverDesc_EN>
      <CoverRelatedCover>1</CoverRelatedCover>
      <DeductibleDesc_AR>sample string 4</DeductibleDesc_AR>
      <DeductibleDesc_EN>sample string 3</DeductibleDesc_EN>
      <IsChecked>true</IsChecked>
      <OFFER_PACOVERAGEDATA_ID>1</OFFER_PACOVERAGEDATA_ID>
      <OFFER_PACOVERS_ID>1</OFFER_PACOVERS_ID>
      <OFFER_PAOFFERS_ID>1</OFFER_PAOFFERS_ID>
      <Rate>1</Rate>
      <RelatedCover>1</RelatedCover>
    </PACovers>
    <PACovers>
      <AdditionalSumInsured>true</AdditionalSumInsured>
      <BasicCover>true</BasicCover>
      <CalculatedPrem>1</CalculatedPrem>
      <CalculatedSumInsured>1</CalculatedSumInsured>
      <CoverDesc_AR>sample string 2</CoverDesc_AR>
      <CoverDesc_EN>sample string 1</CoverDesc_EN>
      <CoverRelatedCover>1</CoverRelatedCover>
      <DeductibleDesc_AR>sample string 4</DeductibleDesc_AR>
      <DeductibleDesc_EN>sample string 3</DeductibleDesc_EN>
      <IsChecked>true</IsChecked>
      <OFFER_PACOVERAGEDATA_ID>1</OFFER_PACOVERAGEDATA_ID>
      <OFFER_PACOVERS_ID>1</OFFER_PACOVERS_ID>
      <OFFER_PAOFFERS_ID>1</OFFER_PAOFFERS_ID>
      <Rate>1</Rate>
      <RelatedCover>1</RelatedCover>
    </PACovers>
  </PACovers>
  <PAOCCUPATIONS_ID>1</PAOCCUPATIONS_ID>
  <POLICY_HOLDER_ADDRESS>sample string 4</POLICY_HOLDER_ADDRESS>
  <POLICY_HOLDER_EMAIL>sample string 7</POLICY_HOLDER_EMAIL>
  <POLICY_HOLDER_GENDER>sample string 6</POLICY_HOLDER_GENDER>
  <POLICY_HOLDER_NAME>sample string 3</POLICY_HOLDER_NAME>
  <POLICY_HOLDER_POBOX>sample string 8</POLICY_HOLDER_POBOX>
  <POLICY_HOLDER_TELEPHONE>sample string 5</POLICY_HOLDER_TELEPHONE>
  <POLICY_HOLDER_TITLE>sample string 2</POLICY_HOLDER_TITLE>
  <PrintType>sample string 15</PrintType>
  <RECEIVEDPREMIUM>1</RECEIVEDPREMIUM>
  <SUBUSERS_ID>1</SUBUSERS_ID>
  <TOTALPREMIUM>1</TOTALPREMIUM>
  <WORKERSNATIONALITY_ID>1</WORKERSNATIONALITY_ID>
  <WithConditions>true</WithConditions>
</OFFER_PAOFFERS>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.