Skip to content

Create product

Request

The method allows you to create a product

Security
BearerPartnerUser
Path
location_idnumberrequired

Location 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
curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/products' \
  -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
  }'

Responses

Created

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": [] }