Products
Nomenclator produse — read, patch, delete, stocks, images.
Returns a paginated list of product variants from the catalogue.
Filters:
- Standard filters (year, page, modifiedafter, ...).
- format — json (default), xml, csv.
- code — product code or barcode (URL-encoded). Also codeb64:... (base64).
- manufacturer — filter by manufacturer name.
- visibility — all (default), partner, published.
- show_deleted — 0 or 1.
- magazia_id — workpoint ID for stock context.
- cont — sellable (default) or all (subgestiune scope).
- product_id — BOCP variant ID.
- fm_id — fișă de magazie ID.
- pricelist_id — filter to only products that have a rule in this pricelist, and return pricelist prices. Requires magazia_id. Price fields in the response depend on the workpoint type: en-gros workpoints return the pricelist price in pret_vanzare / pret_vanzare_cu_tva (discounted fields become null); en-detail workpoints return the normal retail price in pret_vanzare and the pricelist price in pret_vanzare_discounted / pret_vanzare_cu_tva_discounted. Use /pricelists/list/ to enumerate available pricelist IDs.
Include: images, properties, last_aquisition_price_ron, last_purchase_price_currency.
Exclude: deleted, archived.
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
400 |
Request is malformed or a required field is missing / invalid. |
Same filter set as /product/list/, but the response focus is on stock levels rather than catalogue metadata.
Include: last_purchase_price_currency, onstock, aquisition_value_ron.
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
Returns the full detail record for one product variant.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
404 |
The requested resource does not exist. |
Send only the fields you want to change. Field names match those returned by the GET call. Combined fields (e.g. price + currency) must be sent together.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Request body (JSON)
See schema in the OpenAPI spec.
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
400 |
Request is malformed or a required field is missing / invalid. |
404 |
The requested resource does not exist. |
PUT variant of the product update. Prefer PATCH for partial updates.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Request body (JSON)
See schema in the OpenAPI spec.
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
400 |
Request is malformed or a required field is missing / invalid. |
404 |
The requested resource does not exist. |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
404 |
The requested resource does not exist. |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
404 |
The requested resource does not exist. |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
404 |
The requested resource does not exist. |
Uploads and attaches a new image to the product. Multipart form-data body.
Fields: file (binary), title, description, alt_text.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
400 |
Request is malformed or a required field is missing / invalid. |
404 |
The requested resource does not exist. |
Attaches an image to the product from a remote URL. Depending on the catalog setting the URL is either stored as-is or downloaded to the local CDN.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
product_id |
path | integer | yes |
Request body (JSON)
{
"URL": "https://example.com/img.jpg",
"title": "Hero",
"alt_text": "Product front"
}
Responses
| Status | Description |
|---|---|
200 |
OK — response uses the shared envelope. |
400 |
Request is malformed or a required field is missing / invalid. |
Reserved. This endpoint is documented for planning purposes; it is not implemented in the current release.
Responses
| Status | Description |
|---|---|
501 |
Not implemented. |
This page is generated from openapi.json.