Get All Products
Endpoint for getting all Products.
info
Please be aware that this endpoint requires a Manage Products API Key.
GET
/api/v1/groups/{group_id}/products
Query Parameters
| Name | Description | Type |
|---|---|---|
| limit | Optional parameter to limit the number of results in the query. | uint64 |
| offset | The number of Products to skip before starting to collect the result set. | uint64 |
| name | The name of the Product. | string |
Response
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request / Validation error |
| 500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
getAll.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
const group_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/products`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
getAll.py
import requests
group_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/products"
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
getAll.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/products"
client := &http.Client{}
body := bytes.NewBuffer(nil)
_ = json.NewEncoder(body).Encode(map[string]any{
// body data
})
req, _ := http.NewRequest("GET", url, body)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Success Response
{
"data": {
"items": [
{
"id": "c2f2a400-f937-4073-a160-75e58feddb40",
"group_id": "655e5d89-5541-4852-b284-58772dbdfd90",
"name": "Cappuccino S",
"description": "Steamed milk, including a layer of milk foam, simple espresso.",
"amount": 475,
"included_tax_amount": 45,
"unit_of_measure": "pc",
"created_at": "2025-10-15T12:14:03.36672Z",
"updated_at": "2025-11-06T12:22:34.936989Z"
},
{
"id": "eef1b240-6e4d-42f7-93ea-873d165aa696",
"group_id": "eef1b240-6e4d-42f7-93ea-873d165aa696",
"name": "Flat white",
"description": "Steamed milk, double espresso.",
"amount": 670,
"included_tax_amount": 50,
"unit_of_measure": "pc",
"created_at": "2025-08-18T00:00:00Z",
"updated_at": "2025-08-18T00:00:00Z"
},
{
"id": "bfe6280a-2b63-4c16-8e0e-2c13f548bafb",
"group_id": "655e5d89-5541-4852-b284-58772dbdfd90",
"name": "Cappuccino M",
"description": "Steamed milk, including a layer of milk foam, double espresso.",
"amount": 572,
"included_tax_amount": 52,
"unit_of_measure": "pc",
"created_at": "2025-05-12T08:38:29.128305Z",
"updated_at": "2025-05-12T08:39:46.437993Z"
},
{
"id": "9ff3c38f-8942-48d6-a2c2-173cdbe34296",
"group_id": "655e5d89-5541-4852-b284-58772dbdfd90",
"name": "Cappuccino L",
"description": "Steamed milk, including a layer of milk foam, triple espresso.",
"amount": 702,
"included_tax_amount": 62,
"unit_of_measure": "pc",
"created_at": "2025-05-08T11:02:31.556411Z",
"updated_at": "2025-05-12T08:36:43.518346Z"
},
{
"id": "877bcce8-bff1-43fe-abf6-3990fd8775c2",
"group_id": "655e5d89-5541-4852-b284-58772dbdfd90",
"name": "Espresso Macchiato",
"description": "Espresso with a layer of milk foam.",
"amount": 365,
"included_tax_amount": 40,
"unit_of_measure": "pc",
"created_at": "2025-05-08T11:06:37.735413Z",
"updated_at": "2025-05-08T11:06:37.735413Z"
}
],
"total_count": 5
}
}