Skip to content
campaiDeveloper
campai.com

Donation ยท Donations

GET/{organizationId}/{mandateId}/donation/donations/receiptsWithoutDonationReads only

List receipts without donation

Lists paid and partially paid donation receipts, membership fee invoices (if membership fees are donations) and invoices with lines on the invoice donation accounts of the current and previous year which did not become a donation, i.e. because an Austrian donator has no matching debtor, with the reason for each receipt. Partially paid receipts count once their payments go beyond fees and the other lines. Receipts refunded completely by credit notes are left out

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

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/donation/donations/receiptsWithoutDonation' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • receiptsobject[]
    7 properties
    • _idid
    • mandateid
    • receiptNumberstring

      at most 30 characters

    • accountNamestring
    • totalGrossAmountnumber
    • paidAtstringnullable
    • reasonstring
  • countinteger

    at least 0

Response200
{
  "receipts": [
    {
      "_id": "000000000000000000000001",
      "mandate": "000000000000000000000001",
      "receiptNumber": "string",
      "accountName": "string",
      "totalGrossAmount": 1,
      "paidAt": "string",
      "reason": "string"
    }
  ],
  "count": 0
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.