Skip to content

Edit Products

Request

The method allows you to change the product parameters. When editing units of measure for a product that already has inventory operations, you must add an array of rules for recalculating units of measure - correction_rules. Otherwise, the array is optional.

Security
BearerPartnerUser
Path
location_idnumberrequired

Location ID

product_idnumberrequired

Product ID

Headers
Acceptstringrequired

application/vnd.api.v2+json

Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Bodyapplication/jsonrequired
category_idintegerrequired

Product category ID

Example:289632
sale_unit_idintegerrequired

Sales unit

Example:216762
service_unit_idintegerrequired

Write-off unit

Example:216762
titlestringrequired

Product Name

Example:"Shampoo"
print_titlestring

Title to be printed on receipt

Example:"Shampoo"
articlestring

vendor code

Example:"123"
barcodestring

Barcode

Example:"123"
costnumber, (float)

Selling price

Example:1000
actual_costnumber, (float)

Cost price

Example:500
unit_equalsnumber, (float)

The ratio of the unit of measure for sale to the unit of measure for write-off

Example:100
critical_amountnumber, (float)

critical residue

Example:1
desired_amountnumber, (float)

Desired balance

Example:1
nettonumber, (float)

Net weight

Example:200
bruttonumber, (float)

Gross weight

Example:250
commentstring

A comment

Example:"Test comment 123"
tax_variantinteger

Taxation system

Example:0
vat_idinteger

VAT

Example:3
correction_rulesArray of objects

An array of rules for converting units of measurement (required if there are inventory operations for the product)

Example:
[ { "type": 1, "base_unit": "service" }, { "type": 2, "base_unit": "service" }, { "type": 3, "base_unit": "sale" }, { "type": 4, "base_unit": "sale" }, { "type": 5, "base_unit": "sale" } ]
curl -i -X PUT \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/products/{product_id}' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Shampoo",
    "print_title": "Shampoo",
    "article": "123",
    "barcode": "123",
    "category_id": 289632,
    "cost": 1000,
    "actual_cost": 500,
    "sale_unit_id": 216762,
    "service_unit_id": 216762,
    "unit_equals": 100,
    "critical_amount": 1,
    "desired_amount": 1,
    "netto": 200,
    "brutto": 250,
    "comment": "Test comment 123",
    "tax_variant": 0,
    "vat_id": 3,
    "correction_rules": [
      {
        "type": 1,
        "base_unit": "service"
      },
      {
        "type": 2,
        "base_unit": "service"
      },
      {
        "type": 3,
        "base_unit": "sale"
      },
      {
        "type": 4,
        "base_unit": "sale"
      },
      {
        "type": 5,
        "base_unit": "sale"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataobject

Product data object

Example:
{ "title": "Shampoo 1", "value": "Shampoo 1", "label": "Shampoo 1 (123)", "good_id": 123456, "cost": 100500, "unit_id": 4835, "unit_short_title": "PC", "service_unit_id": 3548, "service_unit_short_title": "gr", "actual_cost": 1050, "unit_actual_cost": 105, "unit_actual_cost_format": "105 r", "unit_equals": 10, "barcode": "123", "loyalty_abonement_type_id": "150", "loyalty_certificate_type_id": "0", "loyalty_allow_empty_code": false, "critical_amount": 0, "desired_amount": 0, "actual_amounts": [ { … } ], "last_change_date": "2026-01-01T12:00:00-0500" }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": [ { … } ], "meta": [] }