Create Relation
Create a third party of the company: a business (type: company) or an individual
(type: contact).
The body carries the relation and nothing else. type selects which fields it accepts,
and cannot be changed afterwards. A company is identified by its name, a contact by its
first_name — sending a field the other type owns is refused rather than ignored.
address is required, and must at least carry the country_code.
A company whose vat, identifier or electronic_address already belongs to another
company of the same company is refused with 409 duplicate_relation; pass
?ignore_duplicate=true to create it anyway.
In sandbox mode the body is validated exactly as in live mode but nothing is stored, so
the returned id is not resolvable.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
- CompanyRelationCreate
- ContactRelationCreate
A business third party to create. name identifies it and is required.
The contact-only fields (first_name, last_name) are rejected: an individual is a
relation of type contact.
Postal address. Required.
Selects the company relation type.
"company"Company name.
1 - 245Primary email address.
245Phone number.
45Preferred language, one of ['fr', 'en', 'nl', 'de'].
VAT number, prefixed with the ISO country code.
45Legal registration / party identifier.
45Electronic address used to send invoices over Peppol.
60Whether this company is a customer.
Whether this company is a supplier.
Response
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.