Skip to main content

Update Product

Endpoint for updating a Product.

info

Please be aware that this endpoint requires a Manage Products API Key.

PUT /api/v1/groups/{group_id}/products/{product_id}

Request Parameters

NameDescriptionTypeRequired
nameName of the Product. Maximum 100 characters.stringRequired
descriptionDescription of the Product. Maximum 255 characters.uint64Required
amountAmount of the Product.uint64Required
included_tax_amountTax amount of the Product.uint64
unit_of_measureUnit of measure of the Product. Currently supported unit of measurement: pc.stringRequired

Response

CodeDescription
200Success
400Bad Request / Validation error
500Internal Error

Example Usage

update.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
method: 'PUT',
headers: headers,
redirect: 'follow',
body: {
// request body data
}
};
const group_id = '';
const product_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/products/${product_id}`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));

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"
}