Get relation
One relation with address, contacts, email addresses, VAT number, IBAN and payment term.
GET https://cotlet.dev/api/v1/e-boekhouden/relations/{relation_id}
read
Returns the full record of one relation: primary and secondary address, phone, the invoice email address, VAT number, company registration number, IBAN, payment term and whether it is inactive. Use it before invoicing to see where the invoice will go.
Parameters
| Name | Type | Description |
|---|---|---|
| relation_id integer required | integer | Relation ID from list_relations. |
Request
curl https://cotlet.dev/api/v1/e-boekhouden/relations/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("e-boekhouden", "get_relation", {"relation_id":1}) const result = await cotlet.call('e-boekhouden', 'get_relation', {"relation_id":1}); cotlet call e-boekhouden get_relation --data '{"relation_id":1}' Example response
{
"relation_id": 1042,
"code": "STN001",
"type": "B",
"name": "Studio Noord BV",
"contact": "Eva de Boer",
"address": "Voorbeeldstraat 12",
"postal_code": "3511 AB",
"city": "Utrecht",
"country": "NL",
"email": "admin@studionoord.example",
"email_invoice": "facturen@studionoord.example",
"vat_number": "NL000000000B01",
"iban": "NL00BANK0123456789",
"term_of_payment": 14,
"inactive": false
}