API reference

acceptFortnoxAccountingImportIntegrationTermsOfService

Required permission: OrganizationWrite

graphql
acceptFortnoxAccountingImportIntegrationTermsOfService(
  organizationId: ID!
): Organization

Arguments

Name Type Description
organizationId ID!

Returns

Organization

Example

graphql
mutation AcceptFortnoxAccountingImportIntegrationTermsOfService($organizationId: ID!) {
  acceptFortnoxAccountingImportIntegrationTermsOfService(organizationId: $organizationId) {
    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 { acceptFortnoxAccountingImportIntegrationTermsOfService(...) { __typename } }"}'