BlueCart · Schema

OrderProduct

A line item within an order.

RestaurantProcurementWholesaleOrderingFood DistributionHospitalityeCommerce

Properties

Name Type Description
productId integer Identifier of the product.
sku string Stock keeping unit of the product.
name string Product name.
quantity number Quantity ordered.
price number Unit price for this line item.
View JSON Schema on GitHub

JSON Schema

bluecart-order-product-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OrderProduct",
  "description": "A line item within an order.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bluecart/refs/heads/main/json-schema/bluecart-order-product-schema.json",
  "type": "object",
  "properties": {
    "productId": {
      "type": "integer",
      "format": "int64",
      "description": "Identifier of the product.",
      "example": 90210
    },
    "sku": {
      "type": "string",
      "description": "Stock keeping unit of the product.",
      "example": "WINE-CAB-750"
    },
    "name": {
      "type": "string",
      "description": "Product name.",
      "example": "Cabernet Sauvignon 750ml"
    },
    "quantity": {
      "type": "number",
      "description": "Quantity ordered.",
      "example": 12
    },
    "price": {
      "type": "number",
      "format": "float",
      "description": "Unit price for this line item.",
      "example": 18.5
    }
  }
}