|
| 1 | +The `Company` object can contain the following attributes: |
| 2 | + |
| 3 | +Attribute | Data type | Description |
| 4 | +--- | --- | --- |
| 5 | +`acl_resources` [CompanyAclResource] | Returns the list of all resources defined within the company |
| 6 | +`company_admin` | [Customer]({{page.baseurl}}/graphql/queries/customer.html) | An object containing information about the company administrator |
| 7 | +`email` | String | The email address of the company contact |
| 8 | +`id` | ID! | The ID assigned to the company |
| 9 | +`legal_address` | CompanyLegalAddress | The address where the company is registered to conduct business |
| 10 | +`legal_name` | String | The full legal name of the company |
| 11 | +`name` | String | The name of the company |
| 12 | +`payment_methods` | [String] The list of payment methods available to a company |
| 13 | +`reseller_id` | String | The resale number that is assigned to the company for tax reporting purposes |
| 14 | +`role(id: ID!)` | CompanyRole | Returns information about the specified company role |
| 15 | +`roles(pageSize: Int = 20, currentPage: Int = 1 )` | CompanyRoles! | Returns the list of company roles |
| 16 | +`sales_representative` | CompanySalesRepresentative | The company sales representative |
| 17 | +`structure(rootId: ID = 0 depth: Int = 10 )` | CompanyStructure | Returns the company structure of teams and customers in depth-first order |
| 18 | +`team(id: ID!)` | CompanyTeam | Returns the specified company team |
| 19 | +`user(id: ID!)` | Customer | Returns the specified company user |
| 20 | +`users(filter: CompanyUsersFilterInput, pageSize: Int = 20, currentPage: Int = 1)`| CompanyUsers | Returns the company users that match the specified filter |
| 21 | +`vat_id` | String | The value-added tax number that is assigned to the company by some jurisdictions for tax reporting purposes |
| 22 | + |
| 23 | +### CompanyAclResource attributes {#CompanyAclResource} |
| 24 | + |
| 25 | +The `CompanyAclResource` object can contain the following attributes: |
| 26 | + |
| 27 | +Attribute | Data Type | Description |
| 28 | +--- | --- | --- |
| 29 | +`children` | [CompanyAclResource!] | An array of sub-resources |
| 30 | +`id` | ID! | The ID assigned to the ACL resource |
| 31 | +`sortOrder` | Int | ACL resource sort order |
| 32 | +`text` | String | The label assigned to the ACL resource |
| 33 | + |
| 34 | +### CompanyAdmin attributes {#CompanyAdmin} |
| 35 | + |
| 36 | +The `CompanyAdmin` object can contain the following attributes: |
| 37 | + |
| 38 | +Attribute | Data Type | Description |
| 39 | +--- | --- | --- |
| 40 | +`email` | String! | The email address of the company administrator |
| 41 | +`firstname` | String! | The company administrator's first name |
| 42 | +`gender` | Int | The company administrator's gender (Male - 1, Female - 2, Not Specified - 3) |
| 43 | +`id` | ID! | The ID assigned to the company administrator |
| 44 | +`job_title` | String | The job title of the company administrator |
| 45 | +`lastname` | String! | The company administrator's last name |
| 46 | + |
| 47 | +### CompanyLegalAddress attributes {#CompanyLegalAddress} |
| 48 | + |
| 49 | +The `CompanyLegalAddress` object can contain the following attributes: |
| 50 | + |
| 51 | +Attribute | Data Type | Description |
| 52 | +--- | --- | --- |
| 53 | +`city` | String! | The city where the company is registered to conduct business |
| 54 | +`country_id` | CountryCodeEnum! | Company's country ID. See the [`countries` query]({{page.baseurl}}/graphql/queries/directory-countries.html) |
| 55 | +`postcode` | String! | The ZIP/postal code of the company |
| 56 | +`region` | CustomerAddressRegionInput! | An object containing the region name and/or region ID where the company is registered to conduct business |
| 57 | +`street` | [String!]! | An array of strings that define the street address where the company is registered to conduct business |
| 58 | +`telephone` | String! | The primary phone number of the company. |
| 59 | + |
| 60 | +### CompanyRole attributes {#CompanyRole} |
| 61 | + |
| 62 | +The `CompanyRole` object can contain the following attributes: |
| 63 | + |
| 64 | +Attribute | Data Type | Description |
| 65 | +--- | --- | --- |
| 66 | +`id`| ID! | The ID assigned to the role |
| 67 | +`name` | String | The name assigned to the role |
| 68 | +`permissions` | [CompanyAclResource] | A list of permission resources defined for a role |
| 69 | +`users_count` | Int | The total number of users assigned the specified role |
| 70 | + |
| 71 | +### CompanyRoles attributes {#CompanyRoles} |
| 72 | + |
| 73 | +The `CompanyRoles` object can contain the following attributes: |
| 74 | + |
| 75 | +Attribute | Data Type | Description |
| 76 | +--- | --- | --- |
| 77 | +`items` | [CompanyRole] | A list of company roles that match the specified filter criteria |
| 78 | +`page_info` | SearchResultPageInfo | Pagination meta data |
| 79 | +`total_count` | Int | The total number of roles matching the specified filter |
| 80 | + |
| 81 | +### CompanySalesRepresentative attributes {#CompanySalesRepresentative} |
| 82 | + |
| 83 | +The `CompanySalesRepresentative` object can contain the following attributes: |
| 84 | + |
| 85 | +Attribute | Data Type | Description |
| 86 | +--- | --- | --- |
| 87 | +`email` | String! | The email address of the company sales representative |
| 88 | +`firstname` | String! | The company sales representative's first name |
| 89 | +`lastname` | String! | The company sales representative's last name |
| 90 | + |
| 91 | +### CompanyUsers attributes {#CompanyUsers} |
| 92 | + |
| 93 | +The `CompanyUsers` object can contain the following attributes: |
| 94 | + |
| 95 | +Attribute | Data Type | Description |
| 96 | +--- | --- | --- |
| 97 | +`items` | [[Customer]]({{page.baseurl}}/graphql/queries/customer.html) | An array of `CompanyUser` objects that match the specified search criteria |
| 98 | +`page_info` | SearchResultPageInfo | Pagination meta data |
| 99 | +`total_count` | Int | The number of objects returned |
0 commit comments