Data Object: States

Get State


{{ data.state.get(:id) }}

Parameter Type Description
id required int State Identifier

HHTP/1.1 200 OK
{
     id: 5,
     name: "Kotayk",
     countryId: 1,
     languageId: 1,
     languagePrefix: "en"
}

or

false

Parameter Type Description
id int State identifier
name string State name
countryId int Country identifier
languageId int Request language identifier
languagePrefix string Request language prefix


Get State List by Country


{{ data.state.list({countryId: 1}) }}

Parameter Type Description
countryId required int Country Identifier

HTTP/1.1 200 OK
{
    {
          id: 5,
          name: "Kotayk",
          countryId: 1,
          languageId: 1,
          languagePrefix: "en"
     }
     ...
}

or

[]

Parameter Type Description
id int State identifier
name string State name
countryId int Country identifier
languageId int Request language identifier
languagePrefix string Request language prefix