Skip to main content
POST
https://api.grainledger.com
/
api
/
v1
/
donors
Create donor
curl --request POST \
  --url https://api.grainledger.com/api/v1/donors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Organization-Id: <x-organization-id>' \
  --data '
{
  "firstName": "Sarah",
  "lastName": "Johnson"
}
'
const options = {
  method: 'POST',
  headers: {
    'X-Organization-Id': '<x-organization-id>',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({firstName: 'Sarah', lastName: 'Johnson'})
};

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

url = "https://api.grainledger.com/api/v1/donors"

payload = {
    "firstName": "Sarah",
    "lastName": "Johnson"
}
headers = {
    "X-Organization-Id": "<x-organization-id>",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.text)
{
  "id": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "phone": "<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

Body

application/json
firstName
string
required
Example:

"Sarah"

lastName
string
required
Example:

"Johnson"

email
string<email>
Example:

"sarah@gracechurch.org"

phone
string
Example:

"+15551234567"

address
string
city
string
state
string
zip
string
donorType
enum<string>
Available options:
INDIVIDUAL,
HOUSEHOLD,
ORGANIZATION,
DAF_CUSTODIAN,
FOUNDATION,
ESTATE

Response

Created donor

id
string
firstName
string
lastName
string
email
string | null
phone
string | null
donorType
enum<string>
Available options:
INDIVIDUAL,
HOUSEHOLD,
ORGANIZATION,
DAF_CUSTODIAN,
FOUNDATION,
ESTATE
Last modified on July 8, 2026