GET api/NPEBallotResults/ElectoralEventID/{ElectoralEventID}/ProvinceID/{ProvinceID}/MunicipalityID/{MunicipalityID}/VDNumber/{VDNumber}

Returns rolled up results for the National Election for Specified Province, Municipality and Voting District

Request Information

Parameters

NameDescriptionAdditional information
ElectoralEventID
Valid Electoral Event IDs can be obtained by invoking the ElectoralEvent Controller's Get action and passing an ElectoralEventTypeID: api/v1/ElectoralEvent?ElectoralEventTypeID={ElectoralEventTypeID}

Define this parameter in the request URI.

ProvinceID
Valid Province IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID}

Define this parameter in the request URI.

MunicipalityID
Valid Municipality IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID and ProvinceID:" api/v1/Delimitation?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}

Define this parameter in the request URI.

VDNumber
Valid Voting District Numbers can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID, ProvinceID, MunicipalityID and WardID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}&MunicipalityID={MunicipalityID}&WardID={WardID}

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "ElectoralEventID": 1,
  "ElectoralEvent": "sample string 2",
  "ProvinceID": 3,
  "Province": "sample string 4",
  "MunicipalityID": 5,
  "Municipality": "sample string 6",
  "WardID": 7,
  "VDNumber": 8,
  "RegisteredVoters": 9,
  "SpoiltVotes": 10,
  "Section24AVotes": 11,
  "SpecialVotes": 12,
  "PercVoterTurnout": 13.1,
  "TotalVotesCast": 14,
  "TotalValidVotes": 15,
  "VDCount": 16,
  "VDWithResultsCaptured": 17,
  "bResultsComplete": true,
  "PartyBallotResults": [
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5"
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5"
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<NPEBallotVotingDistrictResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models">
  <ElectoralEvent>sample string 2</ElectoralEvent>
  <ElectoralEventID>1</ElectoralEventID>
  <Municipality>sample string 6</Municipality>
  <MunicipalityID>5</MunicipalityID>
  <PartyBallotResults>
    <NPEBallotPartyResult>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
    </NPEBallotPartyResult>
    <NPEBallotPartyResult>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
    </NPEBallotPartyResult>
    <NPEBallotPartyResult>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
    </NPEBallotPartyResult>
  </PartyBallotResults>
  <PercVoterTurnout>13.1</PercVoterTurnout>
  <Province>sample string 4</Province>
  <ProvinceID>3</ProvinceID>
  <RegisteredVoters>9</RegisteredVoters>
  <Section24AVotes>11</Section24AVotes>
  <SpecialVotes>12</SpecialVotes>
  <SpoiltVotes>10</SpoiltVotes>
  <TotalValidVotes>15</TotalValidVotes>
  <TotalVotesCast>14</TotalVotesCast>
  <VDCount>16</VDCount>
  <VDNumber>8</VDNumber>
  <VDWithResultsCaptured>17</VDWithResultsCaptured>
  <WardID>7</WardID>
  <bResultsComplete>true</bResultsComplete>
</NPEBallotVotingDistrictResult>