linkAccountsToEstablishment
Link an establishment to a list of accounts.
Arguments
Input variables needed for linking a list of accounts to an establishment.
Possible Errors
- KT-CT-11106: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
- KT-FR-11101: Cannot link account and establishment.
- KT-FR-11102: Invalid SIRET.
- KT-FR-11106: The viewer is not authorized to execute the query/mutation. Check the ownership/permissions of provided data.
Allowed Viewers
Required Permissions
Can link establishments to accounts Can query accounts with account number Can query establishmentsQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation LinkAccountsToEstablishment($input: LinkAccountsToEstablishmentInput!) {
linkAccountsToEstablishment(input: $input) {
accounts {
...AccountConnectionTypeConnectionFragment
}
establishment {
...EstablishmentTypeFragment
}
}
}
Variables
{
"input": LinkAccountsToEstablishmentInput
}
Response
{
"data": {
"linkAccountsToEstablishment": {
"accounts": AccountConnectionTypeConnection,
"establishment": EstablishmentType
}
}
}