Account balance changed

Type: object
Domain: account-balances
Event: balance_change
Version: 1

|
id required

Title: Unique identifier
Description: Unique Balance Change Integrity identifier.
Type: string
Format: uuid
Min length: 1
Max length: 36
Example:
744d9708-f217-4db2-8c9a-f211b5636370

division_id

Title: Division unique identifier
Description: Unique ID used to identify the division within your organization.
Type: string
Max length: 36
Example:
1d22e668-a857-4455-aee7-dbe888f4bf2b

program_id

Title: Program unique identifier
Description: Program ID to which the account belongs within your organization.
Type: integer
Max length: 11
Example:
15

book_balance

Title: Book balance
Description: The effective account balance.
Type: number
Example:
100.3

value_dated_balance

Title: Value dated balance
Description: Value dated balance results from recalculating credit or debit interest based on the back value date. By default, it is initialized with the book balance value.
Type: number
Example:
100.3

available_balance

Title: Available balance
Description: The balance that is available for transactions, including credit balance and credit limit.
Type: number
Example:
100.3

uncleared_funds

Title: Uncleared funds
Description: The balance of funds that got posted on the account but haven't been cleared/confirmed.
Type: number
Example:
100.3

earmarked_balance

Title: Earmarked balance
Description: The credit balance on hold and thus removed from the available balance, but kept in the book balance.
Type: number
Example:
50.15

credit_balance

Title: Credit balance
Description: The balance of credit transactions posted into the account.
Type: number
Example:
50.15

debit_balance

Title: Debit balance
Description: The outstanding balance from debit transactions after all credit balance is used. (Values larger than zero imply usage of a credit limit).
Type: number
Example:
50.15

operation_amount required

Title: Operation amount impacted in transaction
Type: number
Example:
10.7

tracking_id

Title: Tracking unique identifier
Description: A unique 43 character long identification for the transaction.
Type: string
Min length: 1
Max length: 43
Example:
UK1-ea6f491a-98a8-4f34-939c-44d704aa2119

change_available_event_id

Title: Change available event identifier
Description: Unique Available Integrity identifier. this UUID is generated by Ledger.
Type: string
Format: uuid
Min length: 1
Max length: 36
Example:
744d9708-f217-4db2-8c9a-f211b5636370

balance_update_datetime required

Title: Balance update datetime
Description: The balance integrity update datetime in UTC 0.
Type: string
Min length: 1
Max length: 25
Example:
2023-02-06T08:54:926078Z

business_date required

Title: Balance date
Description: The business date of the balance. In the balance-change event, the business_date refers to the current business cycle date, it's the valid date determined by cycle_closing_time config. Note that the date may not be the same as the current date.
the balance-history event is used to check the updated balances from previous dates for backdated transactions, the balance-change event reflects the current account balance.
Type: string
Format: date
Example:
2023-02-06

account_id required

Title: Account unique identifier
Type: integer
Example:
10

external_account_id

Title: External account identifier
Description: A custom account ID string that uniquely identifies the account within your organization.
Type: string or null
Min length: 1
Max length: 60
Example:
5acb57cd-a99e-4de9-aea0-9f52021a945b

operation_type required

Title: Operation type
Description: The type of operation that changed the account balance.
It can assume the values:
CREDIT: When the change occurred because a credit was made.
DEBIT: When the change occurred because a debit was made.
LIMIT_INCREASE: When the overdraft limit for the account was increased.
LIMIT_DECREASE: When the overdraft limit for the account was decreased.
ACCOUNT_CREATION: When the account was created.
Type: string
Min length: 1
Max length: 20
Example:
CREDIT
DEBIT
LIMIT_INCREASE
LIMIT_DECREASE
ACCOUNT_CREATION

currency_code

