brevo · Schema
OrderProduct
Properties
| Name | Type | Description |
|---|---|---|
| productId | string | Unique identifier of the product. |
| quantity | integer | Quantity of the product ordered. |
| price | number | Price of the product at the time of order. |
| variantId | string | Variant identifier if the product has variants. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/OrderProduct",
"title": "OrderProduct",
"type": "object",
"required": [
"productId",
"quantity",
"price"
],
"properties": {
"productId": {
"type": "string",
"description": "Unique identifier of the product."
},
"quantity": {
"type": "integer",
"description": "Quantity of the product ordered.",
"minimum": 1
},
"price": {
"type": "number",
"format": "float",
"description": "Price of the product at the time of order."
},
"variantId": {
"type": "string",
"description": "Variant identifier if the product has variants."
}
}
}