Validate cart
cart_validateValidate the current cart before checkout.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"storeId": "<storeId>"
},
"name": "cart_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | Okam store id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | No | ||
| hasErrors | No | ||
| cartIsEmpty | No | ||
| minimumPrice | No | ||
| storeIsClosed | No | ||
| itemsOutOfStock | No | ||
| paymentTypeError | No | ||
| priceDifferError | No | ||
| priceTooLowError | No | ||
| deliveryMethodError | No | ||
| deliveryAddressError | No | ||
| giftcardBalanceTooLow | No | ||
| sameDayAfterHoursOrderNotAllowed | No |