Skip to main content
interface

The information about the metafields associated with the specified resource.

Metafield

A metafield found by namespace and key.

Arguments

String!
required

A container for a set of metafields.

String!
required

The identifier for the metafield.


[Metafield]!

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.



Was this section helpful?

Anchor to Types implemented inTypes implemented in

OBJECT

Represents a company's information.

DraftOrderConnection!
non-null

The list of company draft orders.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

DraftOrderByCompanySortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to company_contact_id
id
Anchor to created_at
time
Anchor to customer_id
id
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to purchasing_entity
string
string
string
string
Anchor to updated_at
time

String

A unique externally-supplied ID for the company.

ID!

A globally-unique ID.

CompanyLocationConnection!
non-null

The list of locations that the business of the business contact belongs to.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

CompanyLocationSortKeys
Default:ID

Sort the underlying list by the given key.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to company_contact_id
id
Anchor to company_id
id
Anchor to created_at
time
Anchor to external_id
string
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to metafields.{namespace}.{key}
mixed

Filters resources by metafield value. Format: metafields.{namespace}.{key}:{value}. Learn more about querying by metafield value.

Example:

  • metafields.custom.on_sale:true
  • metafields.product.material:"gid://shopify/Metaobject/43458085"
string
Anchor to updated_at
time

Metafield

A metafield found by namespace and key.

Arguments

String!
required

A container for a set of metafields.

String!
required

The identifier for the metafield.


[Metafield]!

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.


String!

The name of the company.

OrderConnection!
non-null

The list of customer orders under the company.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

OrderByCompanySortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to confirmation_number
string
Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to order_number
string
Anchor to processed_at
time
Anchor to purchasing_company_contact_id
id
Anchor to purchasing_company_id
id
Anchor to purchasing_company_location_id
id
Anchor to purchasing_entity
string
Anchor to shipment_status
string
Anchor to updated_at
time

OBJECT

Represents a company's business location.

CompanyAddress

The billing address of the company location.

Anchor to buyerExperienceConfigurationbuyerExperienceConfiguration
BuyerExperienceConfiguration

The configuration of the buyer's B2B checkout.

CompanyContactConnection!
non-null

The list of contacts under a particular business location.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

CompanyContactSortKeys
Default:ID

Sort the underlying list by the given key.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to company_id
id
Anchor to company_location_id
id
Anchor to created_at
time
string
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to location_name
string
string
Anchor to role_name
string
string
Anchor to updated_at
time

DraftOrderConnection!
non-null

The list of company draft orders.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

DraftOrderByLocationSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to company_contact_id
id
Anchor to created_at
time
Anchor to customer_id
id
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to purchasing_entity
string
string
string
string
Anchor to updated_at
time

String

A unique externally-supplied ID for the location.

ID!

A globally-unique ID.

Metafield

A metafield found by namespace and key.

Arguments

String!
required

A container for a set of metafields.

String!
required

The identifier for the metafield.


[Metafield]!

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.


String!

The name of the company location.

OrderConnection!
non-null

The list of customer orders under the company.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

OrderByLocationSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to confirmation_number
string
Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to order_number
string
Anchor to processed_at
time
Anchor to purchasing_company_contact_id
id
Anchor to purchasing_company_id
id
Anchor to purchasing_company_location_id
id
Anchor to purchasing_entity
string
Anchor to shipment_status
string
Anchor to updated_at
time

CompanyContactRoleAssignmentConnection!
non-null

The list of roles assigned to this location.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

CompanyContactRoleAssignmentSortKeys
Default:ID

Sort the underlying list by the given key.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to company_contact_id
id
Anchor to company_contact_role_id
id
Anchor to company_id
id
Anchor to company_location_id
id
Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to location_name
string
Anchor to role_name
string
Anchor to updated_at
time

CompanyAddress

The shipping address of the company location.

StoreCreditAccountConnection!

A list of the owner resource's store credit accounts. Store credit accounts are not shown for shops with store credit disabled at checkout.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to currency_code
string
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234

String

The tax id of the company location.

Market!
non-nullDeprecatedPre-auth accessible
OBJECT

Represents the personal information of a customer. Apps using the Customer Account API must meet the protected customer data requirements.

CustomerAddressConnection!
non-null

The addresses associated with the customer.

Arguments

Boolean
Default:false

A flag indicating whether the default address should be included.

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


CompanyContactConnection!
non-null

The list of contacts the customer is associated with.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


DateTime!
non-null

The date and time when the customer was created.

CustomerAddress

The default address of the customer.

String!
non-null

The full name of the customer, based on the first_name and last_name values. If these aren't available, it falls back to the customer's email address, and if that isn't available, the customer's phone number.

DraftOrderConnection!
non-null

The Draft Orders associated with the customer.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

DraftOrderSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to company_contact_id
id
Anchor to created_at
time
Anchor to customer_id
id
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to purchasing_entity
string
string
string
string
Anchor to updated_at
time

CustomerEmailAddress

The email address of the customer.

String

The first name of the customer.

ID!

A globally-unique ID.

URL!
non-null

The URL to the avatar image of the customer.

Anchor to lastIncompleteCheckoutlastIncompleteCheckout
Checkout

The customer's most recently updated, incomplete checkout.

String

The last name of the customer.

Metafield

A metafield found by namespace and key.

Arguments

String!
required

A container for a set of metafields.

String!
required

The identifier for the metafield.


