Toggle Addon

POST /api/v1/billing/addon

Add or remove an add-on from the business's Stripe subscription.

Request Body:

  • addon_slug: Add-on module slug from AddOnModule enum
  • action: 'add' (charges prorated amount immediately) or 'remove' (effective at period end, no refund)

Effect:

  • Adding: Stripe subscription is updated, prorated amount is charged immediately
  • Removing: Item removed with no proration, takes effect at period end
Operation ID: toggle_addon_api_v1_billing_addon_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.

Request body

addon_slug string required

Add-on module slug (e.g. 'ai_pro').

action string required

'add' or 'remove'.

One of: add, remove

Responses

201 Successful Response

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object