{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/items", "title": "items", "required": [ "itemsObject" ], "type": "array", "description": "List of items to be priced by Pricing Hub.", "items": { "type": "object", "description": "Each item to be priced by Pricing Hub.", "required": [ "index", "skuId", "quantity", "brandId", "sellerId", "priceTableIds", "categoriesIds" ], "properties": { "index": { "description": "Index of the item at Checkout's cart. It has to be unique in the items array.", "type": "integer", "example": 0 }, "skuId": { "description": "ID of the SKU that will be priced.", "type": "string", "example": "13" }, "quantity": { "description": "This is the amount of items that will be priced. It is possible to have a volume discount for many repeated items. Hence, the price may not be the quantity of the item multiplied by the unitary price.", "type": "integer", "example": 1 }, "brandId": { "description": "Brand ID for the item.", "type": "string", "example": "2000000" }, "sellerId": { "description": "Seller ID for the item.", "type": "string", "example": "1" }, "priceTableIds": { "description": "IDs of the price tables that will be used to compute the price. More than one price table might be passed to the array. The final price rule might be more complex than the lowest or the highest price.", "type": "array", "items": { "type": "string", "example": "1", "description": "ID of a price table that will be used to compute the price." }, "default": [ "1" ] }, "categoriesIds": { "description": "ID of the categories that will be used to compute the price.", "type": "array", "items": { "type": "string", "example": "1", "description": "ID of a category that will be used to compute the price." }, "default": [ "1" ] } } } }