Mutation
mutation CreateCompany($request: CreateCompanyCommandRequestInput!) {
CreateCompany(request: $request) {
companyId
}
}Variables
{
"request": {
"companyName": "string",
"countryIsoCode": "string",
"isSmallBusinessOwner": true
}
}Response
{
"data": {
"CreateCompany": {
"companyId": "id"
}
}
}Mutations
CreateCompany
A command to create a new company, including identification, contact, banking, and tax information.
If a request with this mutation’s Idempotency-Key was already completed, the response’s extensions contains an idempotency.{responseName} entry with wasReplayed: true.
MUTATION
CreateCompany(request: CreateCompanyCommandRequestInput!): CreateCompanyCommandResponse!Arguments
request
required
Returns
companyId
ID!
Unique ID of the newly created company - this key is used for all further operations with the company.
Mutation
mutation CreateCompany($request: CreateCompanyCommandRequestInput!) {
CreateCompany(request: $request) {
companyId
}
}Variables
{
"request": {
"companyName": "string",
"countryIsoCode": "string",
"isSmallBusinessOwner": true
}
}Response
{
"data": {
"CreateCompany": {
"companyId": "id"
}
}
}Was this page helpful?