A ledger_account_settlement
is an object that creates a ledger transaction to safely offset the posted balance of a ledger account.
Related Guides: Ledger Account Settlements Overview
Attribute | Description |
---|---|
id string | Unique identifier for the ledger account settlement. |
description | An optional free-form description for internal use. |
status | One of |
settlement_entry_direction | The direction of the ledger entry with the settled_ledger_account. |
settled_ledger_account_id | The Ledger Account that we will query the Entries against, and its balance is reduced as a result. The settled ledger account and the contra ledger account must belong to the same ledger. For example, let’s say we’re a ride-sharing app. To pay out a specific driver, the |
contra_ledger_account_id | The Ledger Account that sends to or receives funds from the settled ledger account. The settled ledger account and the contra ledger account must belong to the same ledger. For example, let’s say we’re a ride-sharing app. To pay out a specific driver, the |
effective_at_upper_bound | The exclusive upper bound of the effective time of entries included in the ledger account settlement. |
ledger_transaction_id | The ID of the Settlement Ledger Transaction. |
amount | Value in specified currency’s smallest unit. Can be any integer up to 10³⁶. The amount is null when the Settlement is in |
currency | The currency of the ledger account settlement. |
currency_exponent | The currency exponent of the ledger account settlement. |
metadata | Additional data represented as key-value pairs. Both the key and value must be strings. See Metadata. |
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. |
created_at | The datetime that the ledger account settlement was created. |
updated_at | The datetime of the last update to the ledger account settlement. |
{
"id": "dbdbbfe5-da56-4aaf-be36-3fbc415622dd",
"object": "ledger_account_settlement",
"live_mode": true,
"description": "Alice's January settlement",
"settled_ledger_account_id": "d44ad0d0-b3ea-4698-867d-09fe961e52a6",
"contra_ledger_account_id": "3824af4d-4151-48f6-8e8b-bf859cbddbcd",
"effective_at_upper_bound": "2023-01-01T00:00:00.000Z",
"status": "pending",
"amount": 1000,
"currency": "USD",
"ledger_transaction_id": "b47ce462-806b-4d5d-9476-9add11a42529",
"metadata": {
"foo": "bar"
},
"created_at": "2023-01-11T20:35:36Z",
"updated_at": "2023-01-11T20:36:02Z"
}