GET api/Report/SaleStatistics?fromDate={fromDate}&toDate={toDate}&customerNo={customerNo}&maxRows={maxRows}&UseInvoiceFromToDate={UseInvoiceFromToDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fromDate

date

Required

toDate

date

Required

customerNo

integer

None.

maxRows

integer

Default value is 5000

UseInvoiceFromToDate

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Collection of SaleStatisticsItem
NameDescriptionTypeAdditional information
customerNo

integer

None.

customerName

string

None.

postalNo

string

None.

orderNo

integer

None.

orderType

integer

None.

deliveryDate

date

None.

productNo

string

None.

description

string

None.

price

decimal number

None.

unit

integer

None.

amount

decimal number

None.

costPrice

decimal number

None.

invoicedOrRealized

decimal number

None.

invoiceNo

string

None.

quantity

decimal number

None.

invoicedAmountSoFarInCurrency

decimal number

None.

orderEmpNo

integer

None.

orgUnit1

integer

None.

orgUnit2

integer

None.

orgUnit3

integer

None.

orgUnit4

integer

None.

orgUnit5

integer

None.

orgUnit6

integer

None.

deliveryAdress1

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "customerNo": 1,
    "customerName": "sample string 1",
    "postalNo": "sample string 2",
    "orderNo": 1,
    "orderType": 1,
    "deliveryDate": "2025-05-23T23:10:17.3977793+02:00",
    "productNo": "sample string 3",
    "description": "sample string 4",
    "price": 1.0,
    "unit": 1,
    "amount": 1.0,
    "costPrice": 1.0,
    "invoicedOrRealized": 1.0,
    "invoiceNo": "sample string 5",
    "quantity": 1.0,
    "invoicedAmountSoFarInCurrency": 1.0,
    "orderEmpNo": 1,
    "orgUnit1": 1,
    "orgUnit2": 1,
    "orgUnit3": 1,
    "orgUnit4": 1,
    "orgUnit5": 1,
    "orgUnit6": 1,
    "deliveryAdress1": "sample string 6"
  },
  {
    "customerNo": 1,
    "customerName": "sample string 1",
    "postalNo": "sample string 2",
    "orderNo": 1,
    "orderType": 1,
    "deliveryDate": "2025-05-23T23:10:17.3977793+02:00",
    "productNo": "sample string 3",
    "description": "sample string 4",
    "price": 1.0,
    "unit": 1,
    "amount": 1.0,
    "costPrice": 1.0,
    "invoicedOrRealized": 1.0,
    "invoiceNo": "sample string 5",
    "quantity": 1.0,
    "invoicedAmountSoFarInCurrency": 1.0,
    "orderEmpNo": 1,
    "orgUnit1": 1,
    "orgUnit2": 1,
    "orgUnit3": 1,
    "orgUnit4": 1,
    "orgUnit5": 1,
    "orgUnit6": 1,
    "deliveryAdress1": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSaleStatisticsItem xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SaleStatisticsItem>
    <customerNo>1</customerNo>
    <customerName>sample string 1</customerName>
    <postalNo>sample string 2</postalNo>
    <orderNo>1</orderNo>
    <orderType>1</orderType>
    <deliveryDate>2025-05-23T23:10:17.3977793+02:00</deliveryDate>
    <productNo>sample string 3</productNo>
    <description>sample string 4</description>
    <price>1</price>
    <unit>1</unit>
    <amount>1</amount>
    <costPrice>1</costPrice>
    <invoicedOrRealized>1</invoicedOrRealized>
    <invoiceNo>sample string 5</invoiceNo>
    <quantity>1</quantity>
    <invoicedAmountSoFarInCurrency>1</invoicedAmountSoFarInCurrency>
    <orderEmpNo>1</orderEmpNo>
    <orgUnit1>1</orgUnit1>
    <orgUnit2>1</orgUnit2>
    <orgUnit3>1</orgUnit3>
    <orgUnit4>1</orgUnit4>
    <orgUnit5>1</orgUnit5>
    <orgUnit6>1</orgUnit6>
    <deliveryAdress1>sample string 6</deliveryAdress1>
  </SaleStatisticsItem>
  <SaleStatisticsItem>
    <customerNo>1</customerNo>
    <customerName>sample string 1</customerName>
    <postalNo>sample string 2</postalNo>
    <orderNo>1</orderNo>
    <orderType>1</orderType>
    <deliveryDate>2025-05-23T23:10:17.3977793+02:00</deliveryDate>
    <productNo>sample string 3</productNo>
    <description>sample string 4</description>
    <price>1</price>
    <unit>1</unit>
    <amount>1</amount>
    <costPrice>1</costPrice>
    <invoicedOrRealized>1</invoicedOrRealized>
    <invoiceNo>sample string 5</invoiceNo>
    <quantity>1</quantity>
    <invoicedAmountSoFarInCurrency>1</invoicedAmountSoFarInCurrency>
    <orderEmpNo>1</orderEmpNo>
    <orgUnit1>1</orgUnit1>
    <orgUnit2>1</orgUnit2>
    <orgUnit3>1</orgUnit3>
    <orgUnit4>1</orgUnit4>
    <orgUnit5>1</orgUnit5>
    <orgUnit6>1</orgUnit6>
    <deliveryAdress1>sample string 6</deliveryAdress1>
  </SaleStatisticsItem>
</ArrayOfSaleStatisticsItem>