Add Bank Balances

POST {{base_url}}/banking/v2/balances

The 'Add bank balances' endpoint can be used to add balances to accounts that were added using the ‘Add bank accounts’ endpoint.

Attributes

FieldTypeDescription
accountIdstringUnique identifier for the account
bankIdintegerUnique identifier for the bank
currencystringAccount currency
datedatetimeBalance data
amountintegerBalance amount
typestringTransaction type {DEBIT,CREDIT}
statusstringBalance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE, INTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}
externalIdstringAn Id linked to an external source

Error Messages

ConditionResponse StatusResponse Body
Missing/Invalid bankId400 Bad Request{error: Missing/Invalid bankId}
Missing/Invalid accountId400 Bad Request{error: Missing/Invalid accountId}
Missing/Invalid currency400 Bad Request{error: Missing/Invalid currency}
Missing/Invalid amount400 Bad Request{error: Missing/Invalid amount}
Missing/Invalid status400 Bad Request{error: Missing/Invalid status}
Missing/Invalid type (DEBIT/CREDIT)400 Bad Request{error: Missing/Invalid type}
Missing/Invalid date (ISO 8601 format)400 Bad Request{error: Missing/Invalid bookingDate}
Adding more than 500 balances413 Payload too large

Request Body

{"values"=>[{"bankId"=>6, "accountId"=>"accountId1234", "date"=>"2020-08-31", "amount"=>"100.00", "currency"=>"GBP", "type"=>"DEBIT", "status"=>"INTERIMAVAILABLE"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
X-Api-Keystring
X-Partner-Idstring
Authorizationstring
X-Company-Idstring