Slack webhook: inbound O2C hours submission
/api/v1/webhooks/slack/o2c-hoursReceives the /hours slash command and app_mention events from Slack and turns them into pending drawdown entries awaiting approval. Requests are verified against the Slack signing secret; the Slack workspace must be linked to a business via the O2C settings slack_team_id.
Authentication
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Responses
403Forbidden - Insufficient permissions
Schema: ErrorResponse
errorstringrequiredError category:
validation_error,unauthorized,forbidden,not_found,conflict,rate_limited,server_error, orservice_unavailable.messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in
CATEGORY_NNNform (e.g.NOT_FOUND_006,AUTH_010,GEN_002).request_idstringCorrelation id for support requests. Echoes the
x-request-idrequest header when one was supplied.errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.