DocsAPI ReferenceBranch/bff/branch/closure-create
postBranchAdmin BFF

/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

4 total
Body · 4
branchSlugstringRequired

Branch slug the closure applies to.

startDatestringRequired

ISO timestamp the closure begins.

Length: 1
endDatestring | null
reasonstringRequired

Operator-supplied reason. Required.

Length: 1

Request

POST /bff/branch/closure-create

post
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.

Get API Key