Skip to main content
PATCH
https://api.grainledger.com
/
api
/
v1
/
transactions
/
{id}
Update transaction
curl --request PATCH \
  --url https://api.grainledger.com/api/v1/transactions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Organization-Id: <x-organization-id>' \
  --data '
{
  "description": "Weekly offering deposit",
  "amount": 4250,
  "date": "2026-07-01",
  "transactionType": "DEPOSIT"
}
'
const options = {
  method: 'PATCH',
  headers: {
    'X-Organization-Id': '<x-organization-id>',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    description: 'Weekly offering deposit',
    amount: 4250,
    date: '2026-07-01',
    transactionType: 'DEPOSIT'
  })
};

fetch('https://api.grainledger.com/api/v1/transactions/{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/transactions/{id}"

payload = {
    "description": "Weekly offering deposit",
    "amount": 4250,
    "date": "2026-07-01",
    "transactionType": "DEPOSIT"
}
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>",
  "description": "<string>",
  "amount": 123,
  "date": "2023-11-07T05:31:56Z",
  "referenceNumber": "<string>",
  "fundId": "<string>",
  "vendorId": "<string>",
  "isReconciled": true
}
{
  "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
description
string
required
Example:

"Weekly offering deposit"

amount
number
required
Example:

4250

date
string<date>
required
Example:

"2026-07-01"

transactionType
enum<string>
required
Available options:
DEPOSIT,
WITHDRAWAL,
TRANSFER,
ADJUSTMENT
Example:

"DEPOSIT"

referenceNumber
string
Example:

"DEP-2026-0701"

fundId
string
vendorId
string

Response

Updated transaction

id
string
description
string
amount
number
date
string<date-time>
transactionType
enum<string>
Available options:
DEPOSIT,
WITHDRAWAL,
TRANSFER,
ADJUSTMENT
referenceNumber
string | null
fundId
string | null
vendorId
string | null
isReconciled
boolean
Last modified on July 8, 2026