---
title: SubscriptionContractsSortKeys - Customer API
description: The set of valid sort keys for the SubscriptionContracts query.
api_version: unstable
api_name: customer
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/unstable/enums/SubscriptionContractsSortKeys
  md: >-
    https://shopify.dev/docs/api/customer/unstable/enums/SubscriptionContractsSortKeys.md
---

# Subscription​Contracts​Sort​Keys

enum

The set of valid sort keys for the SubscriptionContracts query.

## Valid values

* CREATED\_​AT

  Sort by the `created_at` value.

* ID

  Sort by the `id` value.

* STATUS

  Sort by the `status` value.

* UPDATED\_​AT

  Sort by the `updated_at` value.

***

## Fields

* [Customer.subscriptionContracts(sortKey)](https://shopify.dev/docs/api/customer/unstable/objects/Customer#field-Customer.fields.subscriptionContracts.arguments.sortKey)

  ARGUMENT

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

* [Order.subscriptionContracts(sortKey)](https://shopify.dev/docs/api/customer/unstable/objects/Order#field-Order.fields.subscriptionContracts.arguments.sortKey)

  ARGUMENT

  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](https://shopify.dev/docs/apps/launch/protected-customer-data).

***

## Map

### Arguments with this enum

* [Customer.subscriptionContracts(sortKey)](https://shopify.dev/docs/api/customer/unstable/objects/Customer#field-Customer.fields.subscriptionContracts.arguments.sortKey)
* [Order.subscriptionContracts(sortKey)](https://shopify.dev/docs/api/customer/unstable/objects/Order#field-Order.fields.subscriptionContracts.arguments.sortKey)
