POST external-declaration/{id}/document

Add a document to an existing external declaration in Fiscaal Gemak.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the declaration.

integer

Required

Body Parameters

The ExternalDeclarationDocumentCreateViewModel, containing information about the document to be uploaded to the declaration.

FiscaalGemak.Web.Api.Models.Models.ExternalDeclarationDocumentCreateViewModel
NameDescriptionTypeAdditional information
Document

Collection of byte

Required

DocumentType

FiscaalGemak.Web.Models.Enums.ExternalDeclarationDocumentType

Required

FileName

string

Required

String length: inclusive between 0 and 100

Request Formats

application/json, text/json

Sample:
{
  "Document": "QEA=",
  "DocumentType": 0,
  "FileName": "sample string 1"
}

application/xml, text/xml

Sample:
<ExternalDeclarationDocumentCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiscaalGemak.Web.Api.Models.Models">
  <Document>QEA=</Document>
  <DocumentType>Unknown</DocumentType>
  <FileName>sample string 1</FileName>
</ExternalDeclarationDocumentCreateViewModel>

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.