Company queries return the company of the current user as well as partner companies.
query {
Company {
id
label
currency {
id
label
}
address {
city
}
}
}
query {
PartnerCompany (id: 100012) {
id
label
partner_id
status
}
}
query {
PartnerCompanies {
data {
id
label
partner_id
status
}
}
}
| id |
|---|
| Unique identifier of the company |
| label |
|---|
| Name of the company |
| currency |
|---|
| Currency of the company |
| user_profiles |
|---|
| User profiles associated with the company |
| address |
|---|
| Address of the company |
| billing |
|---|
| Billing information of the company |
| partner_id |
|---|
| Unique identifier of the partner |
| phone |
|---|
| Phone number of the company |
| vat_number |
|---|
| VAT number of the company |
| status |
|---|
| Current status of the company |
| created_at |
|---|
| Creation date of the company |
| global_message |
|---|
| Global message displayed for the company |
| trial_days |
|---|
| Number of trial days of the company |
| trial_days_left |
|---|
| Number of trial days left for the company |
| active |
|---|
| If true, the company is active |
| frozen |
|---|
| If true, the company is frozen |
| discount_ends_at |
|---|
| End date of the company discount |
| payment_method |
|---|
| Payment method of the company |
| partner_clients |
|---|
| Partner clients of the company |
| settings |
|---|
| Settings of the company |
| valuation |
|---|
| Computed total valuation of the company stock |
| last_12_months_valuation |
|---|
| Valuation of the company over the last 12 months |
| onboarding |
|---|
| Onboarding step of the company |
| invoices |
|---|
| Invoices of the company |
| available_plans |
|---|
| Available subscription plans for the company |
| plan |
|---|
| Current plan of the company |
| subscriptions |
|---|
| List of the company subscriptions |
| subscription |
|---|
| Last subscription of the company |
| customer |
|---|
| Billing customer information of the company |
| default_location |
|---|
| Default location of the company |
| company_owner_id |
|---|
| ID of the owner of the company |
| company_owner |
|---|
| Owner of the company |
You can create filters based on following fields
| id |
|---|
| Example: { "column" : "ID", "operator" : "EQ", "value" : 100012 } |
| label |
|---|
| Example: { "column" : "LABEL", "operator" : "LIKE", "value" : "%Company%" } |
| status |
|---|
| Example: { "column" : "STATUS", "operator" : "EQ", "value" : "active" } |
You can sort data based on following fields : id, label
query PartnerCompanies(
$orderBy: [QueryPartnerCompaniesOrderByOrderByClause!],
$first: Int = 50,
$page: Int
) {
PartnerCompanies(
orderBy: $orderBy
first: $first
page: $page
) {
paginatorInfo {
total
}
data {
id
label
status
}
}
}
{
"orderBy": [
{
"column": "LABEL",
"order": "ASC"
}
],
"first": 50,
"page": 1
}
query PartnerCompanies(
$where: QueryPartnerCompaniesWhereWhereConditions,
$first: Int = 50,
$page: Int
) {
PartnerCompanies(
where: $where
first: $first
page: $page
) {
paginatorInfo {
total
count
currentPage
perPage
}
data {
id
label
status
}
}
}
{
"first": 50,
"page": 1,
"where": {
"AND": [
{
"AND": [
{
"column": "STATUS",
"operator": "EQ",
"value": "active"
}
]
}
]
}
}
{
"data": {
"PartnerCompanies": {
"paginatorInfo": {
"total": 1,
"count": 1,
"currentPage": 1,
"perPage": 50
},
"data": [
{
"id": 100012,
"label": "Partner Company",
"status": "active"
}
]
}
}
}
| label |
|---|
| Label of the setting |
| value |
|---|
| Value of the setting |