Company
List companies
Returns a paginated list of companies.
query Parameters
searchFull-text search across company name, legal name, linked contacts, e-mail addresses and phone numbers.
sort_fieldField to sort by: name or active_credits.
sort_directionSort direction: asc or desc.
Only return companies whose active credits fall in this range: active_credits[operator] is greater-than (reads from), less-than (reads to) or between (reads both, ends included).
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List companies › Responses
Array of CompanyListResource
Create a company
Creates a new company, optionally with e-mail addresses, phone numbers and automatic credit billing settings.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a company › Request Body
nametypeCompany type: customer or supplier.
invoice_emailE-mail address invoices are sent to.
coc_numbertax_numberbundle_invoicesWhether invoices for this company are bundled.
default_tax_rate_idauto_bill_creditsWhether credits are billed automatically.
auto_bill_credits_contact_idUUID of the contact billed for credits. Required when auto_bill_credits is true.
auto_bill_credits_thresholdCredit balance at which auto-billing triggers. Required when auto_bill_credits is true.
price_per_creditPrice per credit. Required when auto_bill_credits is true.
auto_bill_tax_rate_idUUID of the tax rate used for auto-billing. Required when auto_bill_credits is true.
auto_bill_flow_idUUID of the invoice flow used for auto-billing. Required when auto_bill_credits is true.
addresspostal_codecitycountryremarkCreate a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atGet a company
Returns a single company by ID, including its linked contacts, mandates and billing settings.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atUpdate a company
Updates an existing company. Only the fields present in the request are changed.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a company › Request Body
nametypeCompany type: customer or supplier.
invoice_emailE-mail address invoices are sent to.
coc_numbertax_numberbundle_invoicesWhether invoices for this company are bundled.
default_tax_rate_idauto_bill_creditsWhether credits are billed automatically.
auto_bill_credits_contact_idUUID of the contact billed for credits. Required when auto_bill_credits is true.
auto_bill_credits_thresholdCredit balance at which auto-billing triggers. Required when auto_bill_credits is true.
price_per_creditPrice per credit. Required when auto_bill_credits is true.
auto_bill_tax_rate_idUUID of the tax rate used for auto-billing. Required when auto_bill_credits is true.
auto_bill_flow_idUUID of the invoice flow used for auto-billing. Required when auto_bill_credits is true.
addresspostal_codecitycountryremarkUpdate a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atDelete a company
Deletes a company. A company can only be deleted when it has no linked contacts or other resources.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atMerge two companies
Merges the company identified by merge_company_id into this company and removes the duplicate.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Merge two companies › Request Body
merge_company_idUUID of the company to merge into this one.
Merge two companies › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atUpdate a company-contact link
Updates the function of a contact within the company.
path Parameters
companyThe company UUID
contactThe contact UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a company-contact link › Request Body
functionThe contact's function within the company.
Update a company-contact link › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atLink a contact to a company
Links an existing contact to the company, setting their function.
path Parameters
companyThe company UUID
contactThe contact UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Link a contact to a company › Request Body
functionThe contact's function within the company.
Link a contact to a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atUnlink a contact from a company
Removes the contact from the company. Its resources are reassigned to the contact identified by
assign_to_contact_id. A company must keep at least one contact.
path Parameters
companyThe company UUID
contactThe contact UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Unlink a contact from a company › Request Body
assign_to_contact_idUUID of the contact the resources are reassigned to.
Unlink a contact from a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atSet the customer portal permissions of a contact at a company
Replaces what the contact may open in the customer portal while working for this company. Unknown
permissions are dropped and the permissions a granted one requires are added, so granting
websites.manage-dns also grants websites.view. See GET permissions/customer for the catalog.
path Parameters
companyThe company UUID
contactThe contact UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Set the customer portal permissions of a contact at a company › Request Body
permissionsThe customer portal permissions to grant, for example invoices.view.
Set the customer portal permissions of a contact at a company › Responses
ContactResource
idfirst_namelast_namefull_nameaddresspostal_codecitycountryremarkdate_of_birthaccount_activatedWhether the contact completed the registration for the customer portal, the same as
account_activated_at being set.
account_last_activitylast moment the contact used the customer portal, to within five minutes
account_activated_atwhen the contact completed the registration, null until then
account_invited_atwhen the contact was last invited to register, null when it never was
updated_atcreated_atPreview the customer portal of a contact at a company
What the contact sees in the customer portal for this company, per permission, whether or not the permission is granted: counts always, the records themselves only for kinds of records the signed-in employee may see.
path Parameters
companyThe company UUID
contactThe contact UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Preview the customer portal of a contact at a company › Responses
CustomerPortalPreviewResource
project_countticket_counttickets the contact takes part in
active_creditssubscription_countinvoice_countwebsite_countdns_domain_countdomains whose DNS records the customer can change
mailbox_domain_countwordpress_application_countWordPress applications the customer can be logged in to
List activities
Returns a paginated list of activities logged on the parent resource, newest first. Activities cover both system-generated events and manually logged remarks.
With include_related the list is the timeline of the resource: its own activities together with
those of the records that belong to it, such as the domain names, applications and mailbox domains
of a website. Each activity then names the record it belongs to in subject.
path Parameters
companyThe company UUID
query Parameters
typeOnly return activities of this type (for example remark).
include_relatedAlso return the activities of the records that belong to the resource, each naming its record in subject.
sourceWith include_related: only return the activities of one record, as <type>:<id>, for example domain:<uuid>. The record has to be the resource itself or belong to it.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List activities › Responses
Array of ActivityWithSubjectResource
Array of ActivityResource
Log a remark
Logs a manual remark as an activity on the parent resource. The remark may contain basic HTML
(p, br, b, strong, i, em, u, s, ul, ol, li, a, span). Other tags
and attributes are stripped and line breaks become <br>. To mention an employee and notify
them, add a span with a data-employee-id attribute holding the employee's UUID, for example
<span data-employee-id="…">@Jan</span>. The answer names the record in subject, like the
timeline does.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Log a remark › Responses
ActivityWithSubjectResource
idtypetitledataThe contact who did it in the customer portal, if any.
The AI connection the activity was done through, if any.
updated_atcreated_atnull when the record is gone