Light Services

List the benefits a product hands over when it is bought

Includes the benefits of the product's options, which are handed over to the buyers of that option and carry an option_id.

GET
/products/{product}/benefits

Authorization

bearerAuth
AuthorizationBearer <token>

Personal access token generated in the admin dashboard.

In: header

Path Parameters

product*integer

The product ID

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:8000/api/products/0/benefits"
{
  "data": [
    {
      "id": 0,
      "product_id": "string",
      "option_id": 0,
      "type": "string",
      "name": "string",
      "position": 0,
      "config": [
        null
      ],
      "versions_count": "string",
      "latest_version": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}
{
  "message": "string"
}
{
  "message": "string"
}