# Products

## Get Products

<mark style="color:blue;">`GET`</mark> `https://shop.rexdigital.group/api/v1/products`

This endpoint allows you to fetch all product details for you store.

#### Query Parameters

| Name     | Type   | Description                                                                                                           |
| -------- | ------ | --------------------------------------------------------------------------------------------------------------------- |
| api\_key | string | Your api key which can be found by going to your store. Clicking on the cogwheel and navigating to the developer tab. |

{% tabs %}
{% tab title="200 Products successfully retrieved." %}

```javascript
{   
    "products": {
        "data": [
            {
              "name": "Snow For John Doe",
              "slug": "snow-for-john-doe",
              "sku": "4XZ37pQ2",
              "description": "",
              "order": 0,
              "active": true,
              "images": {
                "image": '',
                "image_wide": ''
              },
              "link": "https://shop.rexdigital.group/store/acme-incorporated/product/234",
              "category": {
                "name": "Memberships",
                "priority": 0
              },
              "prices": [
                {
                  "name": "6 Months",
                  "plan_id": 331,
                  "currency": "€",
                  "discount": "0,00",
                  "price": "13,95",
                  "duration": "Months",
                  "time": 6,
                  "addons": [
                    {
                      "name": "usergroup",
                      "label": '',
                      "type": "hidden",
                      "value": "8",
                      "currency": "€",
                      "price": "0,00",
                      "quantity_price": "0,00"
                    }
                  ]
                },
                {
                  "name": "3 Months",
                  "plan_id": 332,
                  "currency": "€",
                  "discount": "0,00",
                  "price": "6,95",
                  "sales": 0,
                  "duration": "Months",
                  "time": 3,
                  "addons": [],
                },
                {
                  "name": "1 Month",
                  "plan_id": 333,
                  "currency": "€",
                  "discount": "0,00",
                  "price": "252,50",
                  "sales": 0,
                  "duration": "Month",
                  "time": 1,
                  "addons": [
                    {
                      "name": "usergroup",
                      "label": '',
                      "type": "hidden",
                      "value": "8",
                      "currency": "€",
                      "price": "0,00",
                      "quantity_price": "0,00"
                    },
                    {
                      "name": "vip points",
                      "label": '',
                      "type": "number",
                      "value": "500",
                      "currency": "€",
                      "price": "250,00",
                      "quantity_price": "0,50"
                    }
                  ],
                }
          ]
      }
    ],
    "refreshed_at": 1592066352
}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Store was not found."}
```

{% endtab %}
{% endtabs %}
