Get a variant by SKU
Endpoint: https://api.youcan.shop/products/sku/{sku}
Method: GET
Returns the variant with this SKU and its product.
Required Scopes
read-products
Response
[200]
json
{
"id": "0b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"variations": { "Size": "M" },
"options": ["Size"],
"values": ["M"],
"price": 199,
"compare_at_price": null,
"weight": null,
"sku": "LINEN-SHIRT-M",
"barcode": null,
"inventory": 12,
"is_selected": false,
"is_default": false,
"image": {
"name": null,
"url": null
},
"created_at": "2026-09-01T10:00:00+00:00",
"updated_at": "2026-09-01T10:00:00+00:00",
"product": {
"id": "4c5d6e7f-8a9b-4c0d-8e1f-2a3b4c5d6e7f",
"name": "Linen shirt"
}
}product has the same fields as Get Product.
[404] Not Found
No variant has this SKU.