# setStripeAccountId

> Required permission: OrganizationWrite

Source: https://docs.gastrogate.io/docs/api/mutations/setStripeAccountId

```graphql
setStripeAccountId(
  organizationId: ID!
  authorizationCode: String!
): Organization
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `organizationId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `authorizationCode` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |

## Returns

[`Organization`](https://docs.gastrogate.io/docs/api/types/Organization.md)

## Example

```graphql
mutation SetStripeAccountId($organizationId: ID!, $authorizationCode: String!) {
  setStripeAccountId(organizationId: $organizationId, authorizationCode: $authorizationCode) {
    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 { setStripeAccountId(...) { __typename } }"}'
```
