Skip to content

Purchase Report

Endpoints

https://app.passelimerit.fi/api/v2/getpurchrep

Query Payload

json
{
  "StartDate": "YYYYmmDD",
  "EndDate": "YYYYmmDD",
  "ReportType": 1,
  "VendChoice": 1,
  "VendGrpFilter": "",
  "VendFilter": "",
  "ItemGrFilter": "",
  "ItemFilter": [],
  "DepartFilter": [],
  "FixAssetFilter": [],
  "ByEntryNo": false
}
Click to see the query parameters
FieldTypeCommentRequired
StartDateDateRequired
EndDateDateRequired
ReportTypeInt1 - By Invoices,
2 - By Vendors,
3 - By-Articles,
4 - By Fixed assets
Required
VendChoiceInt1 - Vendor and Reporting entry,
2 - Vendor,
3 - Reporting entry
VendGrpFilterStr
VendFilterStr
ItemGrFilterStr
ItemFilterStrArray of itemsRequired
DepartFilterStrArray of departments
FixAssetFilterStrArray of Fixed assets
ByEntryNoBooltrue/false

Successful Result

Report type 1

json
[
  {
    "DocId": "c28546dc-ab9a-4ecd-b9d5-1cf4a0a97348",
    "InvoiceNo": "987654324",
    "CurrencyCode": "EUR",
    "CurrencyRate": 1.0000000,
    "CustomerId": "00000000-0000-0000-0000-000000000000",
    "CustomerName": "Mingi Firma AS",
    "RegNo": "123456789",
    "VatRegNo": "EE123456789",
    "InvoiceDate": "2020-05-06T00:00:00",
    "Amount": 471.20,
    "VatAmount": 0.00,
    "RoundingAmount": 0.00,
    "TotalAmount": 471.20,
    "ExpenseClaim": false,
    "BatchId": "70348d4c-4860-4abb-a376-20fcf7512c2e",
    "BatchCode": "OS",
    "BatchNo": 4,
    "Ctry": null
  },
  // ...
]
Click to see the query parameters
FieldTypeComment
DocIdGuid
InvoiceNoStr
CurrencyCodeStr
CurrencyRateDecimal
VendorIdGuid
VendorNameStr
RegNoStr
VatRegNoStr
InvoiceDateDate
AmountDecimal
VatAmountDecimal
RoundingAmountDecimal
TotalAmountDecimal
ExpenseClaimBool
BatchIdGuid
BatchCodeStr
BatchNoInt
CtryStr

Report type 2

json
[
  {
    "CustomerId": "cbd0cd6b-c6ce-42c5-9162-0eb4942f2dd5",
    "CurrencyCode": "EUR",
    "CustomerName": "Mingi Firma AS",
    "RegNo": "123456789",
    "VatRegNo": "EE123456789",
    "Amount": 2827.20,
    "CAmount": 2827.200000000000000,
    "VatAmount": 0.00,
    "RoundingAmount": 0.000000,
    "TotalAmount": 2827.20,
    "CVatAmount": 0.000000000000000,
    "CRoundingAmount": 0.000000000000000,
    "CTotalAmount": 2827.200000000000000,
    "LnCnt": 0.0,
    "DiscAmt": 0.0,
    "CDiscAmt": 0.0
  },
  // ...
]
Click to see the query parameters
FieldTypeComment
CustomerIdGuid
CurrencyCodeStr
VendorNameStr
RegNoStr
VatRegNoStr
AmountDecimal
CAmountDecimal
VatAmountDecimal
RoundingAmountDecimal
TotalAmountDecimal
CVatAmountDecimal
CRoundingAmountDecimal
CTotalAmountDecimal
LnCntDecimal
DiscAmtDecimal
CDiscAmtDecimal

Report type 3

json
[
  {
    "ItemId": "00000000-0000-0000-0000-000000000000",
    "ItemCode": "ENVOICE_SERVICE",
    "ItemName": "Rehvivahetuse ettemaks",
    "ItemGrId": "00000000-0000-0000-0000-000000000000",
    "ItemGrName": null,
    "CurrencyCode": null,
    "Unit": null,
    "Quantity": 6.000,
    "Price": 471.200000000000,
    "Amount": 2827.200000000000000,
    "UOMId1": "00000000-0000-0000-0000-000000000000",
    "UOMId2": "00000000-0000-0000-0000-000000000000"
  },
  // ...
]
Click to see the query parameters
FieldTypeComment
ItemIdGuid
ItemCodeStr
ItemNameStr
ItemGrIdGuid
ItemGrNameStr
CurrencyCodeStr
UnitStr
QuantityDecimal
PriceDecimal
AmountDecimal
UOMId1Guid
UOMId2Guid

Report type 4

json
[]
Click to see the query parameters
FieldTypeComment
DocIdGuid
FaIdGuid
InventaryNoStr
NameStr
CurrencyCodeStr
QuantityDecimal
PriceDecimal
AmountDecimal
RemAmountDecimal
DocNoStr
DocDateDate