Skip to main content
PATCH
Update account (partial)
Send only the fields you want to change. Anything you don’t send stays as it is, including the monetary distinction, the company restrictions, and the custom fields. Send null to clear parent_account_id or company_id, and send null for allowed_company_ids to remove company restrictions. null on name, number, account_type, is_active, description, or category_1099 fails with 400. Send "" to clear description or category_1099. null on the bank fields, start_bank_match_date, or default_classification_line_ids keeps the stored value. A field that you send follows the same rules as on the full update.
Side effects
  • If an approval workflow matches this request, DualEntry can set is_active to false.

Authorizations

X-API-KEY
string
header
required

Headers

Idempotency-Key
string

Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.

Maximum string length: 255

Path Parameters

account_number
integer
required

Body

application/json

Partial update payload for PATCH /public/accounts/{account_number}/.

Every field is optional: send only the fields you want to change. Unset fields are left untouched on the existing record.

account_type
enum<string> | null
Available options:
bank,
accounts_receivable,
other_current_asset,
fixed_asset,
unbilled_receivable,
deferred_expense,
other_asset,
investment,
accounts_payable,
credit_card,
deferred_revenue,
long_term_liability,
other_current_liability,
equity,
income,
cost_of_goods_sold,
expense,
other_income,
other_expense,
statistical
bank_routing
string | null
Maximum string length: 9
iban
string | null
custom_fields
Custom Fields · object[] | null
name
string | null
Required string length: 2 - 256
description
string | null
Maximum string length: 512
number
integer | null
Required range: 1 <= x <= 9223372036854776000
currency_iso_4217_code
enum<string> | null
Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRU,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VES,
VND,
VUV,
WST,
XAF,
XAG,
XAU,
XCD,
XDR,
XOF,
XPD,
XPF,
XPT,
YER,
ZAR,
ZMW,
ZWL
is_active
boolean | null
company_id
integer | null
parent_account_id
integer | null
category_1099
Available options:
NEC-Box 1,
MISC-Box 1,
MISC-Box 2,
MISC-Box 3,
MISC-Box 4,
MISC-Box 5,
MISC-Box 6,
MISC-Box 8,
MISC-Box 9,
MISC-Box 10,
MISC-Box 11,
MISC-Box 12,
MISC-Box 14,
MISC-Box 15,
INT-Box 1,
INT-Box 2,
INT-Box 3,
DIV-Box 1a,
DIV-Box 1b,
DIV-Box 2a,
DIV-Box 2b,
DIV-Box 2c,
DIV-Box 2d,
DIV-Box 2e,
DIV-Box 2f,
DIV-Box 3,
DIV-Box 4,
DIV-Box 5,
DIV-Box 6,
DIV-Box 7,
DIV-Box 8,
DIV-Box 9,
DIV-Box 10,
DIV-Box 12,
DIV-Box 13
allowed_company_ids
integer[] | null

Company IDs allowed to use this account in transactions. Restricts a shared chart-of-accounts entry to specific entities within your organization. Omit for no company restrictions (bank and credit card accounts use company_id instead).

Example:
is_monetary
boolean | null

Legacy boolean for monetary distinction. Omit this field and monetary_distinction to keep the stored value.

monetary_distinction
enum<string> | null

Whether the account is monetary or non-monetary. Send monetary or non_monetary. Omit this field and is_monetary to keep the stored value. A change is refused when the account has posted transactions.

Available options:
monetary,
non_monetary
bank_alias
string | null
Maximum string length: 256
bank_account_number
string | null
Required string length: 1 - 20
start_bank_match_date
string<date> | null
default_classification_line_ids
integer[] | null

Response

OK

created_at
string<date-time>
required

Date and time the record was created

updated_at
string<date-time>
required

Date and time the record was last updated

id
integer
required
name
string
required
number
integer
required
description
string
required
is_active
boolean
required
is_system
boolean
required
company_id
integer | null
required
parent_account_id
integer | null
required
account_type
enum<string>
required
Available options:
bank,
accounts_receivable,
other_current_asset,
fixed_asset,
unbilled_receivable,
deferred_expense,
other_asset,
investment,
accounts_payable,
credit_card,
deferred_revenue,
long_term_liability,
other_current_liability,
equity,
income,
cost_of_goods_sold,
expense,
other_income,
other_expense,
statistical
currency_iso_4217_code
enum<string> | null
required

The ISO 4217 code of the currency of the account. Only available for bank type accounts.

Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRU,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VES,
VND,
VUV,
WST,
XAF,
XAG,
XAU,
XCD,
XDR,
XOF,
XPD,
XPF,
XPT,
YER,
ZAR,
ZMW,
ZWL
category_1099
required
Available options:
NEC-Box 1,
MISC-Box 1,
MISC-Box 2,
MISC-Box 3,
MISC-Box 4,
MISC-Box 5,
MISC-Box 6,
MISC-Box 8,
MISC-Box 9,
MISC-Box 10,
MISC-Box 11,
MISC-Box 12,
MISC-Box 14,
MISC-Box 15,
INT-Box 1,
INT-Box 2,
INT-Box 3,
DIV-Box 1a,
DIV-Box 1b,
DIV-Box 2a,
DIV-Box 2b,
DIV-Box 2c,
DIV-Box 2d,
DIV-Box 2e,
DIV-Box 2f,
DIV-Box 3,
DIV-Box 4,
DIV-Box 5,
DIV-Box 6,
DIV-Box 7,
DIV-Box 8,
DIV-Box 9,
DIV-Box 10,
DIV-Box 12,
DIV-Box 13
system_ref
enum<string> | null
required
Available options:
Accounts Receivable,
IC Accounts Receivable,
IC Due From,
Vendor Deposits,
Undeposited Funds,
Unapplied Cash Payments,
Accumulated Depreciation,
Accounts Payable,
IC Accounts Payable,
IC Due To,
Customer Deposits,
Tax Payable,
Accrued Purchases,
Deferred Revenue,
Unapplied Cash Receipts,
Cumulative Translation Adjustment - Elimination,
Cumulative Translation Adjustment,
Retained Earnings,
Net Income,
Realized Gain/Loss,
Unrealized Gain/Loss,
Matching Gain/Loss,
Rounding Gain/Loss,
Inventory Shrinkage
monetary_distinction
enum<string>
required
Available options:
monetary,
non_monetary
custom_fields
CustomFieldValuePairOutputSchema · object[]
created_by
AuditActorSchemaOut · object | null

Schema for audit actor information.

updated_by
AuditActorSchemaOut · object | null

Schema for audit actor information.

approval_status
string | null
next_approvers
ApproverDictSchema · object[] | null
rejected_by
RejectedBySchema · object | null

Rejector info from pre-serialized dict, with the reason of that rejection.

default_classification_line_ids
integer[] | null