Billing plan, coupon, add-on, and analytics management (super-admin only)
List all billing plans
Returns all plans (active and inactive). Requires super-admin auth.
List all billing plans › Responses
Array of billing plans
idnameslugcurrencybase_price_monthlybase_price_annualper_agent_priceoverage_message_pricelimitsPlan resource limits (max_agents, max_contacts, max_messages_month, max_channels, max_ai_agents)
featuresFeature flags (ai_agent, api_access, dedicated_support)
is_activesort_ordercreated_atupdated_atCreate a billing plan
Defaults: currency=IDR, annual_price=monthly*10, sort_order=0.
Create a billing plan › Request Body
nameslugbase_price_monthlyper_agent_priceoverage_message_pricelimitsfeaturescurrencybase_price_annualsort_orderCreate a billing plan › Responses
Created billing plan
idnameslugcurrencybase_price_monthlybase_price_annualper_agent_priceoverage_message_pricelimitsPlan resource limits (max_agents, max_contacts, max_messages_month, max_channels, max_ai_agents)
featuresFeature flags (ai_agent, api_access, dedicated_support)
is_activesort_ordercreated_atupdated_atGet a billing plan by ID
path Parameters
idGet a billing plan by ID › Responses
Billing plan details
idnameslugcurrencybase_price_monthlybase_price_annualper_agent_priceoverage_message_pricelimitsPlan resource limits (max_agents, max_contacts, max_messages_month, max_channels, max_ai_agents)
featuresFeature flags (ai_agent, api_access, dedicated_support)
is_activesort_ordercreated_atupdated_atUpdate a billing plan
path Parameters
idUpdate a billing plan › Request Body
nameslugcurrencybase_price_monthlybase_price_annualper_agent_priceoverage_message_pricelimitsfeaturesis_activesort_orderUpdate a billing plan › Responses
Updated billing plan
idnameslugcurrencybase_price_monthlybase_price_annualper_agent_priceoverage_message_pricelimitsPlan resource limits (max_agents, max_contacts, max_messages_month, max_channels, max_ai_agents)
featuresFeature flags (ai_agent, api_access, dedicated_support)
is_activesort_ordercreated_atupdated_atList all coupons
List all coupons › Responses
Array of coupons
idcodediscount_typediscount_valuecurrencycurrent_usesvalid_fromis_activecreated_atmax_usesvalid_untilapplicable_plansCreate a coupon
discount_type must be 'percentage' (1-100) or 'fixed'.
Create a coupon › Request Body
codediscount_typediscount_valuecurrencymax_usesvalid_fromvalid_untilapplicable_plansCreate a coupon › Responses
Created coupon
idcodediscount_typediscount_valuecurrencycurrent_usesvalid_fromis_activecreated_atmax_usesvalid_untilapplicable_plansUpdate a coupon
path Parameters
idUpdate a coupon › Responses
Updated coupon
idcodediscount_typediscount_valuecurrencycurrent_usesvalid_fromis_activecreated_atmax_usesvalid_untilapplicable_plansList all add-ons
List all add-ons › Responses
Array of add-ons
idnameslugprice_monthlyprice_annualunitPricing unit (e.g. flat, per agent)
is_activesort_ordercreated_atupdated_atdescriptionCreate an add-on
Create an add-on › Request Body
nameslugprice_monthlydescriptionprice_annualunitsort_orderCreate an add-on › Responses
Created add-on
idnameslugprice_monthlyprice_annualunitPricing unit (e.g. flat, per agent)
is_activesort_ordercreated_atupdated_atdescriptionUpdate an add-on
path Parameters
idUpdate an add-on › Request Body
namedescriptionprice_monthlyprice_annualis_activesort_orderUpdate an add-on › Responses
Updated add-on
idnameslugprice_monthlyprice_annualunitPricing unit (e.g. flat, per agent)
is_activesort_ordercreated_atupdated_atdescriptionRefund an invoice
Issue a full or partial refund. Defaults to full refund if amount is omitted.
path Parameters
idRefund an invoice › Request Body
reasonamountPartial refund amount. Omit for full refund.
Refund an invoice › Responses
Refund issued
statusrefund_amountinvoice_status