[Metafield]!

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.


OrderConnection!
non-null

The orders associated with the customer.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

OrderSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to confirmation_number
string
Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
string
Anchor to order_number
string
Anchor to processed_at
time
Anchor to purchasing_company_contact_id
id
Anchor to purchasing_company_id
id
Anchor to purchasing_company_location_id
id
Anchor to purchasing_entity
string
Anchor to shipment_status
string
Anchor to updated_at
time

CustomerPhoneNumber

The phone number of the customer.

StoreCreditAccountConnection!

A list of the owner resource's store credit accounts. Store credit accounts are not shown for shops with store credit disabled at checkout.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to currency_code
string
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234

Anchor to subscriptionContractsubscriptionContract
SubscriptionContract

Returns a SubscriptionContract resource by ID.

Arguments

ID!
required

The ID of the SubscriptionContract to return.


Anchor to subscriptionContractssubscriptionContracts
SubscriptionContractConnection!
non-null

The Subscription Contracts associated with the customer.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

SubscriptionContractsSortKeys
Default:CREATED_AT

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to last_billing_attempt_error_type
string
string
Anchor to updated_at
time

[String!]!
non-null

A comma-separated list of tags that have been added to the customer.

OBJECT

A customer’s completed request to purchase one or more products from a shop. Apps using the Customer Account API must meet the protected customer data requirements.

SalesAgreementConnection!

A list of sales agreements associated with the order.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


CustomerAddress

The mailing address provided by the customer. Not all orders have a mailing address.

DateTime

The date and time when the order was canceled. Returns null if the order wasn't canceled.

OrderCancelReason

The reason for the cancellation of the order. Returns null if the order wasn't canceled.

String

A randomly generated alpha-numeric identifier for the order that may be shown to the customer instead of the sequential order name. For example, "XPAV284CT", "R50KELTJP" or "35PKUN0UJ". This value isn't guaranteed to be unique.

DateTime!

The date and time when the order was created.

CurrencyCode!

The shop currency when the order was placed.

Customer

The customer who placed the order.

String

The locale code representing the region where this specific order was placed.

Anchor to discountApplicationsdiscountApplications
DiscountApplicationConnection!

The discounts that have been applied to the order.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


DraftOrder

The draft order associated with the order.

Boolean!

Whether the order includes duties.

Boolean!

Whether the order has been edited or not.

String

The email address of the customer.

OrderFinancialStatus

The financial status of the order.

FulfillmentConnection!

The fulfillments associated with the order.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

FulfillmentSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to order_id
id
Anchor to shipment_status
string
string

OrderFulfillmentStatus!

The fulfillment status of the order.

ID!

A globally-unique ID.

LineItemConnection!

The list of line items of the order.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


String

The name of the fulfillment location assigned at the time of order creation.

Metafield

A metafield found by namespace and key.

Arguments

String!
required

A container for a set of metafields.

String!
required

The identifier for the metafield.


[Metafield]!

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.


String!

The identifier for the order that appears on the order. For example, #1000 or _Store1001.

String

The order's notes.

Int!

A unique numeric identifier for the order, used by both the shop owner and customer.

OrderPaymentInformation

The payment information for the order.

String

The phone number of the customer for SMS notifications.

String

The purchase order number of the order.

DateTime!

The date and time when the order was processed. This value can be set to dates in the past when importing from other systems. If no value is provided, it will be auto-generated based on current date and time.

PurchasingEntity

The purchasing entity for the order.

[Refund!]!

A list of refunds associated with the order.

Boolean!

Whether the order requires shipping.

OrderReturnInformation!

The return information for the order.

ReturnConnection!

The list of returns for the order with pagination.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

ReturnSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.


CustomerAddress

The mailing address to which the order items are shipped.

Anchor to shippingDiscountAllocationsshippingDiscountAllocations
[DiscountAllocation!]!

The discounts that have been allocated onto the shipping line by discount applications.

ShippingLine

A summary of all shipping costs on the order.

URL!

The unique URL for the status page of the order.

Anchor to subscriptionContractssubscriptionContracts
SubscriptionContractConnection

The customer Subscription Contracts associated with the order.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.

SubscriptionContractsSortKeys
Default:CREATED_AT

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to created_at
time
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to last_billing_attempt_error_type
string
string
Anchor to updated_at
time

MoneyV2

The price of the order before duties, shipping, and taxes.

Boolean!

Whether the order includes taxes.

MoneyV2

The total amount of duties after returns.

MoneyV2!

The total amount of the order (including taxes and discounts) minus the amounts for line items that have been returned.

MoneyV2!

The total amount refunded.

MoneyV2!

The total cost of shipping.

MoneyV2

The total cost of taxes.

MoneyV2

The total value of tips.

[OrderTransaction!]!

A list of transactions associated with the order.

DateTime!
non-null

The date and time when the order was last updated.

OBJECT

A collection of the general information about the shop.

String!
non-null

The email of the shop.

ID!

A globally-unique ID.

Metafield

A metafield found by namespace and key.

Arguments

String!
required

A container for a set of metafields.

String!
required

The identifier for the metafield.


[Metafield]!

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.


String!
non-null

The shop's .myshopify.com domain name.

String!
non-null

The name of the shop.

[ShopPolicy!]!
non-null

The list of all legal policies associated with the shop.

URL!
non-null

The URL of the shop's online store.


Was this section helpful?