Create or update a bank account balance

Changed on

Creates a balance for the specified bank account. If a balance already exists for the same date and balance type, it will be updated with the new amount (upsert behavior).

post/bank_account_balances

Request

  • Base URL
    https://api.endclose.com/v1
  • Auth
    API key in header X-API-KEY

Request body

bank_account_idstring required

ID of the bank account

datestring date required

The date of the balance

balance_type'opening_ledger' | 'closing_ledger' | 'current_ledger' | 'opening_available' | 'opening_available_next_business_day' | 'closing_available' | 'current_available' | 'previously_closed_book' | 'other' required

The type of balance

amount_centsinteger required

The balance amount in cents (e.g., 1234 = $12.34)

Response

Balance created or updated

idstring uuid

Unique identifier

bank_account_idstring uuid required

ID of the bank account this balance belongs to

datestring date required

The date of the balance

balance_type'opening_ledger' | 'closing_ledger' | 'current_ledger' | 'opening_available' | 'opening_available_next_business_day' | 'closing_available' | 'current_available' | 'previously_closed_book' | 'other' required

The type of balance

amount_centsinteger required

The balance amount in cents (e.g., 1234 = $12.34)

created_atstring date-time
updated_atstring date-time

Changes

    • breaking

      the response's property type changed from integer to string, and format from no format to uuid for status

    • breaking

      the response's property type changed from integer to string, and format from no format to uuid for status