Skip to content
campaiDeveloper
campai.com

Finance · Accounting

POST/{organizationId}/{mandateId}/finance/accounting/reportFiguresReads only

Get the main figures of the accounting reports

'Returns the main figure of each accounting report for a range of months, read from the monthly account ' + 'balances: the result of the income statement and of the same months a year earlier with the…

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • posting.read
Also checked, depending on the request and the records it touches
  • receipt.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Body

Content-Type: application/json

  • rangeobjectrequired
    2 properties
    • fromobjectrequired
      2 properties
      • yearintegerrequired

        2000–3000

      • monthIndexintegerrequired

        1–12

    • toobjectrequired
      2 properties
      • yearintegerrequired

        2000–3000

      • monthIndexintegerrequired

        1–12

Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/finance/accounting/reportFigures' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

Content-Type: application/json

  • incomeStatementobjectnullable
    3 properties
    • resultnumber
    • previousResultnumber
    • partsobject[]
      2 properties
      • namestring
      • amountnumber
  • accountBalancesobject
    2 properties
    • balancenumber
    • monthsnumber[]
  • donorRestrictionAccountBalancesobject
    1 property
    • resultnumber
  • trialBalancesobject
    2 properties
    • totalnumber
    • monthsnumber[]
  • costCenterBalancesobject
    1 property
    • costCentersobject[]
      3 properties
      • numbernumber
      • labelstring
      • amountnumber
  • openItemsobjectnullable
    2 properties
    • amountnumber
    • overduenumber[]
  • depositBalancesobjectnullable
    1 property
    • amountnumber
Response200
{
  "incomeStatement": {
    "result": 1,
    "previousResult": 1,
    "parts": [
      {
        "name": "string",
        "amount": 1
      }
    ]
  },
  "accountBalances": {
    "balance": 1,
    "months": [
      1
    ]
  },
  "donorRestrictionAccountBalances": {
    "result": 1
  },
  "trialBalances": {
    "total": 1,
    "months": [
      1
    ]
  },
  "costCenterBalances": {
    "costCenters": [
      {
        "number": 1,
        "label": "string",
        "amount": 1
      }
    ]
  },
  "openItems": {
    "amount": 1,
    "overdue": [
      1
    ]
  },
  "depositBalances": {
    "amount": 1
  }
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.