Skip to main content

Create transaction (postpaid)

POST 

/accounting/transactions

JSON-RPC

accounting.transactions.create

Configuring taxes

Taxes can be set in one of two ways:

  1. Using taxes_state

    • Set taxes_state to included to subtract taxes from the specified amount according to the tax profile of the client.
    • Set taxes_state to excluded to calculate taxes in addition to the specified amount.
  2. Providing an exact list of taxes - Pass a list of taxes, where each item is a two-element array: - The first element is an integer representing the tax id. - The second element is a decimal value representing the tax amount.

tip

This method creates a new transaction regardless of the client balance.

To ensure transactions are created only if the client has sufficient balance, use "Create transaction (prepaid)" instead.

Request

Responses

Transaction object as has been stored.