Create Product
Endpoint for creating a Product.
info
Please be aware that this endpoint requires a Manage Products API Key.
POST
/api/v1/groups/{group_id}/products
Request Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| name | Name of the Product. Maximum 100 characters. | string | Required |
| description | Description of the Product. Maximum 255 characters. | uint64 | Required |
| amount | Amount of the Product. | uint64 | Required |
| included_tax_amount | Tax amount of the Product. | uint64 | |
| unit_of_measure | Unit of measure of the Product. Currently supported unit of measurement: pc. | string | Required |
Response
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request / Validation error |
| 500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
create.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'POST',
headers: headers,
redirect: 'follow',
body: {
// request body data
}
};
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));
create.py
import requests
group_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/products"
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("POST", url, headers=headers, json={
// request body data
})
print(response.text)
create.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("POST", 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 Request
{
"name": "Flat white",
"description": "Steamed milk, double espresso",
"unit_of_measure": "pc",
"included_tax_amount": 50,
"amount": 450
}
Example Success Response
{
"id": "eef1b240-6e4d-42f7-93ea-873d165aa696",
"group_id": "eef1b240-6e4d-42f7-93ea-873d165aa696",
"name": "Flat white",
"description": "Steamed milk, double espresso",
"unit_of_measure": "pc",
"included_tax_amount": 50,
"amount": 450,
"created_at": "2025-08-18T00:00:00Z",
"updated_at": "2025-08-18T00:00:00Z"
}