GET declaration-data/current/itemstates/{id}

Get the values from a declaration from Fiscaal Gemak.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the declaration.

integer

Required

Body Parameters

None.

Response Information

Resource Description

The DeclarationModelExportViewModel, containing information the values and party information.

Collection of FiscaalGemak.Web.Api.Models.Models.DeclarationDataViewModel
NameDescriptionTypeAdditional information
ClientId

integer

None.

ItemStates

Collection of FiscaalGemak.Web.Api.Models.Models.ItemStateViewModel

None.

PartyIndex

integer

None.

PartyType

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ClientId": 1,
    "ItemStates": [
      {
        "Index": 1,
        "ItemName": "sample string 1",
        "Residence": "sample string 2",
        "Time": "sample string 3",
        "Value": {}
      },
      {
        "Index": 1,
        "ItemName": "sample string 1",
        "Residence": "sample string 2",
        "Time": "sample string 3",
        "Value": {}
      }
    ],
    "PartyIndex": 1,
    "PartyType": "sample string 1"
  },
  {
    "ClientId": 1,
    "ItemStates": [
      {
        "Index": 1,
        "ItemName": "sample string 1",
        "Residence": "sample string 2",
        "Time": "sample string 3",
        "Value": {}
      },
      {
        "Index": 1,
        "ItemName": "sample string 1",
        "Residence": "sample string 2",
        "Time": "sample string 3",
        "Value": {}
      }
    ],
    "PartyIndex": 1,
    "PartyType": "sample string 1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDeclarationDataViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiscaalGemak.Web.Api.Models.Models">
  <DeclarationDataViewModel>
    <ClientId>1</ClientId>
    <ItemStates>
      <ItemStateViewModel>
        <Index>1</Index>
        <ItemName>sample string 1</ItemName>
        <Residence>sample string 2</Residence>
        <Time>sample string 3</Time>
        <Value />
      </ItemStateViewModel>
      <ItemStateViewModel>
        <Index>1</Index>
        <ItemName>sample string 1</ItemName>
        <Residence>sample string 2</Residence>
        <Time>sample string 3</Time>
        <Value />
      </ItemStateViewModel>
    </ItemStates>
    <PartyIndex>1</PartyIndex>
    <PartyType>sample string 1</PartyType>
  </DeclarationDataViewModel>
  <DeclarationDataViewModel>
    <ClientId>1</ClientId>
    <ItemStates>
      <ItemStateViewModel>
        <Index>1</Index>
        <ItemName>sample string 1</ItemName>
        <Residence>sample string 2</Residence>
        <Time>sample string 3</Time>
        <Value />
      </ItemStateViewModel>
      <ItemStateViewModel>
        <Index>1</Index>
        <ItemName>sample string 1</ItemName>
        <Residence>sample string 2</Residence>
        <Time>sample string 3</Time>
        <Value />
      </ItemStateViewModel>
    </ItemStates>
    <PartyIndex>1</PartyIndex>
    <PartyType>sample string 1</PartyType>
  </DeclarationDataViewModel>
</ArrayOfDeclarationDataViewModel>