fakestore_add_cart
Simulate adding a shopping cart with user ID, date, and products for testing e-commerce workflows in development environments.
Instructions
Add a new cart (simulation - does not persist)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | Yes | Cart date in ISO format (e.g., 2024-01-01) | |
products | Yes | Array of products in the cart | |
userId | Yes | User ID who owns the cart |
Input Schema (JSON Schema)
{
"properties": {
"date": {
"description": "Cart date in ISO format (e.g., 2024-01-01)",
"type": "string"
},
"products": {
"description": "Array of products in the cart",
"items": {
"properties": {
"productId": {
"description": "Product ID",
"type": "number"
},
"quantity": {
"description": "Product quantity",
"type": "number"
}
},
"required": [
"productId",
"quantity"
],
"type": "object"
},
"type": "array"
},
"userId": {
"description": "User ID who owns the cart",
"type": "number"
}
},
"required": [
"userId",
"date",
"products"
],
"type": "object"
}