POST APIControllers/Voucher/GetTowns
Request Information
URI Parameters
None.
Body Parameters
VoucherTownsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| securityKey | string |
None. |
|
| provinceId | integer |
None. |
|
| itemName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"securityKey": "sample string 1",
"provinceId": 2,
"itemName": "sample string 3"
}
application/xml, text/xml
Sample:
<VoucherTownsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mobile.oneplan.co.za.Models"> <itemName>sample string 3</itemName> <provinceId>2</provinceId> <securityKey>sample string 1</securityKey> </VoucherTownsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfListOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Entity | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"Entity": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ResponseOfArrayOfstringuHEDJ7Dj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnePlan.Core">
<Entity xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Entity>
<Message>sample string 2</Message>
<Success>true</Success>
</ResponseOfArrayOfstringuHEDJ7Dj>