Upsert item by generic key

This Api works as un upsert. If the key_identifier's value used to search is not present, a creation will be made. Otherwise an update will be performed with the key requested. Please consider that the key already present in database can not be updated with this Api.
Attention: the uuid in this case will be autogenerated by BE.
Attention: If you use the sku as a key, uuid in the body will be ignored and will be preserved the uuid in the database.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
enum
required

key that you want to use to update. This key must be the same in the payload request.

Allowed:
string
required

value of key that you want to use to update. This key must be the same in the payload request.

Body Params

Object data that need to be updated

allergens
array of objects
allergens
alternative_descriptions
array of objects
alternative_descriptions
alternative_names
array of objects
alternative_names
boolean
barcodes
array of objects
barcodes
bom_components
array of objects
bom_components
string
length between 0 and 255
string

assign to this item the category with this code. If no category is found, a new one will be created. This will override category_id;

integer

must be a valid category_id. Check /categories to get the right category

channels
array of objects
channels
boolean
string
length between 0 and 255
string
combinations
array of objects
combinations
components
array of objects
components
number
≥ 0
date-time

it set by default from api, but it can be overwrited

integer

must be a valid category_id. Check /suppliers to get the right supplier

date-time

if it is not null item is deleted

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string
length between 0 and 255
boolean
string
length between 0 and 255
images
array of objects

for each updates, all images items are deleted and recreated. So you do not need set the id

images
integer
boolean
Defaults to false
boolean

Set true if the item is used to compose quick menus

string
length between 0 and 25
boolean
string
required
length between 0 and 255

The item name

boolean

Set true make the item not discountable in cash register

boolean

Set true to show it in orders or cash register

string
length between 0 and 255
string
length between 0 and 255
string
length between 0 and 255
string
length between 0 and 255
string
length between 0 and 20
number
required
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
printers
array
printers
number
boolean
Defaults to false
string
length between 0 and 255
string | null

if it is set it Must be unique. CASE CHAIN STORE: If it is not null, this field is used as primary key in the chain store and it will be added/modified/deleted automatically in all chain's stores.

boolean

Set true if the item variations with a linked item should be inserted as a stand-alone item

string
string
length between 0 and 255
number

in minutes

string
length between 0 and 10
date-time

it set by default from api, but it can be overwrited

string

must be unique

variations
array of objects
variations
number
0 to 30
number
≥ 0
Responses

404

Item not found

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json