API reference
linkFortnoxAccountingImportAccount
Required permission: OrganizationAccountingWrite
linkFortnoxAccountingImportAccount(
organizationId: ID!
credentials: FortnoxAccountingImportCredentials!
): OrganizationArguments
| Name | Type | Description |
|---|---|---|
organizationId |
ID! |
|
credentials |
FortnoxAccountingImportCredentials! |
Returns
Example
mutation LinkFortnoxAccountingImportAccount($organizationId: ID!, $credentials: FortnoxAccountingImportCredentials!) {
linkFortnoxAccountingImportAccount(organizationId: $organizationId, credentials: $credentials) {
id
fortnoxAccountingImportEnabled
hasFortnoxAccountingImportAccess
hasFortnoxAccountingImportCredentials
accountantEmail
createdAt
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { linkFortnoxAccountingImportAccount(...) { __typename } }"}'