---
title: QueryRoot - Customer API
description: 'This acts as the public, top-level API from which all queries start.'
api_version: 2026-01
api_name: customer
type: object
api_type: graphql
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/objects/QueryRoot'
  md: 'https://shopify.dev/docs/api/customer/latest/objects/QueryRoot.md'
---

# Query​Root

object

This acts as the public, top-level API from which all queries start.

## Fields

* company

  [Company](https://shopify.dev/docs/api/customer/latest/objects/Company)

  The information of the customer's company. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

  * id

    [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID)

    required

    ### Arguments

    The ID of the Company.

  ***

* company​Location

  [Company​Location](https://shopify.dev/docs/api/customer/latest/objects/CompanyLocation)

  The Location corresponding to the provided ID. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

  * id

    [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID)

    required

    ### Arguments

    The ID of the Location.

  ***

* customer

  [Customer!](https://shopify.dev/docs/api/customer/latest/objects/Customer)

  non-null

  Returns the Customer resource. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

* draft​Order

  [Draft​Order](https://shopify.dev/docs/api/customer/latest/objects/DraftOrder)

  Returns a draft order resource by ID. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

  * id

    [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID)

    required

    ### Arguments

    The ID of the draft order to be returned.

  ***

* order

  [Order](https://shopify.dev/docs/api/customer/latest/objects/Order)

  [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api)

  Returns an Order resource by ID. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

  * id

    [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID)

    required

    ### Arguments

    The ID of the Order to return.

  ***

* return

  [Return](https://shopify.dev/docs/api/customer/latest/objects/Return)

  [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api)

  Returns a Return resource by ID. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

  * id

    [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID)

    required

    ### Arguments

    The ID of the Return.

  ***

* return​Calculate

  [Calculated​Return](https://shopify.dev/docs/api/customer/latest/objects/CalculatedReturn)

  The calculated monetary value of the return.

  * input

    [Calculate​Return​Input!](https://shopify.dev/docs/api/customer/latest/input-objects/CalculateReturnInput)

    required

    ### Arguments

    The input fields for calculating a return.

  ***

* shop

  [Shop!](https://shopify.dev/docs/api/customer/latest/objects/Shop)

  non-null

  Returns the information about the shop. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data).

***

## Map

No referencing types
