POST v1/api/enrollee/productPurchase
Request Information
URI Parameters
None.
Body Parameters
productPurchaseRequestName | Description | Type | Additional information |
---|---|---|---|
device_id | string |
None. |
|
firstName | string |
None. |
|
surname | string |
None. |
|
otherName | string |
None. |
|
dob_MM_dd_yyyy | string |
None. |
|
gender | string |
None. |
|
maritalStatus | string |
None. |
|
emailAddress | string |
None. |
|
mobileNo | string |
None. |
|
_scheme_id | integer |
None. |
|
address | string |
None. |
|
state | string |
None. |
|
preExistingCondition | Collection of string |
None. |
|
passportPicture | string |
None. |
|
dependants | Collection of dependant_Purchase |
None. |
|
creditPurchase | creditNoteData |
None. |
Request Formats
application/json, text/json
Sample:
{ "device_id": "sample string 1", "firstName": "sample string 2", "surname": "sample string 3", "otherName": "sample string 4", "dob_MM_dd_yyyy": "sample string 5", "gender": "sample string 6", "maritalStatus": "sample string 7", "emailAddress": "sample string 8", "mobileNo": "sample string 9", "_scheme_id": 10, "address": "sample string 11", "state": "sample string 12", "preExistingCondition": [ "sample string 1", "sample string 2" ], "passportPicture": "sample string 13", "dependants": [ { "passportPicture": "sample string 1", "surname": "sample string 2", "otherName": "sample string 3", "relationshipType": "sample string 4", "mobileNo": "sample string 5", "dob_MM_dd_yyyy": "sample string 6", "maritalStatus": "sample string 7", "gender": "sample string 8" }, { "passportPicture": "sample string 1", "surname": "sample string 2", "otherName": "sample string 3", "relationshipType": "sample string 4", "mobileNo": "sample string 5", "dob_MM_dd_yyyy": "sample string 6", "maritalStatus": "sample string 7", "gender": "sample string 8" } ], "creditPurchase": { "company": "sample string 1", "creditNote": "sample string 2", "useCreditNote": true } }
application/xml, text/xml
Sample:
<productPurchaseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.api_Main.productPurchase"> <_scheme_id>10</_scheme_id> <address>sample string 11</address> <creditPurchase> <company>sample string 1</company> <creditNote>sample string 2</creditNote> <useCreditNote>true</useCreditNote> </creditPurchase> <dependants> <productPurchaseRequest.dependant_Purchase> <dob_MM_dd_yyyy>sample string 6</dob_MM_dd_yyyy> <gender>sample string 8</gender> <maritalStatus>sample string 7</maritalStatus> <mobileNo>sample string 5</mobileNo> <otherName>sample string 3</otherName> <passportPicture>sample string 1</passportPicture> <relationshipType>sample string 4</relationshipType> <surname>sample string 2</surname> </productPurchaseRequest.dependant_Purchase> <productPurchaseRequest.dependant_Purchase> <dob_MM_dd_yyyy>sample string 6</dob_MM_dd_yyyy> <gender>sample string 8</gender> <maritalStatus>sample string 7</maritalStatus> <mobileNo>sample string 5</mobileNo> <otherName>sample string 3</otherName> <passportPicture>sample string 1</passportPicture> <relationshipType>sample string 4</relationshipType> <surname>sample string 2</surname> </productPurchaseRequest.dependant_Purchase> </dependants> <device_id>sample string 1</device_id> <dob_MM_dd_yyyy>sample string 5</dob_MM_dd_yyyy> <emailAddress>sample string 8</emailAddress> <firstName>sample string 2</firstName> <gender>sample string 6</gender> <maritalStatus>sample string 7</maritalStatus> <mobileNo>sample string 9</mobileNo> <otherName>sample string 4</otherName> <passportPicture>sample string 13</passportPicture> <preExistingCondition xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </preExistingCondition> <state>sample string 12</state> <surname>sample string 3</surname> </productPurchaseRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"device_id":"sample string 1","firstName":"sample string 2","surname":"sample string 3","otherName":"sample string 4","dob_MM_dd_yyyy":"sample string 5","gender":"sample string 6","maritalStatus":"sample string 7","emailAddress":"sample string 8","mobileNo":"sample string 9","_scheme_id":10,"address":"sample string 11","state":"sample string 12","preExistingCondition":["sample string 1","sample string 2"],"passportPicture":"sample string 13","dependants":[{"passportPicture":"sample string 1","surname":"sample string 2","otherName":"sample string 3","relationshipType":"sample string 4","mobileNo":"sample string 5","dob_MM_dd_yyyy":"sample string 6","maritalStatus":"sample string 7","gender":"sample string 8"},{"passportPicture":"sample string 1","surname":"sample string 2","otherName":"sample string 3","relationshipType":"sample string 4","mobileNo":"sample string 5","dob_MM_dd_yyyy":"sample string 6","maritalStatus":"sample string 7","gender":"sample string 8"}],"creditPurchase":{"company":"sample string 1","creditNote":"sample string 2","useCreditNote":true}}
Response Information
Resource Description
productPurchaseResultName | Description | Type | Additional information |
---|---|---|---|
success | boolean |
None. |
|
errorMsg | string |
None. |
|
premium | decimal number |
None. |
|
paymentUrl | string |
None. |
|
referneceNo | string |
None. |
|
access_code | string |
None. |
|
webE_IDCard | string |
None. |
|
enrolleeNo | string |
None. |
|
debiteNoteNo | string |
None. |
|
messsage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "errorMsg": "sample string 2", "premium": 3.0, "paymentUrl": "sample string 4", "referneceNo": "sample string 5", "access_code": "sample string 6", "webE_IDCard": "sample string 7", "enrolleeNo": "sample string 8", "debiteNoteNo": "sample string 9", "messsage": "sample string 10" }
application/xml, text/xml
Sample:
<productPurchaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enrrolleeApp.Models.api_Main.productPurchase"> <access_code>sample string 6</access_code> <debiteNoteNo>sample string 9</debiteNoteNo> <enrolleeNo>sample string 8</enrolleeNo> <errorMsg>sample string 2</errorMsg> <messsage>sample string 10</messsage> <paymentUrl>sample string 4</paymentUrl> <premium>3</premium> <referneceNo>sample string 5</referneceNo> <success>true</success> <webE_IDCard>sample string 7</webE_IDCard> </productPurchaseResult>
text/html
Sample:
{"success":true,"errorMsg":"sample string 2","premium":3.0,"paymentUrl":"sample string 4","referneceNo":"sample string 5","access_code":"sample string 6","webE_IDCard":"sample string 7","enrolleeNo":"sample string 8","debiteNoteNo":"sample string 9","messsage":"sample string 10"}