Create product
Add a product to your catalogue.
/ bigblue.storeapi.v1.PublicAPI/ CreateProductCreates a product. There is no batch endpoint, so importing a catalogue takes one request per product. See the sync example.
Choose the id carefully. You can't change it, and it appears on orders, inbound
shipments, inventory and webhooks.
Request body
productProductFormrequiredProductForm
idstringrequired^[A-Za-z0-9]{4}-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}$namestringrequiredbarcodestringrequired^([0-9]{12,13}|)$Declared value, for example { "amount": "24.90", "currency": "EUR" }.
tariff_numberstringrequired^[0-9.]{6,16}$origin_countrystringrequiredskustringdescriptionstringoptionsProductOption[]customs_descriptionstringname_translationsProductNameTranslation[]Names in other languages.
track_lotsbooleandefault falseStore the product in lots. Can only be set here.
track_lot_expirybooleandefault falseLots have an expiry date. Requires track_lots.
lot_expiry_threshold_daysintegerdefault 90Days before expiry when a lot can no longer be sold. Can be negative.
non_returnablebooleandefault falsefoldablebooleandefault falsealready_packagedbooleandefault falseThe product ships without extra packaging.
You can't send weight, width, height or depth. The warehouse measures them
when it first receives the product.
Responses
productProductThe new product. Dimensions are missing until the warehouse measures it.
{ "code": "invalid_argument", "msg": "barcode is required" }{ "code": "already_exists", "msg": "product BGBL-ESPSRT-SMAL already exists" }If you're retrying, the first request succeeded.
/ bigblue.storeapi.v1.PublicAPI/ CreateProduct{
"product": {
"id": "BGBL-ESPSRT-SMAL",
"sku": "ESP-SHIRT-S",
"name": "Espresso T-shirt, Small",
"options": [{ "name": "Size", "value": "Small" }],
"barcode": "3401579800127",
"value": { "amount": "24.90", "currency": "EUR" },
"tariff_number": "6109.10",
"origin_country": "PT",
"customs_description": "Cotton t-shirt",
"foldable": true
}
}{
"product": {
"id": "BGBL-ESPSRT-SMAL",
"sku": "ESP-SHIRT-S",
"name": "Espresso T-shirt, Small",
"options": [{ "name": "Size", "value": "Small" }],
"barcode": "3401579800127",
"value": { "amount": "24.9", "currency": "EUR" },
"tariff_number": "6109.10",
"origin_country": "PT",
"customs_description": "Cotton t-shirt",
"foldable": true
}
}