POST api/Customer/getcountry
Request Information
URI Parameters
None.
Body Parameters
country_request| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
None. |
|
| region_id | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"region_id": "sample string 2"
}
application/xml, text/xml
Sample:
<country_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models"> <region_id>sample string 2</region_id> <token>sample string 1</token> </country_request>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
country_response| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| country_lists | Collection of country_list |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"country_lists": [
{
"country_name": "sample string 1",
"country_id": "sample string 2"
},
{
"country_name": "sample string 1",
"country_id": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<country_response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models">
<country_lists>
<country_list>
<country_id>sample string 2</country_id>
<country_name>sample string 1</country_name>
</country_list>
<country_list>
<country_id>sample string 2</country_id>
<country_name>sample string 1</country_name>
</country_list>
</country_lists>
<message>sample string 2</message>
<success>true</success>
</country_response>