Update Relation
Update the editable fields of a relation.
The body carries the relation’s fields and nothing else; only those present are applied,
the others keep their value. address is the exception: it is merged into the stored
address, so sending only city leaves the rest of the address alone.
type is read-only, and a field belonging to the other relation type is refused. Changing
a company’s vat, identifier or electronic_address to one another company of the same
company already carries is refused with 409 duplicate_relation, unless
?ignore_duplicate=true is passed. A request that breaks a rule is refused as a whole:
the relation is left completely untouched, never half-updated.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Goes through even when the result would give this company the same vat, identifier or electronic_address as another one (otherwise refused with 409 duplicate_relation). Companies only: passing it on a contact is refused, since there is no such check to waive. Never stored.
Body
The editable part of a relation. Every field is optional: only the ones actually present in the request body are applied, so omitting a field leaves it untouched.
Unlike create this is a single model, because type is not editable — a relation cannot
move from RELCOMPANIES to RELCONTACTS. It therefore declares the fields of both types,
and one that does not apply to the relation being updated is refused with
field_not_editable. A request that breaks a rule changes nothing at all.
Sending null clears a field, except for the ones create makes mandatory (name on
a company, first_name on a contact): the update endpoint must not be able to produce a
relation the create endpoint would have refused.
Read-only after creation.
Primary email address.
245Phone number.
45Preferred language, one of ['fr', 'en', 'nl', 'de'].
Address fields to change, merged into the stored address (see below). null is refused: a relation always has an address.
Company name. Companies only — a contact's name is derived from its first_name/last_name.
1 - 245VAT number. Companies only.
45Legal registration / party identifier. Companies only.
45Peppol electronic address. Companies only.
60Whether it is a customer. Companies only.
Whether it is a supplier. Companies only.
First name. Contacts only.
1 - 245Last name. Contacts only.
245Response
Successful Response
- CompanyRelationOut
- ContactRelationOut
A business third party. Carries the fields an individual has no equivalent of
(vat, identifier, electronic_address, is_customer, is_supplier), and none of
the contact-only ones — first_name/last_name are simply absent from the response.
Opaque unique identifier of the relation.
Relation type, always company here.
"company"Display name. Company name for company, full name for contact.
Primary email address.
Phone number.
Preferred language, one of ['fr', 'en', 'nl', 'de'].
Postal address, if known.
VAT number, prefixed with the ISO country code.
Legal registration / party identifier.
Electronic address used to send invoices over Peppol.
true if this company is a customer.
true if this company is a supplier.