| GET | /costinvoice/{Id} | Get invoice by it's id. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | ulong | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | T | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TypeId | form | int | No | |
| TypeName | form | string | No | |
| InvSrcId | form | uint | No | |
| OrderNumber | form | string | No | |
| InvSrcNumber | form | string | No | |
| Number | form | string | No | |
| Town | form | string | No | |
| CreationDate | form | DateTime | No | |
| SellDate | form | DateTime | No | |
| PaymentDate | form | DateTime | No | |
| PaymentDueDate | form | DateTime | No | |
| ExecutionDate | form | DateTime | No | |
| IsFromOcr | form | bool | No | |
| PaymentTypeId | form | uint | No | |
| PaymentType | form | string | No | |
| PaymentTerms | form | ushort | No | |
| JpkItemCodeId | form | int | No | |
| JpkItemCodeCode | form | string | No | |
| JpkItemCodeName | form | string | No | |
| ListJpkProcedure | form | List<uint> | No | |
| JpkDocTypeId | form | int | No | |
| JpkDocTypeCode | form | string | No | |
| JpkDocTypeName | form | string | No | |
| CategoryId | form | uint | No | |
| CategoryName | form | string | No | |
| ExtTaxableCategoryId | form | uint | No | |
| ExtTaxableCategoryName | form | string | No | |
| SellId | form | uint | No | |
| SellTypeId | form | int | No | |
| SellCatId | form | int | No | |
| SellName | form | string | No | |
| SellVatId | form | string | No | |
| SellStreetName | form | string | No | |
| SellStreetNumber | form | string | No | |
| SellFlatNumber | form | string | No | |
| SellPostalCode | form | string | No | |
| SellTown | form | string | No | |
| SellCountryId | form | int | No | |
| SellIsoCountry | form | string | No | |
| SellCountry | form | string | No | |
| SellEmail | form | string | No | |
| SellPhone | form | string | No | |
| SellBankName | form | string | No | |
| SellBankAccountNb | form | string | No | |
| SellIsActual | form | bool | No | |
| IsReceiverDiffrent | form | bool | No | |
| ReceiverId | form | uint? | No | |
| ReceiverTypeId | form | uint? | No | |
| ReceiverCatId | form | uint? | No | |
| ReceiverName | form | string | No | |
| ReceiverVatId | form | string | No | |
| ReceiverStreetName | form | string | No | |
| ReceiverStreetNumber | form | string | No | |
| ReceiverFlatNumber | form | string | No | |
| ReceiverPostalCode | form | string | No | |
| ReceiverTown | form | string | No | |
| ReceiverCountryId | form | int? | No | |
| ReceiverIsoCountry | form | string | No | |
| ReceiverCountry | form | string | No | |
| ReceiverEmail | form | string | No | |
| ReceiverPhone | form | string | No | |
| ReceiverBankName | form | string | No | |
| ReceiverBankAccountNb | form | string | No | |
| Swift | form | string | No | |
| ReceiverIsActual | form | bool? | No | |
| RecName | form | string | No | |
| RecVatId | form | string | No | |
| RecStreetName | form | string | No | |
| RecStreetNumber | form | string | No | |
| RecFlatNumber | form | string | No | |
| RecPostalCode | form | string | No | |
| RecTown | form | string | No | |
| InvoicePosition | form | List<CostInvoicePositionDto> | No | |
| BasePrice | form | decimal | No | |
| Discount | form | decimal | No | |
| CurrencyId | form | uint | No | |
| Currency | form | string | No | |
| Netto | form | decimal | No | |
| Vat5 | form | decimal | No | |
| Vat8 | form | decimal | No | |
| Vat23 | form | decimal | No | |
| Vat | form | decimal | No | |
| VatBase | form | decimal | No | |
| RateDate | form | DateTime | No | |
| Rate | form | decimal | No | |
| Gross | form | decimal | No | |
| Paid | form | decimal | No | |
| ToPaid | form | decimal | No | |
| StatusId | form | int | No | |
| Status | form | string | No | |
| IsPaymentDivided | form | bool | No | |
| IsReverseCharged | form | bool | No | |
| IsImp | form | bool | No | |
| IsMpp | form | bool | No | |
| SupplierName | form | string | No | |
| RecipientName | form | string | No | |
| MarginReasonId | form | uint | No | |
| MarginReason | form | string | No | |
| PrivateNote | form | string | No | |
| Remarks | form | string | No | |
| AdditionalRemarks | form | string | No | |
| Labels | form | string | No | |
| InvoicesDependent | form | List<CostInvoiceDependDto> | No | |
| FileId | form | ulong | No | |
| SourceDocuments | form | List<CostInvoiceDocumentDto> | No | |
| IsMarkedClear | form | bool | No | |
| Attachments | form | List<FileDocumentDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreatedById | form | uint | No | |
| ModifiedById | form | uint | No | |
| CreatedDate | form | DateTime | No | |
| ModifiedDate | form | DateTime | No | |
| Id | form | ulong | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductId | form | uint | No | |
| Code | form | string | No | |
| Name | form | string | No | |
| UnitPrice | form | decimal | No | |
| UnitId | form | uint | No | |
| Unit | form | string | No | |
| Quantity | form | decimal | No | |
| CurrencyId | form | uint | No | |
| Currency | form | string | No | |
| Netto | form | decimal | No | |
| VatTypeId | form | int | No | |
| Vat5 | form | decimal | No | |
| Vat8 | form | decimal | No | |
| Vat23 | form | decimal | No | |
| RecalculateVat | form | bool | No | |
| Gross | form | decimal | No | |
| CategoryId | form | uint | No | |
| CategoryName | form | string | No | |
| TaxableKindId | form | uint | No | |
| TaxableKindName | form | string | No | |
| TaxableTypeId | form | uint | No | |
| TaxableTypeName | form | string | No | |
| IsTaxableId | form | int | No | |
| IsTaxableName | form | string | No | |
| InvoiceId | form | ulong | No | |
| IsDeleted | form | bool | No | |
| PosCorrId | form | ulong | No | |
| IsBefore | form | bool | No | |
| IsUpdated | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreatedById | form | uint | No | |
| ModifiedById | form | uint | No | |
| CreatedDate | form | DateTime | No | |
| ModifiedDate | form | DateTime | No | |
| Id | form | uint | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CostInvoiceId | form | ulong | No | |
| CostInvoiceSrcId | form | ulong | No | |
| CostInvoiceSrcNumber | form | string | No | |
| CostInvoiceSrcSellDate | form | DateTime | No | |
| CostInvoiceSrcNetto | form | decimal | No | |
| CostInvoiceSrcVat5 | form | decimal | No | |
| CostInvoiceSrcVat8 | form | decimal | No | |
| CostInvoiceSrcVat23 | form | decimal | No | |
| CostInvoiceSrcGross | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CostDocumentId | form | ulong | No | |
| CostInvoiceId | form | ulong | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ObjectTypeId | form | int | No | |
| ObjectTypeName | form | string | No | |
| ObjectId | form | ulong | No | |
| FileName | form | string | No | |
| FileGuid | form | string | No | |
| FileSize | form | long | No | |
| FileType | form | string | No | |
| ParentFolderId | form | ulong? | No | |
| StatusId | form | uint | No | |
| StatusName | form | string | No | |
| OcrStatus | form | FileOcrStatus | No | |
| OcrResponse | form | OcrRecognisedDocument | No | |
| ProcessId | form | string | No | |
| CostInvoiceId | form | ulong | No | |
| InvoiceId | form | ulong | No |
| Name | Value | |
|---|---|---|
| None | 0 | |
| SubmittedForProcessing | 1 | |
| SentForProcessing | 2 | |
| ProcessingInProgress | 3 | |
| Completed | 4 | |
| Error | 5 | |
| NotAvailableYet | 100 | |
| NotAvailableYetFirstRetry | 101 | |
| NotAvailableYetSecondRetry | 102 | |
| NotAvailableYetThirdRetry | 103 | |
| NotAvailableYetFourthRetry | 104 | |
| NotAvailableYetFifthRetry | 105 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| NrInvoice | form | string | No | |
| BankAccount | form | string | No | |
| BankName | form | string | No | |
| DateOfIssue | form | string | No | |
| SaleDate | form | string | No | |
| DateOfPayment | form | string | No | |
| SellerNip | form | string | No | |
| SellerName | form | string | No | |
| SellerStreetName | form | string | No | |
| SellerStreetNr | form | string | No | |
| SellerLocalNr | form | string | No | |
| SellerPlace | form | string | No | |
| SellerZipCode | form | string | No | |
| BuyerNip | form | string | No | |
| BuyerName | form | string | No | |
| BuyerStreetName | form | string | No | |
| BuyerStreetNr | form | string | No | |
| BuyerLocalNr | form | string | No | |
| BuyerPlace | form | string | No | |
| BuyerZipCode | form | string | No | |
| SummaryNetto | form | string | No | |
| SummaryVat | form | string | No | |
| SummaryGross | form | string | No | |
| Positions | form | ICollection<OcrRecognisedPosition> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Lp | form | string | No | |
| Name | form | string | No | |
| Unit | form | string | No | |
| Gross | form | string | No | |
| Netto | form | string | No | |
| Vat | form | string | No | |
| VatValue | form | string | No | |
| Quantity | form | string | No | |
| NettoPrice | form | string | No | |
| GrossPrice | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /costinvoice/{Id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result:
{
typeId: 0,
typeName: String,
invSrcId: 0,
orderNumber: String,
invSrcNumber: String,
number: String,
town: String,
creationDate: 0001-01-01,
sellDate: 0001-01-01,
paymentDate: 0001-01-01,
paymentDueDate: 0001-01-01,
executionDate: 0001-01-01,
isFromOcr: False,
paymentTypeId: 0,
paymentType: String,
paymentTerms: 0,
jpkItemCodeId: 0,
jpkItemCodeCode: String,
jpkItemCodeName: String,
listJpkProcedure:
[
0
],
jpkDocTypeId: 0,
jpkDocTypeCode: String,
jpkDocTypeName: String,
categoryId: 0,
categoryName: String,
extTaxableCategoryId: 0,
extTaxableCategoryName: String,
sellId: 0,
sellTypeId: 0,
sellCatId: 0,
sellName: String,
sellVatId: String,
sellStreetName: String,
sellStreetNumber: String,
sellFlatNumber: String,
sellPostalCode: String,
sellTown: String,
sellCountryId: 0,
sellIsoCountry: String,
sellCountry: String,
sellEmail: String,
sellPhone: String,
sellBankName: String,
sellBankAccountNb: String,
sellIsActual: 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,
recName: String,
recVatId: String,
recStreetName: String,
recStreetNumber: String,
recFlatNumber: String,
recPostalCode: String,
recTown: String,
invoicePosition:
[
{
productId: 0,
code: String,
name: String,
unitPrice: 0,
unitId: 0,
unit: String,
quantity: 0,
currencyId: 0,
currency: String,
netto: 0,
vatTypeId: 0,
vat5: 0,
vat8: 0,
vat23: 0,
recalculateVat: False,
gross: 0,
categoryId: 0,
categoryName: String,
taxableKindId: 0,
taxableKindName: String,
taxableTypeId: 0,
taxableTypeName: String,
isTaxableId: 0,
isTaxableName: String,
invoiceId: 0,
isDeleted: False,
posCorrId: 0,
isBefore: False,
isUpdated: False,
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 0
}
],
basePrice: 0,
discount: 0,
currencyId: 0,
currency: String,
netto: 0,
vat5: 0,
vat8: 0,
vat23: 0,
vat: 0,
vatBase: 0,
rateDate: 0001-01-01,
rate: 0,
gross: 0,
paid: 0,
toPaid: 0,
statusId: 0,
status: String,
isPaymentDivided: False,
isReverseCharged: False,
isImp: False,
isMpp: False,
supplierName: String,
recipientName: String,
marginReasonId: 0,
marginReason: String,
privateNote: String,
remarks: String,
additionalRemarks: String,
labels: String,
invoicesDependent:
[
{
costInvoiceId: 0,
costInvoiceSrcId: 0,
costInvoiceSrcNumber: String,
costInvoiceSrcSellDate: 0001-01-01,
costInvoiceSrcNetto: 0,
costInvoiceSrcVat5: 0,
costInvoiceSrcVat8: 0,
costInvoiceSrcVat23: 0,
costInvoiceSrcGross: 0,
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 0
}
],
fileId: 0,
sourceDocuments:
[
{
costDocumentId: 0,
costInvoiceId: 0,
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 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-01,
modifiedDate: 0001-01-01,
id: 0
}
],
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 0
}
}