Skip to content

API reference

API: Giving

Markdown version

MethodPathWhat it doesScope
GET/v1/church/giving/accountingA file for the church's books: one balanced entry for each deposit, by fund (web app only)giving:read
GET/v1/church/giving/accountsWhat the accounting file calls the bank, fees and other accountsgiving:read
PUT/v1/church/giving/accountsName those accounts the way the church's books dogiving:write
GET/v1/church/giving/batchesBatches, newest first, with what's in eachgiving:read
POST/v1/church/giving/batchesStart a batchgiving:write
GET/v1/church/giving/batches/:idA batch and its total so fargiving:read
PATCH/v1/church/giving/batches/:idChange an open batch's name, date or expected total, or remove one with no gifts in itgiving:write
POST/v1/church/giving/batches/:id/closeClose a batch once its total matches the counting sheet, or say why it doesn'tgiving:write
POST/v1/church/giving/batches/:id/reopenReopen a closed batch to add or take out giftsgiving:write
POST/v1/church/giving/checks/readRead a check a scanner typed: its number, and whose it was last time. The account number isn't kept (web app only)giving:write
GET/v1/church/giving/depositsDeposits, newest first, with fees, refunds and funds in eachgiving:read
POST/v1/church/giving/depositsRecord a bank deposit of one or more closed batchesgiving:write
PATCH/v1/church/giving/deposits/:idMark a deposit matched to the bank, or correct or remove one recorded by handgiving:write
GET/v1/church/giving/fundsThe funds people can give togiving:read
POST/v1/church/giving/fundsAdd a fundgiving:write
PATCH/v1/church/giving/funds/:idChange a fund, archive it or bring it back. Gifts already made to it staygiving:write
GET/v1/church/giving/giftsGifts, newest first, with the total of those that matchgiving:read
POST/v1/church/giving/giftsRecord a gift that came by cash, check or another way. Sending the same request_key twice records it oncegiving:write
GET/v1/church/giving/gifts/:idA gift and what was changed on itgiving:read
PATCH/v1/church/giving/gifts/:idCorrect a gift. One in a closed batch needs a reason; what it said before is keptgiving:write
POST/v1/church/giving/gifts/:id/refundRefund all or part of a gift paid online (web app only)giving:write
POST/v1/church/giving/gifts/:id/voidVoid a gift recorded by mistake, or restore it. It stays in the history and leaves every totalgiving:write
GET/v1/church/giving/giversFind who a gift is from, by name, email or phonegiving:write
POST/v1/church/giving/givers/:id/emailConfirm that an address is this person's, so their statement goes there and they can see their own giving (web app only)giving:write
GET/v1/church/giving/importsFiles of past gifts brought in, newest first (web app only)giving:read
POST/v1/church/giving/importsBring past gifts in from a file. Without commit it only says what would happen (web app only)giving:write
POST/v1/church/giving/imports/:id/undoUndo an import: every gift it added is voided (web app only)giving:write
GET/v1/church/giving/onlineWhether people can give online, the page's address, and what Stripe chargesgiving:read
PUT/v1/church/giving/onlineTurn the giving page on or off, and set what it says and offersgiving:write
POST/v1/church/giving/online/connectStart or carry on connecting the church's own Stripe account: answers with Stripe's page to open (web app only)giving:write
GET/v1/church/giving/pledgesPledge campaigns, with what was pledged and givengiving:read
POST/v1/church/giving/pledgesStart a pledge campaign for a fundgiving:write
GET/v1/church/giving/pledges/:idA campaign, each pledge, and what's been given toward itgiving:read
PATCH/v1/church/giving/pledges/:idChange, close or reopen a campaigngiving:write
PUT/v1/church/giving/pledges/:id/peopleRecord what someone pledged, or change or take it out (amount null)giving:write
GET/v1/church/giving/readersThe church's card readers, each with the link for the tablet beside it (web app only)giving:read
POST/v1/church/giving/readersPair a Stripe card reader with the code it shows (web app only)giving:write
PATCH/v1/church/giving/readers/:idRename a card reader, replace its tablet's link, or stop using it (web app only)giving:write
GET/v1/church/giving/repeatingRepeating gifts and when each comes nextgiving:read
PATCH/v1/church/giving/repeating/:idPause, restart or stop someone's repeating gift. Only the giver changes its amountgiving:write
GET/v1/church/giving/reportsGiving over a period, beside the same length of time before itgiving:read
GET/v1/church/giving/reports/giftsEvery gift in a period as a spreadsheet (web app only)giving:read
GET/v1/church/giving/statementsWho gets a statement for a period, whether it was sent, and whether anything changed since (web app only)giving:read
POST/v1/church/giving/statements/:id/withdrawClose the link in a statement sent to the wrong address (web app only)giving:write
POST/v1/church/giving/statements/sendEmail statements to the people chosen (web app only)giving:write
GET/v1/church/giving/statements/viewStatements to read or print, as the gifts are now (web app only)giving:read
GET/v1/church/giving/totalsWhat was given to each fund between two dates, without who gavegiving:read

Examples

GET /v1/church/giving/accounts

