Skip to main content
PATCH
Update a transaction

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Scopes

accounting:write

Headers

If-Match
string

The ETag you last read for this record. If the record has changed since, the change is refused with 412 stale_write, which carries its current ETag. Optional, and recommended: without it the last write wins.

Path Parameters

transactionId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json

null clears a link. amount, date, type and bankAccountId change only on an unreconciled transaction the API added. A field not listed here is refused with a 400.

updatedAt
string<date-time>
required

The updatedAt you last read. If the transaction has changed since, the update is refused with a 412.

categoryId
string<uuid> | null

One of the group’s categories. Another group’s id is refused with a 400.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
sectionId
string<uuid> | null

One of the group’s sections. Another group’s id is refused with a 400.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
eventId
string<uuid> | null

One of the group’s events. Another group’s id is refused with a 400.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
memberId
string<uuid> | null

One of the group’s members. Another group’s id is refused with a 400.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
restrictedFundId
string<uuid> | null

One of the group’s restricted funds. Another group’s id is refused with a 400.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
budgetId
string<uuid> | null

One of the group’s budgets. Another group’s id is refused with a 400.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
isGiftAidEligible
boolean
giftAidType
enum<string> | null

How Gift Aid is claimed. Income lines only.

Available options:
declaration,
gasds,
manual
description
string

Stored, and returned only to a key with accounting.people:read.

Required string length: 1 - 500
reference
string | null

Stored, and returned only to a key with accounting.people:read.

Required string length: 1 - 255
counterparty
string | null

Stored, and returned only to a key with accounting.people:read.

Required string length: 1 - 255
paymentMethod
enum<string> | null
Available options:
bank_transfer,
card,
cash,
cheque,
direct_debit,
other
amount
string

Pounds, as a string with at most two decimal places: "12.50". Always positive: the type gives the direction.

Pattern: ^\d+(\.\d{1,2})?$
date
string<date>

A date, YYYY-MM-DD.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
type
enum<string>
Available options:
income,
expense
bankAccountId
string<uuid>
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
{key}
any

Response

OK

data
object
required
{key}
any