v1

latestOpenAPI 3.0.0CoreStack Inc License2026-07-248001,5071.7 MB
MasterAccount Billing

Record a transaction and Update the balance for the master account

Update the balance for the master account

post/v1/billing/master_account/{master_account_id}/transaction

Request body

amountnumber

Balance amount to updated for the master account

transaction_idstring

Transaction id for the balance update

user_namestring

Name of the user who made the balance update.

tenant_idstring

Id of the tenant where the balance is updated.

conversation_idstring

Id of conversation where the balance is updated.

transaction_type'credit' | 'debit' required

Type of billing transaction.

Example request

{
  "transaction_type": "credit"
}

Response

Success

transaction_idstring

Transaction id for the balance update.

previous_balancenumber

Balance amount before the update in master account balance.

current_balancenumber

Balance amount after the update in master account balance.