What the accounting file calls the bank, fees and other accounts

curl -s "https://api.chapelwren.com/v1/church/giving/accounts" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/accounts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PUT /v1/church/giving/accounts

Name those accounts the way the church's books do

curl -s -X PUT "https://api.chapelwren.com/v1/church/giving/accounts" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/accounts`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/batches

Batches, newest first, with what's in each

curl -s "https://api.chapelwren.com/v1/church/giving/batches" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/batches`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/giving/batches

Start a batch

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/batches" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/batches`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/batches/$ID

A batch and its total so far

curl -s "https://api.chapelwren.com/v1/church/giving/batches/$ID" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/batches/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/giving/batches/$ID

Change an open batch's name, date or expected total, or remove one with no gifts in it

curl -s -X PATCH "https://api.chapelwren.com/v1/church/giving/batches/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/batches/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/church/giving/batches/$ID/close

Close a batch once its total matches the counting sheet, or say why it doesn't

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/batches/$ID/close" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/batches/${id}/close`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/church/giving/batches/$ID/reopen

Reopen a closed batch to add or take out gifts

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/batches/$ID/reopen" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/batches/${id}/reopen`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/deposits

Deposits, newest first, with fees, refunds and funds in each

curl -s "https://api.chapelwren.com/v1/church/giving/deposits" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/deposits`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/giving/deposits

Record a bank deposit of one or more closed batches

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/deposits" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/deposits`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

PATCH /v1/church/giving/deposits/$ID

Mark a deposit matched to the bank, or correct or remove one recorded by hand

curl -s -X PATCH "https://api.chapelwren.com/v1/church/giving/deposits/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/deposits/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/funds

The funds people can give to

curl -s "https://api.chapelwren.com/v1/church/giving/funds" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/funds`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/giving/funds

Add a fund

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/funds" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/funds`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

PATCH /v1/church/giving/funds/$ID

Change a fund, archive it or bring it back. Gifts already made to it stay

curl -s -X PATCH "https://api.chapelwren.com/v1/church/giving/funds/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/funds/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/gifts

Gifts, newest first, with the total of those that match

curl -s "https://api.chapelwren.com/v1/church/giving/gifts" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/gifts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/giving/gifts

Record a gift that came by cash, check or another way. Sending the same request_key twice records it once

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/gifts" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/gifts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/gifts/$ID

A gift and what was changed on it

curl -s "https://api.chapelwren.com/v1/church/giving/gifts/$ID" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/gifts/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/giving/gifts/$ID

Correct a gift. One in a closed batch needs a reason; what it said before is kept

curl -s -X PATCH "https://api.chapelwren.com/v1/church/giving/gifts/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/gifts/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/church/giving/gifts/$ID/void

Void a gift recorded by mistake, or restore it. It stays in the history and leaves every total

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/gifts/$ID/void" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/gifts/${id}/void`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/givers

Find who a gift is from, by name, email or phone

curl -s "https://api.chapelwren.com/v1/church/giving/givers" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/givers`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/giving/online

Whether people can give online, the page's address, and what Stripe charges

curl -s "https://api.chapelwren.com/v1/church/giving/online" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/online`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PUT /v1/church/giving/online

Turn the giving page on or off, and set what it says and offers

curl -s -X PUT "https://api.chapelwren.com/v1/church/giving/online" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/online`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/pledges

Pledge campaigns, with what was pledged and given

curl -s "https://api.chapelwren.com/v1/church/giving/pledges" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/pledges`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

POST /v1/church/giving/pledges

Start a pledge campaign for a fund

curl -s -X POST "https://api.chapelwren.com/v1/church/giving/pledges" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/pledges`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/pledges/$ID

A campaign, each pledge, and what's been given toward it

curl -s "https://api.chapelwren.com/v1/church/giving/pledges/$ID" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/pledges/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/giving/pledges/$ID

Change, close or reopen a campaign

curl -s -X PATCH "https://api.chapelwren.com/v1/church/giving/pledges/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/pledges/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

PUT /v1/church/giving/pledges/$ID/people

Record what someone pledged, or change or take it out (amount null)

curl -s -X PUT "https://api.chapelwren.com/v1/church/giving/pledges/$ID/people" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/pledges/${id}/people`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/repeating

Repeating gifts and when each comes next

curl -s "https://api.chapelwren.com/v1/church/giving/repeating" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/repeating`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

PATCH /v1/church/giving/repeating/$ID

Pause, restart or stop someone's repeating gift. Only the giver changes its amount

curl -s -X PATCH "https://api.chapelwren.com/v1/church/giving/repeating/$ID" \
  -H "Authorization: Bearer $CG_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/repeating/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/church/giving/reports

Giving over a period, beside the same length of time before it

curl -s "https://api.chapelwren.com/v1/church/giving/reports" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/reports`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

GET /v1/church/giving/totals

What was given to each fund between two dates, without who gave

curl -s "https://api.chapelwren.com/v1/church/giving/totals" \
  -H "Authorization: Bearer $CG_API_KEY"
const res = await fetch(`https://api.chapelwren.com/v1/church/giving/totals`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.CG_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.chapelwren.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.