| POST | /invoice/import | Create Invoice |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TypeId | body | uint | No | |
| TypeName | body | string | No | |
| InvSrcId | body | uint | No | |
| InvSrcNumber | body | string | No | |
| SchemaId | body | uint | No | |
| Number | body | string | No | |
| OrderNumber | body | string | No | |
| Town | body | string | No | |
| CreationDate | body | DateTime | No | |
| SellDate | body | DateTime | No | |
| PaymentDueDate | body | DateTime | No | |
| IsFromOcr | body | bool | No | |
| PaymentTypeId | body | uint | No | |
| PaymentType | body | string | No | |
| PaymentTerms | body | ushort | No | |
| CategoryId | body | uint | No | |
| CategoryName | body | string | No | |
| JpkItemCodeId | body | int | No | |
| JpkItemCodeCode | body | string | No | |
| JpkItemCodeName | body | string | No | |
| ListJpkProcedure | body | List<InvoiceJpkProcedureDto> | No | |
| JpkDocTypeId | body | int | No | |
| JpkDocTypeCode | body | string | No | |
| JpkDocTypeName | body | string | No | |
| SellId | body | uint | No | |
| SellName | body | string | No | |
| SellVatId | body | string | No | |
| SellStreetName | body | string | No | |
| SellStreetNumber | body | string | No | |
| SellFlatNumber | body | string | No | |
| SellPostalCode | body | string | No | |
| SellTown | body | string | No | |
| SellBankId | body | uint | No | |
| SellBankName | body | string | No | |
| SellBankAccountNb | body | string | No | |
| RecId | body | uint | No | |
| RecTypeId | body | uint | No | |
| RecCatId | body | uint | No | |
| RecName | body | string | No | |
| RecVatId | body | string | No | |
| RecStreetName | body | string | No | |
| RecStreetNumber | body | string | No | |
| RecFlatNumber | body | string | No | |
| RecPostalCode | body | string | No | |
| RecTown | body | string | No | |
| RecCountryId | body | int | No | |
| RecIsoCountry | body | string | No | |
| RecCountry | body | string | No | |
| RecEmail | body | string | No | |
| RecPhone | body | string | No | |
| RecBankName | body | string | No | |
| RecBankAccountNb | body | string | No | |
| Swift | body | string | No | |
| RecIsActual | body | bool | No | |
| InvoicePosition | body | List<InvoicePositionDto> | No | |
| BasePrice | body | decimal | No | |
| Discount | body | decimal | No | |
| CurrencyId | body | uint | No | |
| Currency | body | string | No | |
| Netto | body | decimal | No | |
| Vat5 | body | decimal | No | |
| Vat8 | body | decimal | No | |
| Vat23 | body | decimal | No | |
| VatBase | body | decimal | No | |
| RateDate | body | DateTime | No | |
| Rate | body | decimal | No | |
| Gross | body | decimal | No | |
| Paid | body | decimal | No | |
| ToPaid | body | decimal | No | |
| IsPaymentDivided | body | bool | No | |
| IsReverseCharged | body | bool | No | |
| SupplierName | body | string | No | |
| RecipientName | body | string | No | |
| MarginReasonId | body | uint | No | |
| MarginReason | body | string | No | |
| PrivateNote | body | string | No | |
| Remarks | body | string | No | |
| AdditionalRemarks | body | string | No | |
| Code | body | string | No | |
| CodeAvailability | body | string | No | |
| InvoicesDependent | body | List<InvoiceDependDto> | No | |
| Attachments | body | List<FileDocumentDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | form | string | No | |
| Name | form | string | 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 |
|---|---|---|---|---|
| ProductId | form | uint | No | |
| PosCorrId | form | ulong | No | |
| InvoiceId | form | ulong | No | |
| Name | form | string | No | |
| Code | form | string | No | |
| Quantity | form | decimal | No | |
| UnitId | form | uint | No | |
| Unit | form | string | No | |
| CurrencyId | form | uint | No | |
| Currency | form | string | No | |
| UnitPrice | form | decimal | No | |
| Gross | form | decimal | No | |
| Netto | form | decimal | No | |
| VatTypeId | form | int | No | |
| Vat5 | form | decimal | No | |
| Vat8 | form | decimal | No | |
| Vat23 | form | decimal | No | |
| IsBefore | form | bool | No | |
| IsUpdated | form | bool | No | |
| IsDeleted | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InvoiceId | form | ulong | No | |
| InvoiceSrcId | form | ulong | No | |
| InvoiceSrcNumber | form | string | No | |
| InvoiceSrcSellDate | form | DateTime | No | |
| InvoiceSrcNetto | form | decimal | No | |
| InvoiceSrcVat5 | form | decimal | No | |
| InvoiceSrcVat8 | form | decimal | No | |
| InvoiceSrcVat23 | form | decimal | No | |
| InvoiceSrcGross | form | decimal | 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 |
|---|---|---|---|---|
| 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 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | T | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | form | string | No | |
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | Object | No | |
| IsSuccess | form | bool | 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.
POST /invoice/import HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
typeId: 0,
typeName: String,
invSrcId: 0,
invSrcNumber: String,
schemaId: 0,
number: String,
orderNumber: String,
town: String,
creationDate: 0001-01-01,
sellDate: 0001-01-01,
paymentDueDate: 0001-01-01,
isFromOcr: False,
paymentTypeId: 0,
paymentType: String,
paymentTerms: 0,
categoryId: 0,
categoryName: String,
jpkItemCodeId: 0,
jpkItemCodeCode: String,
jpkItemCodeName: String,
listJpkProcedure:
[
{
code: String,
name: String,
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 0
}
],
jpkDocTypeId: 0,
jpkDocTypeCode: String,
jpkDocTypeName: String,
sellId: 0,
sellName: String,
sellVatId: String,
sellStreetName: String,
sellStreetNumber: String,
sellFlatNumber: String,
sellPostalCode: String,
sellTown: String,
sellBankId: 0,
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,
swift: String,
recIsActual: 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-01,
modifiedDate: 0001-01-01,
id: 0
}
],
basePrice: 0,
discount: 0,
currencyId: 0,
currency: String,
netto: 0,
vat5: 0,
vat8: 0,
vat23: 0,
vatBase: 0,
rateDate: 0001-01-01,
rate: 0,
gross: 0,
paid: 0,
toPaid: 0,
isPaymentDivided: False,
isReverseCharged: False,
supplierName: String,
recipientName: String,
marginReasonId: 0,
marginReason: String,
privateNote: String,
remarks: String,
additionalRemarks: String,
code: String,
codeAvailability: String,
invoicesDependent:
[
{
invoiceId: 0,
invoiceSrcId: 0,
invoiceSrcNumber: String,
invoiceSrcSellDate: 0001-01-01,
invoiceSrcNetto: 0,
invoiceSrcVat5: 0,
invoiceSrcVat8: 0,
invoiceSrcVat23: 0,
invoiceSrcGross: 0,
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 0
}
],
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
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
code: FAIL,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
result: {},
isSuccess: False
}