Getting Started
Ledger Balances
Transactions
Identities
Create Balance
POST
/
balances
Create Balance
Copy
curl --request POST \
--url http://localhost:5001/balances \
--header 'Content-Type: application/json' \
--data '{
"ledger_id": "ldg_63d9915b-926f-49d6-93b2-4acc5ab214ed",
"currency": "NGN"
}'
Copy
{
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"balance": 0,
"version": 0,
"inflight_balance": 0,
"credit_balance": 0,
"inflight_credit_balance": 0,
"debit_balance": 0,
"inflight_debit_balance": 0,
"precision": 0,
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"identity_id": "",
"indicator": "",
"currency": "NGN",
"created_at": "2024-02-20T05:33:01.311600208Z",
"inflight_expires_at": "0001-01-01T00:00:00Z",
"meta_data": null
}
Body
application/json
The body is of type object
.
Response
201 - application/json; charset=utf-8
Created
The response is of type object
.
Was this page helpful?
Create Balance
Copy
curl --request POST \
--url http://localhost:5001/balances \
--header 'Content-Type: application/json' \
--data '{
"ledger_id": "ldg_63d9915b-926f-49d6-93b2-4acc5ab214ed",
"currency": "NGN"
}'
Copy
{
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"balance": 0,
"version": 0,
"inflight_balance": 0,
"credit_balance": 0,
"inflight_credit_balance": 0,
"debit_balance": 0,
"inflight_debit_balance": 0,
"precision": 0,
"ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
"identity_id": "",
"indicator": "",
"currency": "NGN",
"created_at": "2024-02-20T05:33:01.311600208Z",
"inflight_expires_at": "0001-01-01T00:00:00Z",
"meta_data": null
}
Assistant
Responses are generated using AI and may contain mistakes.