POST APIControllers/Voucher/Get?securityKey={securityKey}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| securityKey | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ResponseOfNetcareVoucherViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Entity | NetcareVoucherViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"Entity": {
"VoucherType": [
{
"Price": 1.0,
"ItemName": "sample string 2",
"ItemID": "sample string 3"
},
{
"Price": 1.0,
"ItemName": "sample string 2",
"ItemID": "sample string 3"
}
],
"MembersContact": [
{
"ContactId": 1,
"MobileNumber": "sample string 2"
},
{
"ContactId": 1,
"MobileNumber": "sample string 2"
}
],
"ProvinceViewModel": [
{
"VoucherTypeView": [
{
"VoucherType": {
"Price": 1.0,
"ItemName": "sample string 2",
"ItemID": "sample string 3"
},
"Towns": [
"sample string 1",
"sample string 2"
]
},
{
"VoucherType": {
"Price": 1.0,
"ItemName": "sample string 2",
"ItemID": "sample string 3"
},
"Towns": [
"sample string 1",
"sample string 2"
]
}
],
"ProvinceID": 1,
"ProvinceName": "sample string 2"
},
{
"VoucherTypeView": [
{
"VoucherType": {
"Price": 1.0,
"ItemName": "sample string 2",
"ItemID": "sample string 3"
},
"Towns": [
"sample string 1",
"sample string 2"
]
},
{
"VoucherType": {
"Price": 1.0,
"ItemName": "sample string 2",
"ItemID": "sample string 3"
},
"Towns": [
"sample string 1",
"sample string 2"
]
}
],
"ProvinceID": 1,
"ProvinceName": "sample string 2"
}
]
}
}
application/xml, text/xml
Sample:
<ResponseOfNetcareVoucherViewModelA16EjPBX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core">
<Entity xmlns:d2p1="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models">
<d2p1:MembersContact>
<d2p1:ActiveMobileNumber>
<d2p1:ContactId>1</d2p1:ContactId>
<d2p1:MobileNumber>sample string 2</d2p1:MobileNumber>
</d2p1:ActiveMobileNumber>
<d2p1:ActiveMobileNumber>
<d2p1:ContactId>1</d2p1:ContactId>
<d2p1:MobileNumber>sample string 2</d2p1:MobileNumber>
</d2p1:ActiveMobileNumber>
</d2p1:MembersContact>
<d2p1:ProvinceViewModel>
<d2p1:ProvinceViewModel>
<d2p1:ProvinceID>1</d2p1:ProvinceID>
<d2p1:ProvinceName>sample string 2</d2p1:ProvinceName>
<d2p1:VoucherTypeView>
<d2p1:VoucherTypeViewModel>
<d2p1:Towns xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>sample string 1</d7p1:string>
<d7p1:string>sample string 2</d7p1:string>
</d2p1:Towns>
<d2p1:VoucherType>
<d2p1:ItemID>sample string 3</d2p1:ItemID>
<d2p1:ItemName>sample string 2</d2p1:ItemName>
<d2p1:Price>1</d2p1:Price>
</d2p1:VoucherType>
</d2p1:VoucherTypeViewModel>
<d2p1:VoucherTypeViewModel>
<d2p1:Towns xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>sample string 1</d7p1:string>
<d7p1:string>sample string 2</d7p1:string>
</d2p1:Towns>
<d2p1:VoucherType>
<d2p1:ItemID>sample string 3</d2p1:ItemID>
<d2p1:ItemName>sample string 2</d2p1:ItemName>
<d2p1:Price>1</d2p1:Price>
</d2p1:VoucherType>
</d2p1:VoucherTypeViewModel>
</d2p1:VoucherTypeView>
</d2p1:ProvinceViewModel>
<d2p1:ProvinceViewModel>
<d2p1:ProvinceID>1</d2p1:ProvinceID>
<d2p1:ProvinceName>sample string 2</d2p1:ProvinceName>
<d2p1:VoucherTypeView>
<d2p1:VoucherTypeViewModel>
<d2p1:Towns xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>sample string 1</d7p1:string>
<d7p1:string>sample string 2</d7p1:string>
</d2p1:Towns>
<d2p1:VoucherType>
<d2p1:ItemID>sample string 3</d2p1:ItemID>
<d2p1:ItemName>sample string 2</d2p1:ItemName>
<d2p1:Price>1</d2p1:Price>
</d2p1:VoucherType>
</d2p1:VoucherTypeViewModel>
<d2p1:VoucherTypeViewModel>
<d2p1:Towns xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>sample string 1</d7p1:string>
<d7p1:string>sample string 2</d7p1:string>
</d2p1:Towns>
<d2p1:VoucherType>
<d2p1:ItemID>sample string 3</d2p1:ItemID>
<d2p1:ItemName>sample string 2</d2p1:ItemName>
<d2p1:Price>1</d2p1:Price>
</d2p1:VoucherType>
</d2p1:VoucherTypeViewModel>
</d2p1:VoucherTypeView>
</d2p1:ProvinceViewModel>
</d2p1:ProvinceViewModel>
<d2p1:VoucherType>
<d2p1:VoucherType>
<d2p1:ItemID>sample string 3</d2p1:ItemID>
<d2p1:ItemName>sample string 2</d2p1:ItemName>
<d2p1:Price>1</d2p1:Price>
</d2p1:VoucherType>
<d2p1:VoucherType>
<d2p1:ItemID>sample string 3</d2p1:ItemID>
<d2p1:ItemName>sample string 2</d2p1:ItemName>
<d2p1:Price>1</d2p1:Price>
</d2p1:VoucherType>
</d2p1:VoucherType>
</Entity>
<Message>sample string 2</Message>
<Success>true</Success>
</ResponseOfNetcareVoucherViewModelA16EjPBX>