Create a new bank account balance

POST /bankaccounts/{id}/balances

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.

Headers

Path parameters

  • id string Required
application/json

Body Required

Request model for creating a new bank account balance

  • amount number Required

    The amount of the balance.

  • timestamp string(date-time) Required

    The timestamp of the balance.

  • currency object Required

    The currency of the balance.

    Additional properties are allowed.

    Hide currency attribute Show currency attribute object
    • code string Required

      The currency code of the balance.

Responses

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"}}'
Request examples
# Headers
Authorization: string

# Payload
{
  "amount": 1100,
  "timestamp": "2024-06-01T12:00:00.000Z",
  "currency": {
    "code": "NOK"
  }
}
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"
  }
}