Create items
This endpoint is deprecated.
POST
/api/RPC.common.Api.Items.set?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Item ID |
skurequired | String | Item SKU |
namerequired | String | Item name |
status | String | Item status |
description | String | Item description |
tprequired | String | Item Type |
income | Boolean | To be bought |
expense | Boolean | To be sold |
brandrequired | Object | Brand object. |
brand.id | String | Brand ID |
brand.code | String | Brand ID |
brand.name | String | Brand name |
grouprequired | Object | Group object. |
group.id | String | ID category |
group.coderequired | String | Category ID |
group.namerequired | String | Category name |
supplierrequired | Object | Supplier object. |
supplier.type | String | Supplier type |
supplier.id | String | Supplier ID |
supplier.code | String | Supplier SKU |
supplier.measure | String | Unit of measurement |
supplier.min_quantity | String | Minimum order quantity |
supplier.quantity_step | String | Quantity step |
measuresrequired | Object | Measures object. |
measures.id | String | Unit of measurement ID |
measures.coderequired | String | Unit of measurement ID |
measures.namerequired | String | Unit of measurement name |
measures.base | Boolean | Main UM |
measures.second | Boolean | Second unit of measurement |
measures.weight | String | Weight Net |
measures.gross | String | Weight Gross |
measures.formula | String | Formula |
measures.H | String | Height |
measures.W | String | Width |
measures.L | String | Length |
barcodesrequired | Object | Barcodes object. |
barcodes.barcodes | String | Barcode |
Request example
Create Item:
{
"data" : [
{
"measures" : [
{
"code" : 134,
"base" : 1,
"weight" : 100,
"L" : 20,
"W" : 50,
"formula" : 1,
"H" : 100
}
],
"tp" : "item",
"params" : {
"Expiry date" : "03.09.2026"
},
"expense" : 1,
"barcodes" : [
163899578,
121586934,
{
"tp" : "EAN",
"barcode" : 4048451441772
}
],
"income" : 1,
"group" : {
"code" : "eyes"
},
"name" : "Test Item 77",
"brand" : {
"code" : "BUL"
}
}
]
}cURL
Create Item:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "measures" : [ { "code" : 134, "base" : 1, "weight" : 100, "L" : 20, "W" : 50, "formula" : 1, "H" : 100 } ], "tp" : "item", "params" : { "Expiry date" : "03.09.2026" }, "expense" : 1, "barcodes" : [ 163899578, 121586934, { "tp" : "EAN", "barcode" : 4048451441772 } ], "income" : 1, "group" : { "code" : "eyes" }, "name" : "Test Item 77", "brand" : { "code" : "BUL" } } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Items.set?token=<TOKEN>"Response example