Title: Represents a 3-letter alphabetic code, conforming to the ISO 4217 standard, which corresponds to the currency utilized in the account balance
Type: string
Min length: 1
Max length: 3
Example:
USD
GBP
BRL

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "type": "object",
    "title": "Account balance changed",
    "required": [
        "id",
        "account_id",
        "operation_type",
        "operation_amount",
        "balance_update_datetime",
        "business_date"
    ],
    "properties": {
        "id": {
            "type": "string",
            "format": "uuid",
            "title": "Unique identifier",
            "description": "Unique Balance Change Integrity identifier.",
            "minLength": 1,
            "maxLength": 36,
            "examples": [
                "744d9708-f217-4db2-8c9a-f211b5636370"
            ]
        },
        "division_id": {
            "type": "string",
            "title": "Division unique identifier",
            "description": "Unique ID used to identify the division within your organization.",
            "maxLength": 36,
            "examples": [
                "1d22e668-a857-4455-aee7-dbe888f4bf2b"
            ]
        },
        "program_id": {
            "type": "integer",
            "title": "Program unique identifier",
            "maxLength": 11,
            "description": "Program ID to which the account belongs within your organization.",
            "examples": [
                15
            ]
        },
        "book_balance": {
            "type": "number",
            "title": "Book balance",
            "description": "The effective account balance.",
            "minimum": -9223372036854775807,
            "maximum": 9223372036854775807,
            "examples": [
                100.3
            ]
        },
        "value_dated_balance": {
            "type": "number",
            "title": "Value dated balance",
            "description": "Value dated balance results from recalculating credit or debit interest based on the back value date. By default, it is initialized with the book balance value.",
            "minimum": -9223372036854775807,
            "maximum": 9223372036854775807,
            "examples": [
                100.3
            ]
        },
        "available_balance": {
            "type": "number",
            "title": "Available balance",
            "description": "The balance that is available for transactions, including credit balance and credit limit.",
            "minimum": -9223372036854775807,
            "maximum": 9223372036854775807,
            "examples": [
                100.3
            ]
        },
        "uncleared_funds": {
            "type": "number",
            "title": "Uncleared funds",
            "description": "The balance of funds that got posted on the account but haven't been cleared/confirmed.",
            "minimum": -9223372036854775807,
            "maximum": 9223372036854775807,
            "examples": [
                100.3
            ]
        },
        "earmarked_balance": {
            "type": "number",
            "title": "Earmarked balance",
            "description": "The credit balance on hold and thus removed from the available balance, but kept in the book balance.",
            "minimum": 0,
            "maximum": 18446744073709551617,
            "examples": [
                50.15
            ]
        },
        "credit_balance": {
            "title": "Credit balance",
            "description": "The balance of credit transactions posted into the account.",
            "type": "number",
            "minimum": 0,
            "maximum": 18446744073709551617,
            "examples": [
                50.15
            ]
        },
        "debit_balance": {
            "title": "Debit balance",
            "description": "The outstanding balance from debit transactions after all credit balance is used. (Values larger than zero imply usage of a credit limit).",
            "type": "number",
            "minimum": 0,
            "maximum": 18446744073709551617,
            "examples": [
                50.15
            ]
        },
        "operation_amount": {
            "title": "Operation amount impacted in transaction",
            "type": "number",
            "minimum": 0,
            "maximum": 18446744073709551617,
            "examples": [
                10.7
            ]
        },
        "tracking_id": {
            "type": "string",
            "title": "Tracking unique identifier",
            "description": "A unique 43 character long identification for the transaction.",
            "minLength": 1,
            "maxLength": 43,
            "examples": [
                "UK1-ea6f491a-98a8-4f34-939c-44d704aa2119"
            ]
        },
        "change_available_event_id": {
            "title": "Change available event identifier",
            "description": "Unique Available Integrity identifier. this UUID is generated by Ledger.",
            "type": "string",
            "format": "uuid",
            "minLength": 1,
            "maxLength": 36,
            "examples": [
                "744d9708-f217-4db2-8c9a-f211b5636370"
            ]
        },
        "balance_update_datetime": {
            "type": "string",
            "title": "Balance update datetime",
            "description": "The balance integrity update datetime in UTC 0.",
            "minLength": 1,
            "maxLength": 25,
            "examples": [
                "2023-02-06T08:54:926078Z"
            ]
        },
        "business_date": {
            "type": "string",
            "title": "Balance date",
            "description": "The business date of the balance. In the balance-change event, the `business_date` refers to the current business cycle date, it's the valid date determined by `cycle_closing_time config`. Note that the date may not be the same as the current date.\n\nthe balance-history event is used to check the updated balances from previous dates for backdated transactions, the balance-change event reflects the current account balance.",
            "format": "date",
            "examples": [
                "2023-02-06"
            ]
        },
        "account_id": {
            "title": "Account unique identifier",
            "type": "integer",
            "minimum": 1,
            "maximum": 99999999999,
            "examples": [
                10
            ]
        },
        "external_account_id": {
            "title": "External account identifier",
            "description": "A custom account ID string that uniquely identifies the account within your organization.",
            "type": [
                "string",
                "null"
            ],
            "minLength": 1,
            "maxLength": 60,
            "examples": [
                "5acb57cd-a99e-4de9-aea0-9f52021a945b"
            ]
        },
        "operation_type": {
            "title": "Operation type",
            "description": "The type of operation that changed the account balance.\n\nIt can assume the values: \n\nCREDIT: When the change occurred because a credit was made. \n\nDEBIT: When the change occurred because a debit was made. \n\nLIMIT_INCREASE: When the overdraft limit for the account was increased. \n\nLIMIT_DECREASE: When the overdraft limit for the account was decreased. \n\nACCOUNT_CREATION: When the account was created.",
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "examples": [
                "CREDIT",
                "DEBIT",
                "LIMIT_INCREASE",
                "LIMIT_DECREASE",
                "ACCOUNT_CREATION"
            ]
        },
        "currency_code": {
            "type": "string",
            "title": "Represents a 3-letter alphabetic code, conforming to the ISO 4217 standard, which corresponds to the currency utilized in the account balance",
            "minLength": 1,
            "maxLength": 3,
            "examples": [
                "USD",
                "GBP",
                "BRL"
            ]
        }
    }
}
{
    "id": "744d9708-f217-4db2-8c9a-f211b5636370",
    "division_id": "1d22e668-a857-4455-aee7-dbe888f4bf2b",
    "program_id": 15,
    "book_balance": 100.3,
    "value_dated_balance": 100.3,
    "available_balance": 100.3,
    "uncleared_funds": 100.3,
    "earmarked_balance": 50.15,
    "credit_balance": 50.15,
    "debit_balance": 50.15,
    "operation_amount": 10.7,
    "tracking_id": "UK1-ea6f491a-98a8-4f34-939c-44d704aa2119",
    "change_available_event_id": "744d9708-f217-4db2-8c9a-f211b5636370",
    "balance_update_datetime": "2023-02-06T08:54:926078Z",
    "business_date": "2023-02-06",
    "account_id": 10,
    "external_account_id": "5acb57cd-a99e-4de9-aea0-9f52021a945b",
    "operation_type": "CREDIT",
    "currency_code": "USD"
}