Skip to content

Sales Report

Endpoints

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

Query Payload

json
{
  "StartDate": "YYYYmmDD",
  "EndDate": "YYYYmmDD",
  "ReportType": 1,
  "UserFilter": "",
  "CustGrpFilter": "",
  "CustFilter": "",
  "ItemGrFilter": [],
  "ItemFilter": [],
  "DepartFilter": [],
  "FixAssetFilter": ""
}
Click to see the query parameters
FieldTypeCommentRequired
StartDateDateRequired
EndDateDateRequired
ReportTypeInt1 - By Invoices,
2 - By Customers,
3 - By Articles,
4 - By Countries,
5 - By Countries, general
Required
UserFilterStr
CustGrpFilterStr
CustFilterStr
ItemGrFilterStrArray of itrm groups
ItemFilterStrArray of items
DepartFilterStrArray of departments
FixAssetFilterStr

Successful Result

Report types 1, 5, 6

json
[
  {
    "DocId": "036324e1-2f8b-4c52-8e8f-102cbe732181",
    "InvoiceNo": "BL942019-PGG",
    "CurrencyCode": "EUR",
    "CurrencyRate": 1.0000000,
    "CustomerId": "88d0362a-5e55-4184-b9ff-ace2a4f93da4",
    "CustomerName": "Mari Maasikas",
    "RegNo": null,
    "VatRegNo": null,
    "InvoiceDate": "2019-04-13T00:00:00",
    "Amount": 1000.00,
    "VatAmount": 0.00,
    "RoundingAmount": 0.00,
    "TotalAmount": 1000.00,
    "ExpenseClaim": false,
    "BatchId": "00000000-0000-0000-0000-000000000000",
    "BatchCode": null,
    "BatchNo": 0,
    "Ctry": null
  },
  // ...
]
Click to see the result parameters
FieldTypeComment
DocIdGuid
InvoiceNoStr
CurrencyCodeStr
CurrencyRateDecimal
CustomerIdGuid
CustomerNameStr
RegNoStr
VatRegNoStr
InvoiceDateDate
AmountDecimal
VatAmountDecimal
RoundingAmountDecimal
TotalAmountDecimal
ExpenseClaimBool
BatchIdGuid
BatchCodeStr
BatchNoInt
CtryStr

Report type 2

json
[
  {
    "CustomerId": "88d0362a-5e55-4184-b9ff-ace2a4f93da4",
    "CurrencyCode": "EUR",
    "CustomerName": "Mari Maasikas",
    "RegNo": null,
    "VatRegNo": null,
    "Amount": 1600.00,
    "CAmount": 1600.000000000000000,
    "VatAmount": 0.00,
    "RoundingAmount": 0.000000,
    "TotalAmount": 1600.00,
    "CVatAmount": 0.000000000000000,
    "CRoundingAmount": 0.000000000000000,
    "CTotalAmount": 1600.000000000000000,
    "LnCnt": 0.0,
    "DiscAmt": 0.00,
    "CDiscAmt": 0.000000000000000
  },
  // ...
]
Click to see the result parameters
FieldTypeComment
CustomerIdGuid
CurrencyCodeStr
CustomerNameStr
RegNoStr
VatRegNoStr
AmountDecimal
CAmountDecimal
VatAmountDecimal
RoundingAmountDecimal
TotalAmountDecimal
CVatAmountDecimal
CRoundingAmountDecimal
CTotalAmountDecimal
LnCntDecimal
DiscAmtDecimal
CDiscAmtDecimal

Report type 3

json
[
  {
    "ItemId": "c9a417e7-bf34-4443-9f11-daf0912e99df",
    "ItemCode": "",
    "ItemName": "",
    "ItemGrId": "00000000-0000-0000-0000-000000000000",
    "ItemGrName": null,
    "CurrencyCode": null,
    "Unit": "kg",
    "Quantity": 7.000,
    "Price": 228.57142857142857142857142857,
    "Amount": 1600.000000000000000,
    "UOMId1": "a5a94f59-59d3-477f-9509-69879910cda4",
    "UOMId2": "a5a94f59-59d3-477f-9509-69879910cda4"
  },
  // ...
]
Click to see the result parameters
FieldTypeComment
ItemIdGuid
ItemCodeStr
ItemNameStr
ItemGrIdGuid
ItemGrNameStr
CurrencyCodeStr
UnitStr
QuantityDecimal
PriceDecimal
AmountDecimal
UOMId1Guid
UOMId2Guid

Report type 4

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