POST
/
v1
/
ledgers
/
{id}
/
entries
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ledger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 123,
  "type": "credit",
  "description": "<string>",
  "balance": 123,
  "timestamp": "2023-11-07T05:31:56Z",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Ledger UUID

Body

application/json
transaction_id
string
required

Unique transaction identifier

amount
integer
required

Entry amount in cents

Required range: x >= 1
type
enum<string>
required

Type of entry

Available options:
credit,
debit
description
string

Entry description

metadata
object

Additional entry metadata

Response

201 - application/json
Entry created successfully
id
string
ledger_id
string
transaction_id
string
amount
integer

Amount in cents

type
enum<string>
Available options:
credit,
debit
description
string
balance
integer

Running balance in cents

timestamp
string
metadata
object | null
created_at
string
created_by
string