Skip to main content
PATCH
Update a company

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours at app.heffl.com/settings/developers

Path Parameters

id
string
required

Company ID

Body

application/json
name
string

Company name

email
string<email> | null

Email address

phone
string

Phone number with country code

taxNumber
string

Tax number

website
string<uri> | null

Website URL

description
string

Description

linkedin
string<uri> | null

LinkedIn URL

twitter
string<uri> | null

X / Twitter URL

facebook
string<uri> | null

Facebook URL

instagram
string<uri> | null

Instagram URL

industries
string[]

Industries

employeesCountRange
enum<string> | null

Employee count bucket

Available options:
1-10,
11-50,
51-200,
201-500,
501-1K,
1K-5K,
5K-10K,
over-10K
revenueRange
enum<string> | null

Annual revenue bucket

Available options:
under-1m,
1m-10m,
10m-50m,
50m-100m,
100m-200m,
200m-1b,
over-1b
foundedYear
integer | null

Year the company was founded

Required range: x >= 1800
taxTreatment
enum<string> | null

VAT treatment (GCC)

Available options:
vat_registered,
vat_not_registered,
gcc_vat_registered,
gcc_vat_not_registered,
non_gcc,
dz_vat_registered,
dz_vat_not_registered
paymentTerm
enum<string> | null

Default invoice payment term. Null falls back to the team default.

Available options:
DUE_ON_RECEIPT,
NET_7,
NET_15,
NET_30,
NET_45,
NET_60,
END_OF_MONTH,
END_OF_NEXT_MONTH,
CUSTOM
currency
string | null

3-letter ISO currency code

openingBalance
number

Opening balance

Required range: x >= 0
showJobAmountToWorker
boolean

Whether job amounts are visible to field workers

isClientPortalEnabled
boolean

Whether the client portal is enabled

internalNotes
string

Internal notes

stageId
string

Client stage ID

ownerUserId
string

Owner user ID

vendorId
string

Vendor ID

sourceId
string

CRM source ID

tags
string[]

Tag IDs (tag_ prefix). Replaces the full set when provided.

billingAddress
object

Billing address. On update only the keys you send are changed; send null to clear a key. An unrecognised country returns 400; state must be sent together with country.

primaryContact
object

Optional primary contact fields to create or update

{key}
any

Custom field values using cf_* keys (for example cf_industry). Only documented fields and cf_* keys are accepted.

Response

OK

A company with its billing address, tags, owner and contacts. Returned by get, create and update.

id
string
required

Company ID

name
string
required

Company name

number
string
required

Auto-generated company number

openingBalance
number
required

Opening balance

showJobAmountToWorker
boolean
required

Whether job amounts are visible to field workers

isClientPortalEnabled
boolean
required

Whether the client portal is enabled

paymentTerm
enum<string> | null
required

Default invoice payment term. Null falls back to the team default.

Available options:
DUE_ON_RECEIPT,
NET_7,
NET_15,
NET_30,
NET_45,
NET_60,
END_OF_MONTH,
END_OF_NEXT_MONTH,
CUSTOM
ownerName
string | null
required

Owner's full name

tags
object[]
required

Tags on the company

billingAddress
object | null
required

Billing address

contacts
object[]
required

Contacts under this company, primary first

type
enum<string> | null

Record type (always company for this endpoint)

Available options:
contact,
company
email
string | null

Email address

phone
string | null

Phone number

taxNumber
string | null

Tax number

website
string | null

Website URL

description
string | null

Description

industries
string[]

Industries

employeesCountRange
enum<string> | null

Employee count bucket

Available options:
1-10,
11-50,
51-200,
201-500,
501-1K,
1K-5K,
5K-10K,
over-10K
revenueRange
enum<string> | null

Annual revenue bucket

Available options:
under-1m,
1m-10m,
10m-50m,
50m-100m,
100m-200m,
200m-1b,
over-1b
foundedYear
integer | null

Year the company was founded

linkedin
string | null

LinkedIn URL

twitter
string | null

X / Twitter URL

facebook
string | null

Facebook URL

instagram
string | null

Instagram URL

stageId
string | null

Client stage ID

stageName
string | null

Client stage label

ownerUserId
string | null

Owner user ID

sourceId
string | null

CRM source ID

sourceName
string | null

CRM source name

currency
string | null

Currency code

taxTreatment
enum<string> | null

VAT treatment (GCC)

Available options:
vat_registered,
vat_not_registered,
gcc_vat_registered,
gcc_vat_not_registered,
non_gcc,
dz_vat_registered,
dz_vat_not_registered
profileImage
string | null

Profile image URL

createdAt
string<date-time>

When the company was created

updatedAt
string<date-time>

When the company was last updated

lastActivityAt
string<date-time> | null

When the last activity was logged

lastContactedAt
string<date-time> | null

When the company was last contacted

enrichedAt
string<date-time> | null

When the company was last enriched

{key}
any

Custom field values as top-level cf_* keys (for example cf_industry). There is no customFields wrapper.