Skip to main content
PATCH
Update company (partial)
Send only the fields you want to change. Anything you don’t send stays as it is. A field that you send follows the same rules as on the full update. name, currency_iso_4217_code, is_active, fiscal_year_end_month, and accounting_framework cannot be cleared: null on them fails with 400. Send null to clear parent_company_id, short_code, address, or a default account ID. address merges onto the stored address. Send only the address fields that you want to change. Send vat_registration_numbers as a list of country and registration_number pairs, where country is an ISO 3166-1 alpha-2 code such as DE. The list replaces every VAT registration number of the company. Send an empty list to remove them all, or leave the field out or send null to keep them. gst_registration_numbers replaces the GST registrations in the same way. Each GST item needs country, registration_type, and registration_number, and can include region. The request fails with 422 when the approved record edit policy of your organization does not allow a change to the company.

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

company_id
integer
required

Body

application/json

Partial update payload for PATCH /public/companies/{id}/.

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

gst_registration_numbers
GstRegistrationItemSchema · object[] | null
vat_registration_numbers
VatRegistrationItemSchema · object[] | null
business_id
string
default:""

Business identifier. Spaces at the ends are removed. An empty value clears the stored identifier.

Maximum string length: 100
date_style
enum<string> | null

Date display style: short, medium, long, or custom. Null means the organization default applies.

Available options:
short,
medium,
long,
custom
date_format_custom
string | null

Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.

Maximum string length: 16
name
string | null
Required string length: 1 - 128
short_code
string | null

Short company code (max 5 chars, letters/digits) used in code sequence {company} tokens. Stored uppercase. Null when unset.

Maximum string length: 5
Pattern: ^[A-Za-z0-9]*$
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
parent_company_id
integer | null
tin
string | null
default:""
Maximum string length: 13
tin_type
default:""
Available options:
ein,
ssn,
utr,
rfc
Maximum string length: 3
address
AddressSchemaIn · object | null
brand_color
string | null
default:""

Brand color in hex format (e.g., #FF5733)

Maximum string length: 7
logo_attachment_id
integer | null

ID of the logo attachment

icon_attachment_id
integer | null

ID of the icon attachment

default_bank_account_id
integer | null
default_ar_account_id
integer | null
default_ap_account_id
integer | null
default_unbilled_receivable_account_id
integer | null
fiscal_year_end_month
enum<integer> | null

Fiscal year end month (1=Jan, 12=Dec)

Available options:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
accounting_framework
enum<string> | null

Reporting framework for this company (us_gaap or ifrs).

Available options:
us_gaap,
ifrs
date_format
enum<string> | null
Available options:
MM/DD/YYYY,
MMMM D, YYYY,
MMM D, YYYY,
DD/MM/YYYY,
DD.MM.YYYY,
D MMMM YYYY,
D MMM YYYY,
YYYY-MM-DD
locale
enum<string> | null
Available options:
en-US,
en-GB,
en-CA,
en-CH,
en-IN,
de-DE,
fr-FR,
fr-CA,
fr-BE,
nl-NL,
nl-BE,
es-ES,
it-IT,
pt-PT,
fi-FI,
sv-SE,
da-DK,
nb-NO,
pl-PL,
zh-CN,
ja-JP
money_amount_display
enum<string> | null
Available options:
symbol,
distinguish_symbol,
code,
symbol_and_code
currency_position
enum<string> | null
Available options:
left,
right
invoice_email_subject
string | null
default:""
Maximum string length: 256
invoice_email_content
string | null
default:""

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
parent_company_id
integer | null
required
currency_iso_4217_code
enum<string>
required

The ISO 4217 code of the currency of the company.

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
required

Whether the company is active.

is_elimination
boolean
required

Whether the company is an elimination company.

fiscal_year_end_month
integer
required

Fiscal year end month (1=January, 12=December).

gst_registration_numbers
GstRegistrationItemSchemaOut · object[]
vat_registration_numbers
VatRegistrationItemSchemaOut · object[]
created_by
AuditActorSchemaOut · object | null

Schema for audit actor information.

updated_by
AuditActorSchemaOut · object | null

Schema for audit actor information.

date_style
enum<string> | null

Date display style: short, medium, long, or custom. Null means the organization default applies.

Available options:
short,
medium,
long,
custom
date_format_custom
string | null

Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.

Maximum string length: 16
code
string | null
short_code
string | null

Short company code used in the {company} token of a record number pattern. Null when unset.

brand_color
string
default:""

Brand color in hex format, such as #FF5733. Empty string when unset.

default_bank_account_id
integer | null

ID of the default bank account. Null when unset.

default_ar_account_id
integer | null

ID of the default accounts receivable account. Null when unset.

default_ap_account_id
integer | null

ID of the default accounts payable account. Null when unset.

default_unbilled_receivable_account_id
integer | null

ID of the default unbilled receivable account. Null when unset.

address
AddressSchemaOut · object | null

Company address. Null when no address is on file.

tin
string
default:""

Tax Identification Number. Empty string when unset.

tin_type
string
default:""

Type of TIN (ein, ssn, utr, rfc). Empty string when unset.

business_id
string
default:""

Business identifier. Empty when unset.