Skip to content
campaiDeveloper
campai.com

Donation · Forms · Submissions

POST/{organizationId}/{mandateId}/donation/forms/submissions/{donationFormSubmissionId}/reject

Reject donation form submission

Rejects a recurring donation waiting for a decision and removes its payment method. The donator can optionally be told by email

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
  • donationFormSubmission.edit

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • donationFormSubmissionIdidrequired

Body

Content-Type: application/json

  • emailobject
    2 properties
    • subjectstringrequired

      1–998 characters

    • messagestringrequired

      1–10000 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/donation/forms/submissions/YOUR_DONATION_FORM_SUBMISSION_ID/reject' \
  --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.