Create Stock Item

Creates a stock item.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

A stock item is a package unit that defines the formats in which an ingredient can be stored or ordered in. It can also describe the same for a recipe, in the case of stockable recipes.

Stock items for stockable recipes

Either main_ingredient_id or stockable_recipe must be given, but not both.

When stockable_recipe is given, you are defining a package for a stockable recipe. The recipe referenced in this field must be stockable.

Defining stock items as units of other stock items

In the PackageDescription object in this endpoint, one of base_unit or unit_stock_item must be given, but not both. When unit_stock_item is given, you are defining this stock item as a multiple of another stock item.

Stock items can be defined in base units (for example g, ml, cl...) but also as units of other stock items. Imagine a Cola that can be purchased as a can (33cl) but also as a pack of 6 cans (therefore 6 units of the base 33cl package).

For clarity, check the examples.

Body Params
string
required
string

An ingredient ID.

string

A recipe ID.

package_description
object
required
string

GTIN/EAN

boolean

Whether the stock item defines a "piece" of the ingredient. Only one stock item in an ingredient can be a piece.

boolean
boolean
boolean
gtin_list
array of strings

List of GTIN/EAN values.

gtin_list
Response

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