Skip to main content
POST
Create ledger entry

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Ledger UUID

Body

application/json
transaction_id
string<uuid>
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<uuid>
ledger_id
string<uuid>
transaction_id
string<uuid>
amount
integer

Amount in cents

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

Running balance in cents

timestamp
string<date-time>
metadata
object | null
created_at
string<date-time>
created_by
string<uuid>