Tenant subscription, usage, invoices, and payment method management
Get current subscription and plan
Retrieve the current subscription with plan details for the tenant.
Get current subscription and plan › Responses
Current plan with subscription details
idorg_idplan_idstatusbilling_periodcancel_at_period_endcreated_atupdated_atplan_namelimitsfeaturestrial_ends_atcurrent_period_startcurrent_period_endpayment_gatewaygateway_customer_idgateway_subscription_idList available billing plans
List all active billing plans available for subscription.
List available billing plans › Responses
Array of active 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_atSubscribe to a plan
Create a new subscription with a 14-day trial. If plan_id is omitted, the cheapest active plan is used. Rejects if already subscribed.
Subscribe to a plan › Request Body
plan_idPlan to subscribe to (optional, defaults to cheapest)
Subscribe to a plan › Responses
Created subscription
idorg_idplan_idstatusbilling_periodcancel_at_period_endcreated_atupdated_attrial_ends_atcurrent_period_startcurrent_period_endpayment_gatewaygateway_customer_idgateway_subscription_idUpgrade or downgrade subscription plan
Changes the subscription plan with mid-cycle proration. Creates a prorated invoice for the net price difference with 11% PPN tax for IDR.
Upgrade or downgrade subscription plan › Request Body
plan_idperiodOptional billing period override. If omitted, keeps the current billing period.
Upgrade or downgrade subscription plan › Responses
Upgraded subscription with optional prorated invoice
Cancel subscription
Mark subscription for cancellation at end of current billing period.
Cancel subscription › Responses
Updated subscription with cancel_at_period_end=true
idorg_idplan_idstatusbilling_periodcancel_at_period_endcreated_atupdated_attrial_ends_atcurrent_period_startcurrent_period_endpayment_gatewaygateway_customer_idgateway_subscription_idGet current month's usage
Retrieve usage metrics and plan limits for the current billing period.
Get current month's usage › Responses
Usage metrics with plan limits
org_idagent_countcontact_countmessages_this_monthactive_integrationsusage_monthlimitsPlan limits for comparison
List invoices
List invoices › Responses
Array of invoices
idorg_idinvoice_numbercurrencysubtotaltaxtotalstatusretry_countcreated_atsubscription_idpdf_urlgateway_invoice_idpayment_urllast_retry_atpaid_atdue_dateList payment methods
List payment methods › Responses
Array of payment methods
idorg_idgatewaygateway_payment_method_idtypePayment method type (e.g. credit_card, e_wallet, virtual_account, bank_transfer)
labelis_defaultcreated_atAdd a payment method
If is_default is true, existing methods are unset as default first.
Add a payment method › Request Body
gatewaygateway_payment_method_idtypePayment method type (e.g. credit_card, e_wallet, virtual_account)
labelis_defaultAdd a payment method › Responses
Created payment method
idorg_idgatewaygateway_payment_method_idtypePayment method type (e.g. credit_card, e_wallet, virtual_account, bank_transfer)
labelis_defaultcreated_atList available add-ons
List available add-ons › Responses
Array of available add-ons
idnameslugprice_monthlyprice_annualunitPricing unit (e.g. flat, per agent)
is_activesort_ordercreated_atupdated_atdescriptionList attached add-ons
Returns add-ons currently attached to the tenant's subscription.
List attached add-ons › Responses
Array of attached add-ons with details
idaddon_idnameslugprice_monthlyquantitycreated_atAttach an add-on to subscription
Attach an add-on to subscription › Request Body
addon_idquantityAttach an add-on to subscription › Responses
Attached subscription add-on
idsubscription_idaddon_idquantitycreated_at