{"openapi":"3.1.0","info":{"title":"GET /api/v1/billing/pricing-config","version":"1.0.0","description":"Get Pricing Config"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/billing/pricing-config":{"get":{"tags":["billing"],"summary":"Get Pricing Config","description":"Return billing pricing configuration derived from the single discount knob.\n\nThe frontend uses this to render annual savings and badge labels without\nduplicating the discount percentage. Changing the discount on the backend\n(``ANNUAL_DISCOUNT_PCT``) automatically updates every UI surface.\n\n**Returns:**\n- `annual_discount_pct`: Fractional annual discount (e.g. `0.1667`).\n- `annual_discount_label`: Human label for the annual badge.\n- `firm_bundled_addons`: Firm plan tier -> add-on slugs it includes.\n- `plan_included_addons`: Plan tier -> add-on slugs it includes.\n- `core_included_addons`: Add-on slugs every plan includes (Commerce).\n- `trial_days`: Free-trial length in days for self-serve businesses.","operationId":"get_pricing_config","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessEnvelope_GetPricingConfigResponse_"}}}}},"x-fastapi-operation-id":"get_pricing_config_api_v1_billing_pricing_config_get"}}},"components":{"schemas":{"GetPricingConfigResponse":{"properties":{"annual_discount_pct":{"type":"number","title":"Annual Discount Pct"},"annual_discount_label":{"type":"string","title":"Annual Discount Label"},"firm_bundled_addons":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Firm Bundled Addons","default":{}},"plan_included_addons":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Plan Included Addons","default":{}},"core_included_addons":{"items":{"type":"string"},"type":"array","title":"Core Included Addons","default":[]},"trial_days":{"type":"integer","title":"Trial Days","default":30}},"additionalProperties":true,"type":"object","required":["annual_discount_pct","annual_discount_label"],"title":"GetPricingConfigResponse","description":"Response for ``get_pricing_config``.\n\n``firm_bundled_addons`` maps each firm plan tier to the add-on slugs it\nalready includes, and ``plan_included_addons`` does the same for the\nsingle-business plan tiers, so the wizard can mark them \"Included\" instead\nof selling them twice. ``core_included_addons`` are the slugs every plan\nincludes (Commerce). ``trial_days`` is the free-trial length every\nself-serve business is stamped with, so no UI hard-codes \"1-month\"."},"SuccessEnvelope_GetPricingConfigResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"data":{"anyOf":[{"$ref":"#/components/schemas/GetPricingConfigResponse"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"SuccessEnvelope[GetPricingConfigResponse]"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}