Get purchase invoice details

Endpoints v1

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

Endpoints v2

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

Query Payload

FieldTypeComment
IdGuid
SkipAttachmentBooltrue/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)  

PurchaseInvoiceHeaderObject

Field Name Comment
PIHId  
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  
InboundTime
Operator

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
HeaderHeaderObject
LinesArray of LinesObjects
PaymentsArray of PaymentObjects
AttachmentAttachment Object

HeaderObject

FieldTypeComment
DimensionsArray of DimensionObjects
PIHIdGuid
DepartmentCodeStr
DepartmentNameStr
ProjectCodeStr
CostCenterCodeStr
BatchInfoStr
BillNoStr
DocumentDateDate
TransactionDateDate
VendorIdGuid
VendorNameStr
VendorRegNoStr
DueDateDate
Fine
CurrencyCodeStr
CurrencyRateDec
TaxAmountDec
RoundingAmountDec
TotalAmountDec
ProfitAmountDec
TotalSumDec
ReferenceNoStr
PriceInclVatBooltrue/false
VatRegNoStr
PaidAmountDec
FileExistsBool
InboundTimeDate
Operator
HCommentStr
FCommentStr
PaidBooltrue/false

DimensionObject

FieldTypeComment
DimIdStr
DimValueIdGuid
DimCodeStr

InvoiceRowObject

FieldTypeComment
PILIdGuid
ArticleCodeStr
LocationCodeStr
QuantityDec
PriceDec
TaxIdGuid
TaxNameStr
TaxPctDec
AmountExclVatDec
AmountInclVatDec
VatAmountDec
AccountCodeStr
DepartmentNameStr
DepartmentCodeStr
ItemCostAmountDec
ProfitAmountDec
DescriptionStr
UOMNameStr
FixAssetBooltrue/false
DimAllocationArray of DimensionsAllocationObjects

DimensionAllocationObject

FieldTypeComment
DimIdStr
CodeStr
AllocPct Dec
AllocAmount Dec

PaymentObject

FieldTypeComment
PaymDateDate
AmountDec
PaymentMethodStr
PaymentIdGuid

AttachmentObject

FieldTypeComment
FilenameStr
FileContent Str File in base64