Skip to content
campaiDeveloper
campai.com

Donation ยท Donations

POST/{organizationId}/{mandateId}/donation/donations/syncReceiptDonations

Sync receipt donations

Records paid and partially paid donation receipts, membership fee invoices and invoices with lines on the invoice donation accounts as pending donations again, i.e. after the debtor of an Austrian donator was corrected. Returns how many of the receipts now have a donation

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.insert

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Body

Content-Type: application/json

  • receiptIdsid[]required

    at most 100 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/syncReceiptDonations' \
  --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

  • recordedCountinteger

    at least 0

Response200
{
  "recordedCount": 0
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.