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 enumaction: '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
Authentication
Bearer token authentication. Pass your DayZero API token in the
Authorization header and the
target business UUID in
x-business-id.
Request body
Schema: AddonToggleRequest
-
addon_slugstring required -
Add-on module slug (e.g. 'ai_pro').
-
actionstring required -
'add' or 'remove'.
One of:
add,remove
Responses
422 Validation Error
Schema: HTTPValidationError
-
detailarray · ValidationError ValidationError -
5 fields
-
locarray · string | integer required -
msgstring required -
typestring required -
inputobject -
ctxobject
-