check_availability
Verify whether requested SKUs can be sold right now, returning sellable yes/no with a reason per line. Call it before pitching, recovering, or promising any product.
Instructions
Can these SKUs be sold right now? Returns sellable yes/no with a reason per SKU (out of stock, insufficient quantity, inactive, unknown SKU). Call this before an agent pitches, recovers or promises any product to a customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | SKUs and quantities to check, e.g. [{"sku": "ST-TEE-BLK-M", "quantity": 2}]. | |
| location_name | No | Only count stock in this warehouse/location (exact name, e.g. 'Bengaluru WH'). Omit for all locations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Stock may be up to the cache TTL old; re-check right before committing to a customer. | |
| as_of | Yes | ||
| results | Yes | ||
| all_sellable | Yes |