Open an account
commercebook_account_startOpen an account for the owner when the owner asks for one. Action signup sends the owner one email with an 8-digit code, and action confirm with that code answers the key once. The key starts read-only, and payments stay off until the owner turns them on. Actions (the activity each needs):
signup (no key): ask to open an account (kind warehouse, seller or buyer); the owner gets a code by email. It answers the signup id, the email, the time the code expires (30 minutes later) and the next step.
confirm (no key): the email and the 8-digit code; answers the key once. Send action and its arguments. With a key, or with ?role=buyer, seller, warehouse or all, the server also lists the separate tools that list, order, pay and ship.
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": {
"action": "<action>"
},
"name": "commercebook_account_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | For signup. A warehouse: the city of its first facility. | |
| code | No | For confirm. The 8-digit code from the email the owner received. | |
| kind | No | For signup. The kind of account: warehouse, seller, or buyer (a Shop account that buys on the market). | |
| sqft | No | For signup. A warehouse: its floor space, in square feet. | |
| No | For every action. The owner’s email; the code goes there. | ||
| state | No | For signup. A warehouse: the two-letter state of its first facility. | |
| action | Yes | The action to run. | |
| address | No | For signup. A warehouse: the street address of its first facility. | |
| company | No | For signup. The business name. Required for a warehouse or a seller; optional for a buyer. | |
| services | No | For signup. A warehouse: the services it offers, one short phrase each (for example pick and pack). | |
| contact_name | No | For signup. The owner’s name. |