Delete contributions

Delete multiple contributions at once. Provide ids, or explicitly set include to false to delete every contribution matching the filters (and every contribution outright when no filters are given); an empty body is rejected. Only manually-entered contributions in open batches can be deleted. Deleting a payment recorded against a form entry takes its amount back off the entry's amount paid. While multi-campus is on, a caller with a campus limit or campus overrides deletes only the selected contributions across whose entire scope they hold Limited Write Contributions: every campus of the contribution's designations or, for one placed organization-wide, every active campus of its organization; the contributor's campuses do not count; the rest, their own contributions placed elsewhere included, are left in place and counted as skipped, explicit ids included. A contribution with no campus and no organization read (one with no campus while multi-org is off) counts as outside that scope for such a caller. Inside a batch (the batch filter), while multi-campus is on, when the caller holds Limited Read Contributions and campus filtering, or a merchant account or giving portal limit, narrows them, the contributions considered are the rows the batch's Contributions tab lists (GET /contributions?batch={id}), whatever the contributor's campus, merchant account or giving portal; a batch the tab refuses is refused the same way (403 or 404). A caller whose Limited Read Contributions access campus limits or campus overrides narrow (the lens alone does not) may not filter or sort by email or phone (403), inside a batch or not. For a caller whose campus limit, campus overrides or organization limit bind, a contribution named by id that stays in place, whether the caller may not delete it or cannot see it, is counted in skipped; for any other caller skipped is 0.

Required permission: Limited Write Contributions

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Comma-delimited list of payment method ids. Values come from /api/property_values/transaction_methods/values.

string

Comma-delimited list of status ids. Values come from /api/property_values/transaction_statuses/values.

string

Comma-delimited list of designation ids. Values come from /api/designations.

date-time

Return contributions given on or after this date (a calendar date; an instant is read in the church's time zone).

date-time

Return contributions given on or before this date (a calendar date; an instant is read in the church's time zone).

string

Comma-delimited list of campus (location) ids the designation belongs to. Use -1 to include designations with no campus. Ignored while multi-campus is off.

string

Organization ids, comma-separated; honoured only while multi-org is on. A gift matches when one of its designations is scoped to one of them or has a campus in one of them.

string

Organization ids, comma-separated; honoured while money splits by organization (multi-org is on, or an archived organization still owns money). A gift matches when it belongs to one of them (the organization it is stamped with), whatever its donor's or designations' campuses. An archived organization's id counts only when it still owns gifts or batches and the caller reads its whole giving (a giving widget's drill-down); otherwise it is dropped.

string

Comma-delimited list of campus (location) ids the giver belongs to. Use -1 to include people with no campus. Ignored while multi-campus is off. This narrows by the donor's campus only; which gifts a caller may see follows the gift's own campuses (its designations') and organization, never the donor's.

string

Comma-delimited list of payment source ids: 1 = Manual Charge, 2 = Form Entry, 3 = Group Signup, 4 = Event Signup, 5 = Giving Portal, 6 = App, 7 = Text Giving, 8 = Position Signup, 9 = Data Entry, 10 = Invoice, 11 = Recurring Schedule, 12 = Import, 13 = Remote Deposit. Use -1 to include contributions with no source.

string

Comma-delimited list of merchant account ids. Use -1 to include contributions with no merchant account.

string

Comma-delimited list of card brand ids: 0 = Unknown, 1 = ACH, 2 = Visa, 3 = MasterCard, 4 = Discover, 5 = American Express, 6 = Apple Pay, 7 = Google Pay. Use -1 to include contributions with no brand.

double

Return contributions of at least this amount.

double

Return contributions of at most this amount.

string

Return contributions whose confirmation number contains the given text.

string

Return contributions whose notes contain the given text.

boolean

Whether the contribution is credited to a business (true) or not (false).

int32
≥ 1

The id of a recurring giving schedule. Returns only contributions created by that schedule.

int32

The id of a business the contributions are credited to.

string

Comma-delimited list of giving campaign ids. Returns contributions applied to pledges in those campaigns.

int32
≥ 1

The id of a pledge. Returns only contributions applied to that pledge.

boolean

Whether to return only contributions applied to a pledge (true) or only those that are not (false).

int32

Return contributions given in this calendar year.

boolean

Whether the contribution was processed through a payment gateway.

boolean

Whether the contribution was given via text message.

boolean

Whether the contribution was created by a recurring giving schedule.

boolean

Whether the contribution includes tax-deductible line items.

boolean

Whether the contribution was given anonymously, with no giver name or linked profile (true), or not (false).

boolean

Whether the contribution has soft credits.

string

Return contributions whose check number contains the given text.

string

Text matched against the giver's name and aliases. When multiple words are given, every word must match.

string

Return contributions whose giver's email address contains the given text. While multi-campus is on, a caller whose Limited Read Contributions access campus limits or overrides narrow (the lens alone does not) cannot filter or sort contributions by email (403), because some givers show only what they share with the church.

string

Return contributions whose giver's phone number contains the given digits. While multi-campus is on, a caller whose Limited Read Contributions access campus limits or overrides narrow (the lens alone does not) cannot filter or sort contributions by phone (403), because some givers show only what they share with the church.

int32

The envelope number assigned to the giver. Use -1 for givers with no envelope number.

int32

The id of the person the contributions are credited to.

boolean

Return only contributions with a giver name that has not been linked to a person or business profile. Combine with ignored to filter by review status.

boolean

When unmatched is true, whether to return only contributions whose mismatch has been flagged to be ignored (true) or only those that have not (false).

boolean

Return all contributions not linked to a profile, regardless of whether their mismatch has been flagged to be ignored.

string

Comma-delimited list of giving portal ids. Use -1 to include contributions with no portal.

date-time

Return contributions modified on or after this date.

date-time

Return contributions modified on or before this date.

boolean

Whether the contribution came from a form submission.

boolean

Whether the contribution's form submission is linked to an event.

Body Params

The ids to delete (or to exclude when include is false)

ids
array of doubles | null

The ids the operation applies to: an include list by default, or an exclude list when include is false. For deletes, required unless include is false.

ids
boolean | null

Whether ids is an include list (true, default) or an exclude list (false). Setting include to false with no ids applies the operation to every record matching the query filters.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json