---
title: "Company"
description: "Company information"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company.md'
---
# Company

Company information

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Company`

## Fields

* `contactCount`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Number of company contacts

* `createdAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Company creation time

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Company id

* `locationCount`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Number of company locations

* `mainContact`

  [CompanyContact](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-contact.md)

  Main contact

* `name`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Company name

* `orderCount`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Order quantity

* `totalSpent`

  [MoneyV2](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/money-v2.md)

  Company order amount

* `updatedAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Update time

## Schema Definition

```graphql
type Company { 
	contactCount: Int
	createdAt: Date
	id: ID
	locationCount: Int
	mainContact: CompanyContact
	name: String
	orderCount: Int
	totalSpent: MoneyV2
	updatedAt: Date 
}
```

## Field from

* [CompanyContact](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-contact.md).company

  Company information

* [CompanyCreatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-create-payload.md).company

  Company information

* [CompanyRevokeMainContactPayload](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-revoke-main-contact-payload.md).company

  Company information

* [Query](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/queries/company.md).company

* [CompanyUpdatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-update-payload.md).company

  Company information

* [CompanyConnection](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-connection.md).nodes

  node list

* [CompanyEdge](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-edge.md).node

  Company edge

* [CompanyLocation](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-location.md).company

  Company information

* [CompanyAssignMainContactPayload](https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/objects/company-assign-main-contact-payload.md).company

  Company information

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

