Admin GraphQL API2025-04
Customer RFM group now available in GraphQL Admin API
You can now access a customer's RFM (Recency, Frequency, Monetary) group through the GraphQL Admin API. This new field in customer statistics helps you understand customer engagement and purchasing patterns.
The field is available through the
statistics
field on the Customer
object. You can use this information to segment customers based on their purchasing behavior and create targeted marketing campaigns.
For more detailed information, please refer to the official documentation.
Example query:
query {
customer(id: "gid://shopify/Customer/1") {
statistics {
rfmGroup
}
}
}
Was this section helpful?