Returns a Company object by ID.


Anchor to id
id
required

The ID of the Company to return.


Was this section helpful?

Anchor to Company
Company
Access requirements

Represents information about a company which is also a customer of the shop.


Was this section helpful?

Examples

Hide code
DescriptionCopy
query {
  company(id: "gid://shopify/Company/426793626") {
    id
    name
    note
    externalId
    totalSpent {
      amount
      currencyCode
    }
  }
}
Hide code
Response
JSON
{
  "company": {
    "id": "gid://shopify/Company/426793626",
    "name": "Fancy Pants Inc.",
    "note": "test notes",
    "externalId": "external_id1",
    "totalSpent": {
      "amount": "120.0",
      "currencyCode": "USD"
    }
  }
}