Get sales invoice details

Endpoints v1

Estonia:    https://aktiva.merit.ee/api/v1/getinvoice
Poland:     https://program.360ksiegowosc.pl/api/v1/getinvoice

Endpoints v2

Estonia:    https://aktiva.merit.ee/api/v2/getinvoice
Poland:     https://program.360ksiegowosc.pl/api/v2/getinvoice

Query Payload

{ 
   "Id":  "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
   "AddAttachment": true/false
}

Successful result v2
Successful result v1

The result, if not empty:

Field Name Type Comment
Header SalesHeader object  
Lines Array of Line objects  
Payments Array of Payment objects  
Allocations Project and Cost Center allocations (if existing)  

SalesHeaderObject

Field Name Comment
SIHId  
DepartmentCode
DepartmentName  
ProjectCode  
ProjectName  
BatchInfo GL transaction code and #
InvoiceNo  
 DocumentDate  
TransactionDate  
CustomerName  
HComment  
FComment  
DueDate  
CurrencyCode  
CurrencyRate  
TaxAmount VAT amount
RoundingAmount  
TotalAmount Amount wo. VAT
ProfitAmount Margin amount
TotalSum Total amount with taxes and rounding
UserName  
ReferenceNo  
PriceInclVat  
VatRegNo  
OfferId
OfferDocType
OfferNo
FileNameStr
FileContentFile in base64
PerSHId
ContractNo

InvoiceRowObject

Field Name Comment
ArticleCode  
LocationCode  
Quantity         
Price  
TaxName  
TaxPct        
AmountExclVat  
AmountInclVat  
VatAmount  
AccountCode  
DepartmentCode
DepartmentName  
ItemCostAmount  
ProfitAmount  
DiscountPct  
DicountAmount  
Description  
UOMName       
FixAsset  
ProjectAllocation Array(CostAllocation)
CostCenterAllocation Array(CostAllocation)

PaymentObject

Field Name Comment
PaymDate  
Amount  
PaymentMethod
PaymentId

CostAllocationObject

Field Name Comment
Code Code of project / cost center
AllocPct Allocation percentage
AllocAmount Allocation amount

Successful result v2

FieldTypeComment
HeaderHeader Object
LinesLines Object
PaymentsPayment Object
AttachmentAttachment object

Invoice header object

FieldTypeComment
DimensionsArray of Dmensions Objects
SIHIdGuid
DepartmentCodeStr
DepartmentNameStr
ProjectCodeStr
ProjectNameStr
AccountingDock
BatchInfoStr
InvoiceNoStr
DocumentDateDate
TransactionDateDate
CustomerIdGuid
CustomerNameStr
CustomerRegNoStr
HCommentStr
FCommentStr
DueDateDate
CurrencyCodeStr
CurrencyRateDec
TaxAmountDec
RoundingAmountDec
TotalAmountDec
ProfitAmountDec
TotalSumDec
UserNameStr
ReferenceNoStr
PriceInclVatBooltrue/false
VatRegNoStr
PaidAmountDec
EInvSentBooltrue/false
EmailSentDate
EInvOperatorInt 1 – Not exist, 2 – E-invoices to the bank through Omniva, 3 – Bank ( full extent E-invoice), 4- Bank (limited extent E-invoice)
OfferIdGuid
OfferDocTypeInt
1=quote, 2=sales order, 3=prepayment invoice
OfferNoStr
FileExistsBooltrue/false
PerSHIdGuid
ContractNoStr
PaidBool
ContactStr

DimensionsObject

FieldTypeComment
DimIdStr
DimValueIdGuid
DimCodeStr

InvoiceRowObject

FieldTypeComment
SILIdGuid
ArticleCodeStr
LocationCodeStr
QuantityDec
PriceDec
TaxIdGuid
TaxNameStr
TaxPctDec
AmountExclVatDec
AmountInclVatDec
VatAmountDec
AccountCodeStr
DepartmentCodeStr
DepartmentNameStr
ItemCostAmountDec
ProfitAmountDec
DiscountPctDec
DiscountAmountDec
DescriptionStr
UOMNameStr
FixAssetBooltrue/false
DimAllocationArray of Dimensions Allocation Objects
StorLifeDateDate
BatchNoStr

DimensionsAllocationObject

FieldTypeComment
DimIdStr
CodeStr
AllocPctDec
AllocAmountDec

PaymentObject

FieldTypeComment
PaymDate Date
Amount Dec
PaymentMethod Str
PaymentId Guid

AttachmentObject

FieldType Comment
FilenameStr
FileContentStrFile in base64