Skip to main content
POST
/
bank_account_balances
/
bulk
Bulk create or update bank account balances
curl --request POST \
  --url https://api.endclose.com/v1/bank_account_balances/bulk \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "bank_account_id": "<string>",
  "balances": [
    {
      "date": "2023-12-25",
      "balance_type": "opening_ledger",
      "amount_cents": 123
    }
  ]
}
'
{
  "count": 123,
  "balances": [
    {
      "bank_account_id": 123,
      "date": "2023-12-25",
      "balance_type": "opening_ledger",
      "amount_cents": 123,
      "id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
bank_account_id
string
required

ID of the bank account

balances
object[]
required
Required array length: 1 - 1000 elements

Response

Balances created or updated

count
integer

Number of balances processed

balances
object[]