customerFrequentlyBought
Requires a customer (portal or buyer app) session.
Partner-wide frequently-bought items (attribution), repriced server-side. screen 6.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CustomerFrequentlyBought {
customerFrequentlyBought {
uomCode
productName
variantName
currency
imageUrl
lastBoughtAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerFrequentlyBought {\n customerFrequentlyBought {\n uomCode\n productName\n variantName\n currency\n imageUrl\n lastBoughtAt\n }\n}"
}
EOF
Response:
{
"data": {
"customerFrequentlyBought": [
{
"uomCode": "string",
"productName": "string",
"variantName": "string",
"currency": "string",
"imageUrl": "string",
"lastBoughtAt": "2025-01-15T00:00:00Z"
}
]
}
}
customerFrequentlyBought(
limit: Int
): [CustomerFrequentItem!]!
Arguments
customerFrequentlyBought.limit ● Int scalar
Maximum number of records to return.
Type
CustomerFrequentItem object
A partner-wide frequently-bought item (Quick order, screen 6).