You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/_includes/graphql/company.md
+93-18Lines changed: 93 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,29 @@ The `Company` object can contain the following attributes:
2
2
3
3
Attribute | Data type | Description
4
4
--- | --- | ---
5
-
`acl_resources`[CompanyAclResource] | Returns the list of all resources defined within the company
5
+
`acl_resources`| [[CompanyAclResource]](#CompanyAclResource) | Returns the list of all resources defined within the company
6
6
`company_admin` | [Customer]({{page.baseurl}}/graphql/queries/customer.html) | An object containing information about the company administrator
7
+
`credit` | CompanyCredit! | The company credit balance
8
+
`credit_history(filter: CompanyCreditHistoryFilterInput, pageSize: Int = 20, currentPage: Int = 1)` | CompanyCreditHistory! | A history of company credit operations
7
9
`email` | String | The email address of the company contact
8
10
`id` | ID! | The ID assigned to the company
9
-
`legal_address` | CompanyLegalAddress | The address where the company is registered to conduct business
11
+
`legal_address` | [CompanyLegalAddress](#CompanyLegalAddress) | The address where the company is registered to conduct business
10
12
`legal_name` | String | The full legal name of the company
11
13
`name` | String | The name of the company
12
-
`payment_methods` | [String] The list of payment methods available to a company
14
+
`payment_methods` | [String]| The list of payment methods available to a company
13
15
`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_tax_id` | String | The value-added tax number that is assigned to the company by some jurisdictions for tax reporting purposes
16
+
`role(id: ID!)` | [CompanyRole](#CompanyRole) | Returns information about the specified company role
17
+
`roles(pageSize: Int = 20, currentPage: Int = 1 )` | [CompanyRoles!](#CompanyRoles) | Returns the list of company roles
18
+
`sales_representative` | [CompanySalesRepresentative](#CompanySalesRepresentative) | The company sales representative
19
+
`structure(rootId: ID = 0 depth: Int = 10 )` | [CompanyStructure](#CompanyStructure) | Returns the company structure of teams and customers in depth-first order
20
+
`team(id: ID!)` | [CompanyTeam](#CompanyTeam) | Returns the specified company team
21
+
`user(id: ID!)` | [Customer]({{page.baseurl}}/graphql/queries/customer.html) | Returns the specified company user
22
+
`users(filter: CompanyUsersFilterInput, pageSize: Int = 20, currentPage: Int = 1)`| [CompanyUsers](#CompanyUsers) | Returns the company users that match the specified filter
23
+
`vat_id` | String | The value-added tax number that is assigned to the company by some jurisdictions for tax reporting purposes
The `CompanyCreditOperation` object can contain the following attributes.
82
+
83
+
Attribute | Data Type | Description
84
+
--- | --- | ---
85
+
`amount` | Money | The amount of the company credit operation
86
+
`balance` | [CompanyCredit!](#CompanyCredit) | The credit balance after the company credit operation
87
+
`custom_reference_number` | String | The purchase order number associated with the company credit operation
88
+
`date` | String! | The date the operation was performed
89
+
`type` | CompanyCreditOperationType! | The type of the company credit operation. Possible values are ALLOCATION, PURCHASE, REFUND, REIMBURSEMENT, REVERT, UPDATE
90
+
`updated_by` | [CompanyCreditOperationUser!](#CompanyCreditOperationUser) | The company user submitting the company credit operation
The `CompanyCreditOperationUser` object can contain the following attributes.
95
+
96
+
Attribute | Data Type | Description
97
+
--- | --- | ---
98
+
`name` | String! | The name of the company user submitting the company credit operation
99
+
`type` | CompanyCreditOperationUserType! | The type of the company user submitting the company credit operation. Possible values are ADMIN and CUSTOMER
0 commit comments