List legal entities
GET
/legal-entities
const url = 'https://api.europlaybook.com/v1/legal-entities?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.europlaybook.com/v1/legal-entities?limit=50' \ --header 'Authorization: Bearer <token>'The account’s companies (the sellers in sales lines and the holders of obligations).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
Media typeapplication/json
LegalEntityPage
object
items
required
Items
Array<object>
LegalEntityOutobject
id
required
Id
string format: uuid
name
required
Name
Registered company name.
string
legal_form
required
Legal Form
Legal form.
string
country
required
Country
Country of registration (ISO 3166-1 alpha-2).
string
registry_type
required
Registry Type
Company registry (kvk, kbo, …).
string
registry_id
required
Registry Id
Number in that registry.
string
vat_number
required
Vat Number
VAT number.
string
is_default
required
Is Default
The company used when a sale names none.
boolean
Example
{ "items": [ { "id": "0199f5a2-7c1e-7b4a-9d0e-3f6c2a1b8e44", "name": "Demo Garden B.V.", "legal_form": "B.V.", "country": "NL", "registry_type": "kvk", "registry_id": "90000001", "vat_number": "NL800000001B01" } ], "next_cursor": "WyIwMTk5ZjVhMi03YzFlLTdiNGEtOWQwZS0zZjZjMmExYjhlNDQiXQ"}Bad Request
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Unauthorized
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Forbidden
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Not Found
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Conflict
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}Unprocessable Content
Media typeapplication/json
PublicValidationErrorOut
object
detail
required
Detail
What went wrong, in English, for people and logs.
string
code
required
Code
Stable machine-readable error code; translate and branch on this.
string
errors
Errors
Per-field problems (pydantic format: loc, msg, type).
Array<object>
object
key
additional properties
any
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }, "errors": []}Too Many Requests
Media typeapplication/json
PublicErrorOut
object
Example
{ "detail": "This API key lacks the scope catalogue:write", "code": "insufficient_scope", "params": { "required_scope": "catalogue:write" }}