A ledger_entry
represents an accounting entry within a parent ledger transaction. Its amount is denominated in the currency of the ledger it belongs to.
Attribute | Description |
---|---|
id string | Unique identifier for the ledger entry. |
ledger_account_id | ID of the ledger account. |
ledger_account_currency | The currency of the ledger account |
ledger_account_currency_exponent | The currency exponent of the ledger account |
direction | Either |
amount | Value in specified currency's smallest unit. e.g. $10 would be represented as |
live_mode | This field will be true if this object was created with a production API key or false if created with a test API key. |
resulting_ledger_account_balances | The resulting pending, posted, and available balances for this ledger account. The posted balance is the sum of all |
status | Equal to the state of the ledger transaction when the ledger entry was created. One of |
created_at | The datetime that the ledger entry was created. |
updated_at | The datetime of the last update to the ledger entry. |
metadata | Additional data represented as key-value pairs. Both the key and value must be strings. See Metadata. |
{
"id": "2a9b522e-5be3-49bc-b607-a09f9786dc3c",
"object": "ledger_entry",
"live_mode": true,
"amount": 1500000000,
"direction": "debit",
"status": "pending",
"ledger_account_id": "063da2e3-4a37-4abf-8626-57d25bd6d441",
"ledger_account_currency": "USD",
"ledger_account_currency_exponent": 2,
"ledger_account_lock_version": 57001,
"ledger_transaction_id": "d376dd4e-1c4f-4ba2-9b13-db63c04471e0",
"resulting_ledger_account_balances": {
"pending_balance": {
"credits": 0,
"debits": 0,
"amount": 0,
"currency": "USD",
"currency_exponent": 2
},
"posted_balance": {
"credits": 0,
"debits": 0,
"amount": 0,
"currency": "USD",
"currency_exponent": 2
},
"available_balance": {
"credits": 0,
"debits": 0,
"amount": 0,
"currency": "USD",
"currency_exponent": 2
}
},
"discarded_at": null,
"created_at": "2020-08-04T16:58:51Z",
"updated_at": "2020-08-04T16:58:51Z",
"metadata": {}
}