Create a new bank account balance
Add a new balance entry for a specific bank account identified by its unique identifier. The balance entry includes the amount, timestamp, and currency code. The endpoint facilitates accurate tracking of the bank account's financial status over time.
Body Required
Request model for creating a new bank account balance
-
The amount of the balance.
-
The timestamp of the balance.
-
The currency of the balance.
It is recommended to avoid sending in the currency rate and rely on the automatic default exchange rate calculated by 24SevenOffice.
POST /bankaccounts/{id}/balances
curl \
-X POST https://rest.api.24sevenoffice.com/v1/bankaccounts/{id}/balances \
-H "Content-Type: application/json" \
-H "Authorization: string" \
-d '{"amount":1100,"timestamp":"2024-06-01T12:00:00.000Z","currency":{"code":"NOK","rate":1}}'
Request examples
# Headers
Authorization: string
# Payload
{
"amount": 1100,
"timestamp": "2024-06-01T12:00:00.000Z",
"currency": {
"code": "NOK",
"rate": 1
}
}
Response examples (201)
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
{
"amount": 1100,
"timestamp": "2024-06-01T12:00:00.000Z",
"currency": {
"code": "NOK",
"rate": 1
}
}