API request contract demo
Decide what the handler is allowed to receive.
One command contract. Six request cases. A repeatable receiving result.
6Synthetic cases
1Valid baseline request
5Explicit refusals
Check authority before the command body
| Case | Role | Tenant | Body condition | Expected | Inspect |
|---|
Operator may create a request for store-A. Quantity must be an integer from 1 to 20. Only sku and quantity are allowed in the body.
Command input
R205 · Unknown property
Allowed sku values: PACK, CASE. Quantity is a JSON number, not a quoted string. The actor belongs to store-A.
Command receipt
No request recorded
Run a valid command from the request editor.