GET api/Report/GetOpenClosedRevenue

Get Open and Closed revenue grouped by debtor, both values combined is total revenue of a debtor. For current and last year based on orderdate

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of OpenClosedRevenue
NameDescriptionTypeAdditional information
DebtorNumber

string

None.

ClosedThisYear

decimal number

None.

OpenThisYear

decimal number

None.

ClosedLastYear

decimal number

None.

OpenLastYear

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DebtorNumber": "sample string 1",
    "ClosedThisYear": 1.1,
    "OpenThisYear": 1.1,
    "ClosedLastYear": 1.1,
    "OpenLastYear": 1.1
  },
  {
    "DebtorNumber": "sample string 1",
    "ClosedThisYear": 1.1,
    "OpenThisYear": 1.1,
    "ClosedLastYear": 1.1,
    "OpenLastYear": 1.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfOpenClosedRevenue xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <OpenClosedRevenue>
    <DebtorNumber>sample string 1</DebtorNumber>
    <ClosedThisYear>1.1</ClosedThisYear>
    <OpenThisYear>1.1</OpenThisYear>
    <ClosedLastYear>1.1</ClosedLastYear>
    <OpenLastYear>1.1</OpenLastYear>
  </OpenClosedRevenue>
  <OpenClosedRevenue>
    <DebtorNumber>sample string 1</DebtorNumber>
    <ClosedThisYear>1.1</ClosedThisYear>
    <OpenThisYear>1.1</OpenThisYear>
    <ClosedLastYear>1.1</ClosedLastYear>
    <OpenLastYear>1.1</OpenLastYear>
  </OpenClosedRevenue>
</ArrayOfOpenClosedRevenue>