Accounting relations
Link a company to a relation in the accounting package
Points the company at an existing relation in the accounting package, so the next synchronization does not create a new one. A company holds one link per accounting integration, and linking again replaces the existing link. Returns the company including its links.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Link a company to a relation in the accounting package › Request Body
external_idIdentifier of the relation in the accounting package.
integration_instance_idAccounting integration to link at.
Link a company to a relation in the accounting package › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atUnlink a company
Removes the company's link at the given accounting integration. The next synchronization creates a new relation in the accounting package. Returns the company including its links.
path Parameters
companyThe company UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Unlink a company › Request Body
integration_instance_idAccounting integration to unlink at.
Unlink a company › Responses
CompanyResource
idnamelegal_nameinvoice_emailbundle_invoicesdefault_mandate_idactive_creditsauto_bill_creditsauto_bill_credits_thresholdprice_per_creditcoc_numbertax_numberaddresspostal_codecitycountrytyperemarkupdated_atcreated_atList relations in the accounting package
Returns the relations known to the accounting provider, optionally narrowed by a free-text search term. Use this to find the relation a company should be linked to. List the organization's integrations to find the accounting integration to read from.
The relations come from the accounting provider, which reports no total, so meta.total and
meta.last_page are an estimate: as long as a page comes back full they count the items fetched
so far plus one, and they only settle once a page is no longer full. Keep requesting the next page
until you get a page that is not full, rather than reading the total as a count.
query Parameters
integration_instance_idAccounting integration to read from.
searchFree-text search term, matched by the provider on name, email and reference.
pagePage number of the paginated result set.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List relations in the accounting package › Responses
Array of AccountingRemoteCompanyResource