Pause Ai Features

POST/api/v1/billing/ai/pause

Pause all AI features for the authenticated business.

Sets businesses.ai_paused_at so:

  • check_ai_quota returns allowed=False, paused=True for any subsequent AI call (chat, panels, OCR, etc.).
  • track_business_usage short-circuits, stopping the Stripe overage fire-and-forget.
  • AITransactionCleaner downshifts to rule-only cleaning during Plaid sync (no LLM calls).

Idempotent. Returns the refreshed AI usage payload so the widget / banner can transition to the paused state without a second round-trip.

Operation ID: pause_ai_features_api_v1_billing_ai_pause_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

201Successful Response

successboolean
messagestring
codestring
dataPauseAiFeaturesResponse

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject