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

Parameters: get_relation
NameTypeDescription
relation_id integer required integer Relation ID from list_relations.

Request

cURL
curl https://cotlet.dev/api/v1/e-boekhouden/relations/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("e-boekhouden", "get_relation", {"relation_id":1})
Node.js
const result = await cotlet.call('e-boekhouden', 'get_relation', {"relation_id":1});
CLI
cotlet call e-boekhouden get_relation --data '{"relation_id":1}'

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.