API reference

organization

Required permission: OrganizationRead

graphql
organization(
  id: ID!
): Organization

Arguments

Name Type Description
id ID!

Returns

Organization

Example

graphql
query Organization($id: ID!) {
  organization(id: $id) {
    id
    fortnoxAccountingImportEnabled
    hasFortnoxAccountingImportAccess
    hasFortnoxAccountingImportCredentials
    accountantEmail
    createdAt
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "query { organization(...) { __typename } }"}'