DocCloud API

<back to all web services

GetInvoiceQuery

Requires Authentication
The following routes are available for this service:
GET/invoice/{Id}Get invoice by it's id.
GetInvoiceQuery Parameters:
NameParameterData TypeRequiredDescription
IdpathulongNo
BaseSingleResponse<T> Parameters:
NameParameterData TypeRequiredDescription
ResultformTNo
InvoiceDto Parameters:
NameParameterData TypeRequiredDescription
TypeIdformuintNo
TypeNameformstringNo
SchemaIdformuintNo
InvSrcIdformuintNo
InvSrcNumberformstringNo
NumberformstringNo
OrderNumberformstringNo
TownformstringNo
CreationDateformDateTimeNo
SellDateformDateTimeNo
PaymentDueDateformDateTimeNo
IsFromOcrformboolNo
PaymentTypeIdformuintNo
PaymentTypeformstringNo
PaymentTermsformushortNo
CategoryIdformuintNo
CategoryNameformstringNo
JpkItemCodeIdformintNo
JpkItemCodeCodeformstringNo
JpkItemCodeNameformstringNo
ListJpkProcedureIdformList<uint>No
ListJpkProcedureformList<InvoiceJpkProcedureDto>No
JpkDocTypeIdformintNo
JpkDocTypeCodeformstringNo
JpkDocTypeNameformstringNo
SellNameformstringNo
SellVatIdformstringNo
SellStreetNameformstringNo
SellStreetNumberformstringNo
SellFlatNumberformstringNo
SellPostalCodeformstringNo
SellTownformstringNo
SellBankNameformstringNo
SellBankAccountNbformstringNo
RecIdformuintNo
RecTypeIdformuintNo
RecCatIdformuintNo
RecNameformstringNo
RecVatIdformstringNo
RecStreetNameformstringNo
RecStreetNumberformstringNo
RecFlatNumberformstringNo
RecPostalCodeformstringNo
RecTownformstringNo
RecCountryIdformintNo
RecIsoCountryformstringNo
RecCountryformstringNo
RecEmailformstringNo
RecPhoneformstringNo
RecBankNameformstringNo
RecBankAccountNbformstringNo
RecIsActualformboolNo
IsReceiverDiffrentformboolNo
ReceiverIdformuint?No
ReceiverTypeIdformuint?No
ReceiverCatIdformuint?No
ReceiverNameformstringNo
ReceiverVatIdformstringNo
ReceiverStreetNameformstringNo
ReceiverStreetNumberformstringNo
ReceiverFlatNumberformstringNo
ReceiverPostalCodeformstringNo
ReceiverTownformstringNo
ReceiverCountryIdformint?No
ReceiverIsoCountryformstringNo
ReceiverCountryformstringNo
ReceiverEmailformstringNo
ReceiverPhoneformstringNo
ReceiverBankNameformstringNo
ReceiverBankAccountNbformstringNo
SwiftformstringNo
ReceiverIsActualformbool?No
InvoicePositionformList<InvoicePositionDto>No
BasePriceformdecimalNo
DiscountformdecimalNo
CurrencyIdformuintNo
CurrencyformstringNo
NettoformdecimalNo
NettoAdvFinalformdecimalNo
Vat5formdecimalNo
Vat8formdecimalNo
Vat23formdecimalNo
VatformdecimalNo
VatBaseformdecimalNo
GrossformdecimalNo
PaidformdecimalNo
ToPaidformdecimalNo
RateDateformDateTimeNo
RateformdecimalNo
StatusIdformintNo
StatusformstringNo
IsPaymentDividedformboolNo
IsReverseChargedformboolNo
SupplierNameformstringNo
RecipientNameformstringNo
MarginReasonIdformuintNo
MarginReasonformstringNo
PrivateNoteformstringNo
RemarksformstringNo
AdditionalRemarksformstringNo
InvoicesDependentformList<InvoiceDependDto>No
InvoiceOrderIdformulongNo
IsMarkedClearformboolNo
AttachmentsformList<FileDocumentDto>No
BaseKeyLongDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformulongNo
InvoiceJpkProcedureDto Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
BaseKeyDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformuintNo
InvoicePositionDto Parameters:
NameParameterData TypeRequiredDescription
ProductIdformuintNo
PosCorrIdformulongNo
InvoiceIdformulongNo
NameformstringNo
CodeformstringNo
QuantityformdecimalNo
UnitIdformuintNo
UnitformstringNo
CurrencyIdformuintNo
CurrencyformstringNo
UnitPriceformdecimalNo
GrossformdecimalNo
NettoformdecimalNo
VatTypeIdformintNo
Vat5formdecimalNo
Vat8formdecimalNo
Vat23formdecimalNo
IsBeforeformboolNo
IsUpdatedformboolNo
IsDeletedformboolNo
InvoiceDependDto Parameters:
NameParameterData TypeRequiredDescription
InvoiceIdformulongNo
InvoiceSrcIdformulongNo
InvoiceSrcNumberformstringNo
InvoiceSrcSellDateformDateTimeNo
InvoiceSrcNettoformdecimalNo
InvoiceSrcVat5formdecimalNo
InvoiceSrcVat8formdecimalNo
InvoiceSrcVat23formdecimalNo
InvoiceSrcGrossformdecimalNo
FileDocumentDto Parameters:
NameParameterData TypeRequiredDescription
ObjectTypeIdformintNo
ObjectTypeNameformstringNo
ObjectIdformulongNo
FileNameformstringNo
FileGuidformstringNo
FileSizeformlongNo
FileTypeformstringNo
ParentFolderIdformulong?No
StatusIdformuintNo
StatusNameformstringNo
OcrStatusformFileOcrStatusNo
OcrResponseformOcrRecognisedDocumentNo
ProcessIdformstringNo
CostInvoiceIdformulongNo
InvoiceIdformulongNo
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /invoice/{Id} HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"result":{"typeId":0,"typeName":"String","schemaId":0,"invSrcId":0,"invSrcNumber":"String","number":"String","orderNumber":"String","town":"String","creationDate":"0001-01-01T00:00:00.0000000Z","sellDate":"0001-01-01T00:00:00.0000000Z","paymentDueDate":"0001-01-01T00:00:00.0000000Z","isFromOcr":false,"paymentTypeId":0,"paymentType":"String","paymentTerms":0,"categoryId":0,"categoryName":"String","jpkItemCodeId":0,"jpkItemCodeCode":"String","jpkItemCodeName":"String","listJpkProcedureId":[0],"listJpkProcedure":[{"code":"String","name":"String","createdById":0,"modifiedById":0,"createdDate":"0001-01-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}],"jpkDocTypeId":0,"jpkDocTypeCode":"String","jpkDocTypeName":"String","sellName":"String","sellVatId":"String","sellStreetName":"String","sellStreetNumber":"String","sellFlatNumber":"String","sellPostalCode":"String","sellTown":"String","sellBankName":"String","sellBankAccountNb":"String","recId":0,"recTypeId":0,"recCatId":0,"recName":"String","recVatId":"String","recStreetName":"String","recStreetNumber":"String","recFlatNumber":"String","recPostalCode":"String","recTown":"String","recCountryId":0,"recIsoCountry":"String","recCountry":"String","recEmail":"String","recPhone":"String","recBankName":"String","recBankAccountNb":"String","recIsActual":false,"isReceiverDiffrent":false,"receiverId":0,"receiverTypeId":0,"receiverCatId":0,"receiverName":"String","receiverVatId":"String","receiverStreetName":"String","receiverStreetNumber":"String","receiverFlatNumber":"String","receiverPostalCode":"String","receiverTown":"String","receiverCountryId":0,"receiverIsoCountry":"String","receiverCountry":"String","receiverEmail":"String","receiverPhone":"String","receiverBankName":"String","receiverBankAccountNb":"String","swift":"String","receiverIsActual":false,"invoicePosition":[{"productId":0,"posCorrId":0,"invoiceId":0,"name":"String","code":"String","quantity":0,"unitId":0,"unit":"String","currencyId":0,"currency":"String","unitPrice":0,"gross":0,"netto":0,"vatTypeId":0,"vat5":0,"vat8":0,"vat23":0,"isBefore":false,"isUpdated":false,"isDeleted":false,"createdById":0,"modifiedById":0,"createdDate":"0001-01-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}],"basePrice":0,"discount":0,"currencyId":0,"currency":"String","netto":0,"nettoAdvFinal":0,"vat5":0,"vat8":0,"vat23":0,"vat":0,"vatBase":0,"gross":0,"paid":0,"toPaid":0,"rateDate":"0001-01-01T00:00:00.0000000Z","rate":0,"statusId":0,"status":"String","isPaymentDivided":false,"isReverseCharged":false,"supplierName":"String","recipientName":"String","marginReasonId":0,"marginReason":"String","privateNote":"String","remarks":"String","additionalRemarks":"String","invoicesDependent":[{"invoiceId":0,"invoiceSrcId":0,"invoiceSrcNumber":"String","invoiceSrcSellDate":"0001-01-01T00:00:00.0000000Z","invoiceSrcNetto":0,"invoiceSrcVat5":0,"invoiceSrcVat8":0,"invoiceSrcVat23":0,"invoiceSrcGross":0,"createdById":0,"modifiedById":0,"createdDate":"0001-01-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}],"invoiceOrderId":0,"isMarkedClear":false,"attachments":[{"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-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}],"createdById":0,"modifiedById":0,"createdDate":"0001-01-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}}