Create Product

Create a new product.

❗️

Products creation

If you don't have the Inventory app, the only kind of products you are allowed to create is simple ("kind":"simple").
If you are enjoying our Inventory app, your are allowed to create different types of products such as "lots, variants or pack".

📘

If you have the Inventory app..

In order to create a product with variants, lots or pack you just have to set the field kind to your desired type. Then you can add a variants array field (in the pack case, instead of "variants" the name of the field should be "packItems") with the following objects structure as follow:

{
  "kind": "variants",
  "variants": [
    {
      "code":"0123i",
      "sku":"sku1",
      "subtotal":20,
      "cost": 5,
      "purchasePrice": 4,
      "stock": 10
    }
  ]
}

{
  "kind": "lots",
  "variants": [
    {
			"code":"3333test",
      "sku":"ps123",
      "desc":"my first lot",
      "creationDate": 1540887390,
      "endDate": 1546166520
    }
  ]
}

{
  "kind": "pack",
  "packItems": [
    {
      "productId":"5bc45f5b4c4bea00183e8096",
      "variantId":"5bc45f5b4c4bea00183e8095",
      "units": 100
    }
  ]
}

Language
Credentials
Header
Click Try It! to start a request and see the response here!