Ledger balances
Create new balance
Create a new ledger balance with the TypeScript SDK.
POST
Create new balance
Use
blnk.LedgerBalances.create to create a balance on an existing ledger.
Call the method
blnk.LedgerBalances.create
| Field | Type | Description |
|---|---|---|
ledger_id | string | Ledger the balance belongs to. |
currency | string | Currency or asset class for the balance. |
identity_id | string | Identity to link to the balance. Required when track_fund_lineage is true. |
track_fund_lineage | boolean | Enable fund lineage tracking on this balance. |
allocation_strategy | string | How tagged provider funds are allocated on spend: FIFO, LIFO, or PROPORTIONAL. |
meta_data | Record<string, unknown> | Optional metadata for extra context. |
Save the balance ID
Use
response.data.balance_id as the source or destination on transactions, or when creating balance monitors.Response
201 Created
| Field | Type | Description |
|---|---|---|
balance_id | string | Unique ID for the balance. Use as source or destination on transactions. |
ledger_id | string | Ledger ID you passed in the request. |
currency | string | Currency you passed in the request. |
balance | number | Current net amount in the balance. |
created_at | string | Date and time the balance was created. |
Related docs
View balance docs
Balance concepts and setup.
Create new balance
HTTP request and response schema.