Get Compare Item
Retrieve a single compare item by ID.
Endpoint
GET /api/shop/compare-items/{id}Request Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Authorization | Yes | Customer Bearer token (Bearer <accessToken>) |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Compare item ID |
Response Fields (200 OK)
| Field | Type | Description |
|---|---|---|
id | integer | Compare item ID |
product | object | Associated product details |
customer | object | Customer who added the item |
createdAt | string | Timestamp when the item was added |
updatedAt | string | Timestamp when the item was last updated |
Validation
- The compare item must exist and belong to the authenticated customer.
Use Cases
- Fetch details for a single compared product
- Refresh a row in a comparison table

