DocCloud API

<back to all web services

GetFileDocumentDtoQuery

Requires Authentication
The following routes are available for this service:
GET/filedocument/{Id}Get file document by it's id.
GetFileDocumentDtoQuery Parameters:
NameParameterData TypeRequiredDescription
IdpathulongNo
BaseSingleResponse<T> Parameters:
NameParameterData TypeRequiredDescription
ResultformTNo
FileDocumentDto Parameters:
NameParameterData TypeRequiredDescription
ObjectTypeIdformintNo
ObjectTypeNameformstringNo
ObjectIdformulongNo
FileNameformstringNo
FileGuidformstringNo
FileSizeformlongNo
FileTypeformstringNo
ParentFolderIdformulong?No
StatusIdformuintNo
StatusNameformstringNo
OcrStatusformFileOcrStatusNo
OcrResponseformOcrRecognisedDocumentNo
ProcessIdformstringNo
CostInvoiceIdformulongNo
InvoiceIdformulongNo
BaseKeyLongDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformulongNo
FileOcrStatus Enum:
NameValue
None0
SubmittedForProcessing1
SentForProcessing2
ProcessingInProgress3
Completed4
Error5
NotAvailableYet100
NotAvailableYetFirstRetry101
NotAvailableYetSecondRetry102
NotAvailableYetThirdRetry103
NotAvailableYetFourthRetry104
NotAvailableYetFifthRetry105
OcrRecognisedDocument Parameters:
NameParameterData TypeRequiredDescription
NrInvoiceformstringNo
BankAccountformstringNo
BankNameformstringNo
DateOfIssueformstringNo
SaleDateformstringNo
DateOfPaymentformstringNo
SellerNipformstringNo
SellerNameformstringNo
SellerStreetNameformstringNo
SellerStreetNrformstringNo
SellerLocalNrformstringNo
SellerPlaceformstringNo
SellerZipCodeformstringNo
BuyerNipformstringNo
BuyerNameformstringNo
BuyerStreetNameformstringNo
BuyerStreetNrformstringNo
BuyerLocalNrformstringNo
BuyerPlaceformstringNo
BuyerZipCodeformstringNo
SummaryNettoformstringNo
SummaryVatformstringNo
SummaryGrossformstringNo
PositionsformICollection<OcrRecognisedPosition>No
OcrRecognisedPosition Parameters:
NameParameterData TypeRequiredDescription
LpformstringNo
NameformstringNo
UnitformstringNo
GrossformstringNo
NettoformstringNo
VatformstringNo
VatValueformstringNo
QuantityformstringNo
NettoPriceformstringNo
GrossPriceformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /filedocument/{Id} HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	result: 
	{
		objectTypeId: 0,
		objectTypeName: String,
		objectId: 0,
		fileName: String,
		fileGuid: String,
		fileSize: 0,
		fileType: String,
		parentFolderId: 0,
		statusId: 0,
		statusName: String,
		ocrStatus: 0,
		ocrResponse: 
		{
			nrInvoice: String,
			bankAccount: String,
			bankName: String,
			dateOfIssue: String,
			saleDate: String,
			dateOfPayment: String,
			sellerNip: String,
			sellerName: String,
			sellerStreetName: String,
			sellerStreetNr: String,
			sellerLocalNr: String,
			sellerPlace: String,
			sellerZipCode: String,
			buyerNip: String,
			buyerName: String,
			buyerStreetName: String,
			buyerStreetNr: String,
			buyerLocalNr: String,
			buyerPlace: String,
			buyerZipCode: String,
			summaryNetto: String,
			summaryVat: String,
			summaryGross: String
		},
		processId: String,
		costInvoiceId: 0,
		invoiceId: 0,
		createdById: 0,
		modifiedById: 0,
		createdDate: 0001-01-01,
		modifiedDate: 0001-01-01,
		id: 0
	}
}