POST declaration

Add a new declaration to Fiscaal Gemak.

Request Information

URI Parameters

None.

Body Parameters

The DeclarationCreateViewModel, containing information about the declaration.

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

integer

None.

Deliver

boolean

None.

Files

Collection of string

Required

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "Deliver": true,
  "Files": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DeclarationCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiscaalGemak.Web.Api.Models.Models">
  <ClientId>1</ClientId>
  <Deliver>true</Deliver>
  <Files xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Files>
</DeclarationCreateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The DeclarationResponseModel, containing information about the declaration.

FiscaalGemak.Core.Models.Models.DeclarationResponseModel
NameDescriptionTypeAdditional information
ResponseCode

FiscaalGemak.Core.Models.Enums.DeclarationResponseCode

None.

ResponseMessage

string

None.

DeclarationId

integer

None.

Response Formats

application/json, text/json

Sample:

Sample not available.