GET api/AdvanceGB/CRMGetStateList?country={country}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
country

string

Required

Body Parameters

None.

Response Information

Resource Description

MdlStateResponse
NameDescriptionTypeAdditional information
success

string

None.

error_message

string

None.

data

Collection of MdlState

None.

Response Formats

application/json, text/json

Sample:
{
  "success": "sample string 1",
  "error_message": "sample string 2",
  "data": [
    {
      "state_code": "sample string 1",
      "state": "sample string 2"
    },
    {
      "state_code": "sample string 1",
      "state": "sample string 2"
    }
  ]
}

text/html

Sample:
{"success":"sample string 1","error_message":"sample string 2","data":[{"state_code":"sample string 1","state":"sample string 2"},{"state_code":"sample string 1","state":"sample string 2"}]}

application/xml, text/xml

Sample:
<MdlStateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Advance.Models">
  <data>
    <MdlState>
      <state>sample string 2</state>
      <state_code>sample string 1</state_code>
    </MdlState>
    <MdlState>
      <state>sample string 2</state>
      <state_code>sample string 1</state_code>
    </MdlState>
  </data>
  <error_message>sample string 2</error_message>
  <success>sample string 1</success>
</MdlStateResponse>