Create a Billing Package
Create a billing package for period-based charges. Supports two types — volume (transaction count-based) and maintenance (per-account fixed fee).
Documentation Index
Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
Use this file to discover all available pages before exploring further.
Headers
The unique identifier of the Organization associated with the request.
"019c96a0-0a98-7287-9a31-786e0809c769"
The authorization token in the 'Bearer ' format.
Important: This header is required if your environment has Access Manager enabled. For more information, refer to the Access Manager documentation.
The type of media of the resource. Must be application/json.
"application/json"
Body
- Volume billing package
- Maintenance billing package
Request body to create a billing package. The set of required fields depends on type.
volumepackages requireeventFilter,pricingModel, at least onetiersentry,assetCode,debitAccountAlias, andcreditAccountAlias.maintenancepackages requirefeeAmount,assetCode,maintenanceCreditAccount, andaccountTarget.enableis optional; when omitted, the service defaults it totrue.
Billing type: volume or maintenance.
volume, maintenance "volume"Name of the billing package.
Ledger that records the billing transactions.
(Volume only) Filter for which transactions to count.
(Volume only) Pricing model.
tiered, fixed (Volume only) Quantity ranges and unit prices. At least one tier is required.
1Currency code (e.g., BRL).
(Volume only) Account to debit.
(Volume only) Account to credit.
Optional description.
Whether the package is active. Optional. Defaults to true when omitted.
(Volume only) Transactions exempt before charging.
(Volume only) Progressive discount thresholds.
(Volume only) How transactions are grouped.
perRoute, perAccount (Maintenance only) Fixed fee per active account. Decimal value as a string (e.g., "9.90").
(Maintenance only) Account that receives the fee.
(Maintenance only) Target accounts. Provide exactly one of segmentId, portfolioId, or aliases.
- Option 1
- Option 2
- Option 3
Response
Billing package created successfully.
Unique identifier of the billing package.
volume, maintenance 
