createEstablishment
Create an establishment for a business.
Arguments
Input variables needed for creating an establishment on a business.
Possible Errors
- KT-CT-11101: The viewer is not authorized to execute the query/mutation. Check the ownership/permissions of provided data.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
- KT-FR-11102: Invalid SIRET.
- KT-FR-11110: Establishment could not be created.
- KT-FR-11111: Invalid details.
Allowed Viewers
Required Permissions
Can create establishments 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 CreateEstablishment($input: CreateEstablishmentInput!) {
createEstablishment(input: $input) {
establishment {
...EstablishmentTypeFragment
}
}
}
Variables
{
"input": CreateEstablishmentInput
}
Response
{
"data": {
"createEstablishment": {
"establishment": EstablishmentType
}
}
}