/bff/branch/closure-create
Creates a closure row for the branch. End date is optional — leave it out for a closure that lasts "until further notice". The reason is required so the audit feed (and a future Finance report drill-down) always has a human-readable explanation.
BranchpostBffBranchClosure-create
Parameters
4 body
Body · 4
branchSlugstringRequiredBranch slug the closure applies to.
startDatestringRequiredISO timestamp the closure begins.
Length: 1–∞
endDatestring | nullreasonstringRequiredOperator-supplied reason. Required.
Length: 1–∞
Request
POST /bff/branch/closure-create
curl -X POST "https://api.bizkithub.com/bff/branch/closure-create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"branchSlug": "example_branchSlug",
"startDate": "example_startDate",
"reason": "example_reason"
}'Response
JSON payload
{
"success": false,
"closureId": "example_closureId"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.