customerAttributeValuePictures
Requires a customer (portal or buyer app) session.
Lists the pictures the seller has set for variant attribute values, such as colour swatches. Values without a picture are not listed.
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 CustomerAttributeValuePictures {
customerAttributeValuePictures {
attributeKey
imageUrl
value
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerAttributeValuePictures {\n customerAttributeValuePictures {\n attributeKey\n imageUrl\n value\n }\n}"
}
EOF
Response:
{
"data": {
"customerAttributeValuePictures": [
{
"attributeKey": "string",
"imageUrl": "string",
"value": "string"
}
]
}
}
customerAttributeValuePictures: [CustomerAttributePicture!]!
Type
CustomerAttributePicture object
The seller's picture for one value of a variant attribute, such as the Orange swatch of Colour.