API reference
setStripeAccountId
Required permission: OrganizationWrite
setStripeAccountId(
organizationId: ID!
authorizationCode: String!
): OrganizationArguments
| Name | Type | Description |
|---|---|---|
organizationId |
ID! |
|
authorizationCode |
String! |
Returns
Example
mutation SetStripeAccountId($organizationId: ID!, $authorizationCode: String!) {
setStripeAccountId(organizationId: $organizationId, authorizationCode: $authorizationCode) {
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 { setStripeAccountId(...) { __typename } }"}'