shops.closeCheck
Whether the shop can close now (owner only). Blockers must be cleared first: an open hand-off, card or bank payments still going through, open disputes, active maintenance plans, visits booked ahead. Warnings say what closing does.
| |
|---|
| Who | Agents can call this |
| REST | GET /v1/shops/close |
| MCP tool | shops_closeCheck |
| Writes | no |
| Area | Shop |
When to use it
Whether the shop can close now (owner only). Blockers must be cleared first: an open hand-off, card or bank payments still going through, open disputes, active maintenance plans, visits booked ahead.
What to tell the owner
Tell them what you found in plain words. Don't read back raw fields.
| Field | Type | Required |
|---|
shop_id | string (uuid) | yes |
Example
GET https://doingwork.work/v1/shops/close?shop_id=00000000-0000-4000-8000-000000000000
Output
| Field | Type | Always there |
|---|
can_close | boolean | yes |
blockers | array | yes |
blockers[].code | string | yes |
blockers[].count | integer | yes |
blockers[].message | string | yes |
blockers[].total_minor | integer | no |
warnings | array | yes |
warnings[].code | string | yes |
warnings[].count | integer | yes |
warnings[].message | string | yes |
warnings[].total_minor | integer | no |
{
"can_close": true,
"blockers": [
{
"code": "...",
"count": 1,
"message": "..."
}
],
"warnings": [
{
"code": "...",
"count": 1,
"message": "..."
}
]
}
Errors
| Code | Status | What to do |
|---|
invalid_input, invalid_token, rate_limited | | Can happen on any call. See errors. |