Skip to main content
PATCH
https://api.grainledger.com
/
api
/
v1
/
contributions
/
{id}
Update contribution
curl --request PATCH \
  --url https://api.grainledger.com/api/v1/contributions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Organization-Id: <x-organization-id>' \
  --data '
{
  "amount": 250,
  "date": "2026-07-06",
  "fundId": "cm789ghi012jkl",
  "method": "CHECK"
}
'
const options = {
  method: 'PATCH',
  headers: {
    'X-Organization-Id': '<x-organization-id>',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({amount: 250, date: '2026-07-06', fundId: 'cm789ghi012jkl', method: 'CHECK'})
};

fetch('https://api.grainledger.com/api/v1/contributions/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
import requests

url = "https://api.grainledger.com/api/v1/contributions/{id}"

payload = {
    "amount": 250,
    "date": "2026-07-06",
    "fundId": "cm789ghi012jkl",
    "method": "CHECK"
}
headers = {
    "X-Organization-Id": "<x-organization-id>",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
{
  "id": "<string>",
  "donorId": "<string>",
  "amount": 123,
  "date": "2023-11-07T05:31:56Z",
  "fundId": "<string>",
  "isTaxDeductible": true,
  "externalSource": "<string>"
}
{
  "message": "You do not have access to this organization."
}
{
  "message": "You do not have access to this organization."
}
{
  "message": "You do not have access to this organization."
}
{
  "message": "You do not have access to this organization."
}
{
  "message": "You do not have access to this organization."
}
{
  "message": "You do not have access to this organization."
}
{
  "message": "You do not have access to this organization."
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Organization-Id
string
required

Organization ID for multi-tenant data access

Path Parameters

id
string
required

Resource ID

Body

application/json
amount
number
required
Example:

250

date
string<date>
required
Example:

"2026-07-06"

fundId
string
required
Example:

"cm789ghi012jkl"

method
enum<string>
required
Available options:
CASH,
CHECK,
CREDIT_CARD,
ACH,
ONLINE,
STOCK,
OTHER
Example:

"CHECK"

donorId
string
Example:

"cm456def789ghi"

checkNumber
string
Example:

"1042"

isTaxDeductible
boolean
default:true
notes
string

Response

Updated contribution

id
string
donorId
string | null
amount
number
date
string<date-time>
fundId
string
method
enum<string>
Available options:
CASH,
CHECK,
CREDIT_CARD,
ACH,
ONLINE,
STOCK,
OTHER
isTaxDeductible
boolean
externalSource
string
Last modified on July 8, 2026