Skip to content
campaiDeveloper
campai.com

Donation · Donations

POST/{organizationId}/{mandateId}/donation/donations/printReads only

Print donations

Creates a PDF list of the donations of a given mandate, filtered like the donation list, with their total amount

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
  • donation.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Body

Content-Type: application/json

  • searchTermstring
  • periodobject
    2 properties
    • fromstring · date-timerequired
    • tostring · date-timerequired
  • includeRevokedboolean

    default true

  • viewstring

    default "all"

    all pending notRequired created thanked revoked
  • donatorAccountinteger

    1–999999999

  • campaignid
  • austrianReportingStatusstring
    notReported processing reported changed error notReportable
  • selectionobject
    2 properties
    • excludeIdsid[]

      1–1000 items

    • idsid[]

      1–1000 items

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/donation/donations/print' \
  --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.