POST
/
ledgers
curl --request POST \
  --url http://localhost:5001/ledgers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Customer wallets Ledger",
  "meta_data": {
    "project_owner": "Blnk Tech"
  }
}'
{
  "ledger_id": "ldg_073f7ffe-9dfd-42ce-aa50-d1dca1788adc",
  "name": "Customer wallets Ledger",
  "created_at": "2024-02-20T05:28:03.558281542Z",
  "meta_data": {
    "project_owner": "Blnk Tech"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
name
string
required
meta_data
object
required
Example:
{ "project_owner": "Blnk Tech" }

Response

201 - application/json; charset=utf-8
Created
ledger_id
string
required
name
string
required
created_at
string
required
meta_data
object
required
Example:
{ "project_owner": "Blnk Tech" }

Was this page helpful?