POST api/TotalAyushCare/GetStates

Documentation for 'GetStates'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "GetDetails": {
    "id": 1,
    "Name": "sample string 2",
    "Mobile": "sample string 3",
    "Pincode": "sample string 4",
    "Address1": "sample string 5",
    "Address2": "sample string 6",
    "LandMark": "sample string 7",
    "City": "sample string 8",
    "State": "sample string 9",
    "Country": "sample string 10",
    "CreatedOn": "2021-11-26T20:37:01.7848826-05:00",
    "Pid": 12,
    "Action": "sample string 13",
    "Source": "sample string 14"
  }
}

application/xml, text/xml

Sample:
<GetStatesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <GetDetails>
    <Action>sample string 13</Action>
    <Address1>sample string 5</Address1>
    <Address2>sample string 6</Address2>
    <City>sample string 8</City>
    <Country>sample string 10</Country>
    <CreatedOn>2021-11-26T20:37:01.7848826-05:00</CreatedOn>
    <LandMark>sample string 7</LandMark>
    <Mobile>sample string 3</Mobile>
    <Name>sample string 2</Name>
    <Pid>12</Pid>
    <Pincode>sample string 4</Pincode>
    <Source>sample string 14</Source>
    <State>sample string 9</State>
    <id>1</id>
  </GetDetails>
</GetStatesRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'GetStatesRequest'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "City": "sample string 3",
  "State": "sample string 4",
  "Country": "sample string 5"
}

application/xml, text/xml

Sample:
<GetStatesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <City>sample string 3</City>
  <Country>sample string 5</Country>
  <State>sample string 4</State>
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <message>sample string 1</message>
  <result>sample string 2</result>
</GetStatesResponse>