POST external-declaration

Add a new external declaration to Fiscaal Gemak.

Request Information

URI Parameters

None.

Body Parameters

The DeclarationCreateViewModel, containing information about the declaration.

FiscaalGemak.Web.Api.Models.Models.ExternalDeclarationCreateViewModel
NameDescriptionTypeAdditional information
ClientId

integer

Required

Year

integer

Required

PeriodStart

date

None.

PeriodEnd

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "Year": 2,
  "PeriodStart": "2022-12-02T12:42:20.3783947+01:00",
  "PeriodEnd": "2022-12-02T12:42:20.3783947+01:00"
}

application/xml, text/xml

Sample:
<ExternalDeclarationCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiscaalGemak.Web.Api.Models.Models">
  <ClientId>1</ClientId>
  <PeriodEnd>2022-12-02T12:42:20.3783947+01:00</PeriodEnd>
  <PeriodStart>2022-12-02T12:42:20.3783947+01:00</PeriodStart>
  <Year>2</Year>
</ExternalDeclarationCreateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The ExternalDeclarationResponseModel, containing information about the declaration.

FiscaalGemak.Web.Api.Models.Models.ExternalDeclarationResponseModel
NameDescriptionTypeAdditional information
DeclarationId

integer

None.

ResponseCode

FiscaalGemak.Web.Api.Models.Enums.ExternalDeclarationResponseCode

None.

ResponseMessage

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.