---
title: >-
  Function parameter values can be queried in the Segmentation 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/function-parameter-values-can-be-queried-in-the-segmentation-api
  md: >-
    https://shopify.dev/changelog/function-parameter-values-can-be-queried-in-the-segmentation-api.md
metadata:
  effectiveApiVersion: 2023-07
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: true
  createdAt: '2023-04-13T10:02:56-04:00'
  postedAt: '2023-07-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:37-05:00'
  effectiveAt: '2023-07-01T00:00:00-04:00'
---

July 1, 2023

Tags:

* Action Required
* API
* 2023-07

# Function parameter values can be queried in the Segmentation API

As of GraphQL Admin API Version `2023-07`, you can use the new `functionParameterQueryName` argument on `segmentValueSuggestions` to query for function parameter value suggestions for Customer Segmentation.

For example, the `products_purchased` filter has the function parameter `id`: `products_purchased(id: '2012162031638') = true`. To retrieve a list of possible Product IDs to use for the `id` function parameter, provide `filterQueryName: 'products_purchased', functionParameterQueryName: 'id'` as arguments to the `segmentValueSuggestions` endpoint.
