API reference

linkFortnoxAccountingImportAccount

Required permission: OrganizationAccountingWrite

graphql
linkFortnoxAccountingImportAccount(
  organizationId: ID!
  credentials: FortnoxAccountingImportCredentials!
): Organization

Arguments

Name Type Description
organizationId ID!
credentials FortnoxAccountingImportCredentials!

Returns

Organization

Example

graphql
mutation LinkFortnoxAccountingImportAccount($organizationId: ID!, $credentials: FortnoxAccountingImportCredentials!) {
  linkFortnoxAccountingImportAccount(organizationId: $organizationId, credentials: $credentials) {
    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": "mutation { linkFortnoxAccountingImportAccount(...) { __typename } }"}'