POST api/mobile/v1/sharemedicaloffer?isAjial={isAjial}&lang={lang}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isAjial

boolean

Default value is False

lang

string

Default value is en

Body Parameters

OFFER_MEDICALOFFER
NameDescriptionTypeAdditional information
OFFER_MEDICALOFFER_ID

integer

None.

OfferCode

string

None.

OfferSerial

integer

None.

ProposerName

string

None.

OFFER_MEDICALPROGCODE_ID

integer

None.

Class

string

None.

NbPersons

integer

None.

Cnss

string

None.

Gender

string

None.

BrokerCode

string

None.

AgentCode

string

None.

OfferDate

string

None.

Address

string

None.

Phone

string

None.

Email

string

None.

ENTRY_USER_ID

integer

None.

SUBUSERS_ID

integer

None.

OFFER_MEDICALPROGCLASS_ID

integer

None.

My_Members

Collection of OFFER_MEDICALOFFER_DETAILS

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "OFFER_MEDICALOFFER_ID": 1,
  "OfferCode": "sample string 2",
  "OfferSerial": 3,
  "ProposerName": "sample string 4",
  "OFFER_MEDICALPROGCODE_ID": 5,
  "Class": "sample string 6",
  "NbPersons": 7,
  "Cnss": "sample string 8",
  "Gender": "sample string 9",
  "BrokerCode": "sample string 10",
  "AgentCode": "sample string 11",
  "OfferDate": "sample string 12",
  "Address": "sample string 13",
  "Phone": "sample string 14",
  "Email": "sample string 15",
  "ENTRY_USER_ID": 16,
  "SUBUSERS_ID": 17,
  "OFFER_MEDICALPROGCLASS_ID": 18,
  "My_Members": [
    {
      "OFFER_MEDICALOFFER_DETAILS_ID": 1,
      "MEMBER_NAME": "sample string 2",
      "MEMBER_BIRTHDATE": 3,
      "MEMBER_GENDER": "sample string 4",
      "MEMBER_RELATION": "sample string 5",
      "OFFER_MEDICALOFFER_ID": 6,
      "OFFER_MEDICALPROGCODE_ID": 7,
      "Class": "sample string 8",
      "NbPersons": 9,
      "Cnss": "sample string 10",
      "Premium": 11.0,
      "Deduct300": 12.0,
      "Deduct500": 13.0,
      "Deduct1000": 14.0,
      "Ambulatory": 15.0,
      "Medecine": 16.0,
      "DoctorVisit": 17.0,
      "AmbulatoryLimited": 18.0
    },
    {
      "OFFER_MEDICALOFFER_DETAILS_ID": 1,
      "MEMBER_NAME": "sample string 2",
      "MEMBER_BIRTHDATE": 3,
      "MEMBER_GENDER": "sample string 4",
      "MEMBER_RELATION": "sample string 5",
      "OFFER_MEDICALOFFER_ID": 6,
      "OFFER_MEDICALPROGCODE_ID": 7,
      "Class": "sample string 8",
      "NbPersons": 9,
      "Cnss": "sample string 10",
      "Premium": 11.0,
      "Deduct300": 12.0,
      "Deduct500": 13.0,
      "Deduct1000": 14.0,
      "Ambulatory": 15.0,
      "Medecine": 16.0,
      "DoctorVisit": 17.0,
      "AmbulatoryLimited": 18.0
    }
  ]
}

application/xml, text/xml

Sample:
<SenbokModel.OFFER_MEDICALOFFER xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SenbokAPI.Models">
  <Address>sample string 13</Address>
  <AgentCode>sample string 11</AgentCode>
  <BrokerCode>sample string 10</BrokerCode>
  <Class>sample string 6</Class>
  <Cnss>sample string 8</Cnss>
  <ENTRY_USER_ID>16</ENTRY_USER_ID>
  <Email>sample string 15</Email>
  <Gender>sample string 9</Gender>
  <My_Members>
    <SenbokModel.OFFER_MEDICALOFFER_DETAILS>
      <Ambulatory>15</Ambulatory>
      <AmbulatoryLimited>18</AmbulatoryLimited>
      <Class>sample string 8</Class>
      <Cnss>sample string 10</Cnss>
      <Deduct1000>14</Deduct1000>
      <Deduct300>12</Deduct300>
      <Deduct500>13</Deduct500>
      <DoctorVisit>17</DoctorVisit>
      <MEMBER_BIRTHDATE>3</MEMBER_BIRTHDATE>
      <MEMBER_GENDER>sample string 4</MEMBER_GENDER>
      <MEMBER_NAME>sample string 2</MEMBER_NAME>
      <MEMBER_RELATION>sample string 5</MEMBER_RELATION>
      <Medecine>16</Medecine>
      <NbPersons>9</NbPersons>
      <OFFER_MEDICALOFFER_DETAILS_ID>1</OFFER_MEDICALOFFER_DETAILS_ID>
      <OFFER_MEDICALOFFER_ID>6</OFFER_MEDICALOFFER_ID>
      <OFFER_MEDICALPROGCODE_ID>7</OFFER_MEDICALPROGCODE_ID>
      <Premium>11</Premium>
    </SenbokModel.OFFER_MEDICALOFFER_DETAILS>
    <SenbokModel.OFFER_MEDICALOFFER_DETAILS>
      <Ambulatory>15</Ambulatory>
      <AmbulatoryLimited>18</AmbulatoryLimited>
      <Class>sample string 8</Class>
      <Cnss>sample string 10</Cnss>
      <Deduct1000>14</Deduct1000>
      <Deduct300>12</Deduct300>
      <Deduct500>13</Deduct500>
      <DoctorVisit>17</DoctorVisit>
      <MEMBER_BIRTHDATE>3</MEMBER_BIRTHDATE>
      <MEMBER_GENDER>sample string 4</MEMBER_GENDER>
      <MEMBER_NAME>sample string 2</MEMBER_NAME>
      <MEMBER_RELATION>sample string 5</MEMBER_RELATION>
      <Medecine>16</Medecine>
      <NbPersons>9</NbPersons>
      <OFFER_MEDICALOFFER_DETAILS_ID>1</OFFER_MEDICALOFFER_DETAILS_ID>
      <OFFER_MEDICALOFFER_ID>6</OFFER_MEDICALOFFER_ID>
      <OFFER_MEDICALPROGCODE_ID>7</OFFER_MEDICALPROGCODE_ID>
      <Premium>11</Premium>
    </SenbokModel.OFFER_MEDICALOFFER_DETAILS>
  </My_Members>
  <NbPersons>7</NbPersons>
  <OFFER_MEDICALOFFER_ID>1</OFFER_MEDICALOFFER_ID>
  <OFFER_MEDICALPROGCLASS_ID>18</OFFER_MEDICALPROGCLASS_ID>
  <OFFER_MEDICALPROGCODE_ID>5</OFFER_MEDICALPROGCODE_ID>
  <OfferCode>sample string 2</OfferCode>
  <OfferDate>sample string 12</OfferDate>
  <OfferSerial>3</OfferSerial>
  <Phone>sample string 14</Phone>
  <ProposerName>sample string 4</ProposerName>
  <SUBUSERS_ID>17</SUBUSERS_ID>
</SenbokModel.OFFER_MEDICALOFFER>

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

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.