BlueCart · JSON Structure

Bluecart Product Create Structure

Payload for creating or updating a product.

Type: object Properties: 9 Required: 2
RestaurantProcurementWholesaleOrderingFood DistributionHospitalityeCommerce

ProductCreate is a JSON Structure definition published by BlueCart, describing 9 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

productName sku description uom price pack tags inventory discounts

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bluecart/refs/heads/main/json-structure/bluecart-product-create-structure.json",
  "name": "ProductCreate",
  "description": "Payload for creating or updating a product.",
  "type": "object",
  "properties": {
    "productName": {
      "type": "string",
      "example": "Cabernet Sauvignon 750ml"
    },
    "sku": {
      "type": "string",
      "example": "WINE-CAB-750"
    },
    "description": {
      "type": "string",
      "example": "Estate-bottled Cabernet Sauvignon, vintage 2022."
    },
    "uom": {
      "type": "string",
      "example": "Bottle"
    },
    "price": {
      "type": "float",
      "example": 18.5
    },
    "pack": {
      "type": "int32",
      "example": 12
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "Wine",
        "Red"
      ]
    },
    "inventory": {
      "type": "object",
      "additionalProperties": true
    },
    "discounts": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "productName",
    "price"
  ]
}