Description:

Returns product details for the identifier specified.

Resource URL:

https://<apphost>.competitionlabs.com/api/<your-space-name>/products/<productId>

Request headers

KeyValueRequired
X-API-KEY
Your unique API keyYes
Content-Type
application/jsonYes

Request URL parameters

Parameter
Type
Required
Description
space
StringYesThis is the space name which is linked to the account
id
StringYesProduct identifier retrieved from GET Products resource

EXAMPLE

Request
curl
--header "X-API-KEY: <your-api-key>"
--request GET https://app.competitionlabs.com/api/<your-space-name>/products/287owWQBVd51K6gPeKA
Response
{
    "data": {
        "jsonClass": "Product",
        "name": "The Fruits",
        "productType": "Slot",
        "accountId": "1M7owWQBVd51K6gPbaDW",
        "description": "Demo Fruits slot product",
        "adjustmentFactor": 4.12,
        "productRefId": "fruits",
        "actionAdjustmentFactors": [],
        "productGroups": [],
        "created": "2018-07-22T12:13:15.194+00:00",
        "id": "287owWQBVd51K6gPeKA6"
    }
}


ERROR CODES

CodeHTTP StatusDescriptionExample
1007404Product with CL-productId not found for the account
Error Response 404
{
    "errors": [
        {
            "message": "Product with CL-productId: 287owWQBVd51K6gPeKA not found for the account: QmTaPGUBsZyUBGOR_u9A.",
            "code": 1007,
            "status": 404
        }
    ]
}

404Modifying the Resource URL parameters that are mandatory
Error Response 404
{
    "status": 404
}