Get a Specification Value

GET /api/v2/specifications/{specId}/values/{id}.json

Retrieve a single Specification Value object for a Specification using its ID.

Scopes

Requires either the products or products.readonly OAuth scope.

Parameters

Accepts the following parameters:

id required
The ID of the Specification Value is supplied as a path parameter.
specId required
The ID of the Specification is supplied as a path parameter.


Response

Returns an object with the following properties:

success
A boolean where a value of true represents a successful request.
status
The HTTP status code e.g. 200 for a successful request.
data
Contains the Specification Value object.


JSON Example

An example of JSON returned.

{
    "success": true,
    "status": 200,
    "data": {
        "id": 1,
        "specId": 1,
        "value": "Red",
        "color": "#ff0000",
        "image": null,
        "maxValue": null,
        "sequence": 1
    }
}