Skip to main content
PUT
/
clients
/
{id}
Update a client
curl --request PUT \
  --url https://api.heffl.com/api/v1/clients/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "type": "company",
  "name": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "salutation": "<string>",
  "phone": "<string>",
  "email": "[email protected]",
  "jobTitle": "<string>",
  "website": "<unknown>",
  "taxNumber": "<string>",
  "billingAddress": {
    "city": "<string>",
    "address": "<string>",
    "landmark": "<string>",
    "state": "<string>",
    "country": "<string>",
    "postalCode": "<string>"
  },
  "cf_": "<unknown>"
}
'
{
  "id": "<string>",
  "number": "<string>",
  "name": "<string>",
  "type": "company",
  "createdAt": "2023-11-07T05:31:56Z",
  "firstName": "<string>",
  "lastName": "<string>"
}

Authorizations

x-api-key
string
header
required

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

Path Parameters

id
string
required

Client public ID

Body

application/json
type
enum<string>

Client type: company for companies, contact for contacts

Available options:
company,
contact
name
string

Company name (required for companies, optional for contacts)

firstName
string

First name (required for contacts, optional for companies)

lastName
string

Last name (optional for contacts)

salutation
string

Title (Mr., Mrs., Dr., etc.)

phone
string

Phone number with country code

email
string<email> | null

Email address

jobTitle
string

Job title or position

website
any | null

Company website URL

taxNumber
string | null

Tax ID or VAT number

billingAddress
object

Billing address details

cf_
any | null

Custom fields, that start with cf_

{key}
any

Response

200 - application/json

OK

Successfully updated client

id
string
required

Client ID

number
string
required

Auto-generated client number

name
string
required

Client name

type
enum<string>
required

Client type: company or contact

Available options:
company,
contact
createdAt
string<date-time>
required

When the client was created

firstName
string | null

First name (for contacts)

lastName
string | null

Last name (for contacts)