Returns a single Variant resource nested within the specified Product, with the published fields selected via OData query options.
Requires a valid API key in the X-API-KEY header.
Indicates the preferred natural language and locale for the localized content:
- culture-code (e.g.
es,en-us) — returns content localized in the specified culture. - null / not set — returns content localized in the default culture.
*— currently disabled.
Multiple culture codes or q-factor weighting are not supported.
The endpoint supports a subset of OData v4.01 URI conventions. The full list of available properties can be obtained from GET /Variants/$metadata.
Comma-separated list of Variant properties (implicit or custom) to include in the result. Selection of properties inside embedded resources/collections is not supported.
- Example:
frmt_ref - Example:
frmt_ref,frmt_tags
Comma-separated list of embedded collections to include in the result. By default, embedded collections are not included. Only embedded collections are supported (not embedded resources).
200 OK — Returns an EntityRepresentation with the requested Variant.
- 400 Bad Request — Invalid OData expression or query parameter.
- 401 Unauthorized — Missing or invalid API key. Returned by the API gateway as
{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }. - 404 Not Found — Product, Variant or tenant not found.
- 500 Internal Server Error — Unexpected technical error.
Request:
GET /Products(987)/Variants(12345)?$select=frmt_ref HTTP/1.1
X-API-KEY: your-api-key-here
Accept-Language: esResponse:
HTTP/1.1 200 OK
Content-Type: application/jsoncurl -i -X GET \
'https://api2.saleslayer.com/catalog/Products({productIdentifier})/Variants({variantIdentifier})?%24select=string&%24expand=string' \
-H 'Accept-Language: string' \
-H 'X-API-KEY: string'{ "@readLink": "string", "@editLink": "string", "@etag": "string", "@navigationLinks": [ { … } ], "@associationLinks": [ { … } ], "@context": "string", "value": null }