Get Compare Item
About
The compareItem query retrieves a single compare item by its IRI identifier. Use this query to:
- Fetch detailed information about a specific compare item
- Display product comparison details on a detail page
- Verify a product exists in the customer's comparison list
Authentication
This query requires customer authentication:
- Authenticated customers: Provide a valid customer authentication token in the
Authorizationheader. Obtain this token via the Customer Login API.
Authorization: Bearer <accessToken>Arguments
| Argument | Type | Description |
|---|---|---|
id | ID! | The IRI of the compare item (e.g. /api/shop/compare-items/606). |
Possible Returns
| Field | Type | Description |
|---|---|---|
id | ID! | IRI identifier (e.g. /api/shop/compare-items/606). |
_id | Int! | Numeric identifier. |
product | Product! | Associated product with id, name, sku, price, description, etc. |
customer | Customer! | Associated customer with id, email, firstName, lastName. |
createdAt | String | Timestamp when the item was added. |
updatedAt | String | Timestamp when the item was last updated. |

