Skip to content
campaiDeveloper
campai.com

Finance · Accounting

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

Get balances by donor restriction

Returns annual account balances separated by donor restriction for a given mandate

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

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Body

Content-Type: application/json

  • formatstringrequired
    html pdf excel csv
  • fiscalYearintegerrequired

    2000–3000

  • groupsstring[]

    default []

    capitalAsset liquidAsset cash equityCapital debtCapital revenue expense static staticDebit staticCredit debtor creditor
  • dimensionsobject[]
    2 properties
    • dimensionIdidrequired
    • optionKeystringrequired

      1–64 characters

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/donorRestrictionAccountBalances' \
  --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

  • namestring
  • dataobject
    2 properties
    • contentstring
    • zipboolean
  • emptyboolean
Response200
{
  "name": "string",
  "data": {
    "content": "string"
  },
  "empty": true
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.