Skip to content
campaiDeveloper
campai.com

Donation · Donations

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

Update donation

Updates a donation which has no confirmation yet. Postings of booked positions are replaced as long as they are not committed

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.edit
Required for some requests, where input is what the request sends
  • posting.edit, if input.positions.some((position) => position.booking)

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Body

Content-Type: application/json

  • donationIdidrequired
  • donatorobjectrequired
    5 properties
    • namestringrequired

      1–81 characters

    • typestringrequired
      business person
    • addressobjectrequirednullable
      7 properties
      • countrystringrequired
      • statestring
      • zipstringrequired

        at most 10 characters

      • citystringrequired

        at most 45 characters

      • addressLinestringrequired

        at most 45 characters

      • details1string

        at most 45 characters

      • details2string

        at most 45 characters

    • emailstringrequired
    • accountintegerrequirednullable

      1–999999999

  • positionsobject[]required

    at least 1 items

    7 properties
    • typestringrequired
      cash membershipFee assetStock refund nonCash
    • valueintegerrequired

      at most 9999999999

    • datestringrequired
    • nonCashobject
      2 properties
      • sourcestringrequired
        business private unknown
      • hasPapersbooleanrequired
    • descriptionstringrequired

      at most 400 characters

    • campaignidrequirednullable
    • bookingobjectrequirednullable
      2 properties
      • expenseAccountintegerrequirednullable

        1–999999999

      • accountintegerrequired

        1–999999999

  • confirmationSendMethodstringrequired
    none email postal
  • confirmationRequestedbooleanrequired
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/updateDonation' \
  --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

No response body is specified.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.