---
title: >-
  Removal of Customer order-related sort keys on Admin API - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/removal-of-customer-order-related-sort-keys-on-admin-api
  md: >-
    https://shopify.dev/changelog/removal-of-customer-order-related-sort-keys-on-admin-api.md
metadata:
  effectiveApiVersion: 2024-04
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Deprecation Announcement
    handle: deprecation
  indicatesActionRequired: true
  createdAt: '2024-03-08T15:38:31-05:00'
  postedAt: '2024-04-01T08:00:00-04:00'
  updatedAt: '2024-03-11T15:19:44-04:00'
  effectiveAt: '2024-04-01T08:00:00-04:00'
---

April 1, 2024

Tags:

* Action Required
* Admin GraphQL API
* 2024-04

# Removal of Customer order-related sort keys on Admin API

As of GraphQL Admin API version **2024-04**, the following Customer sort keys have been deprecated: `LAST_ORDER_DATE`, `ORDERS_COUNT`, `TOTAL_SPENT`. Ordering customers by these attributes is available when filtering customers using segments.

Learn more about customer segmentation on [Shopify.dev](https://shopify.dev/docs/apps/marketing/customer-segments).
