POST
/
accounting
/
bank_transactions
curl --request POST \
  --url https://api.rootfi.dev/accounting/bank_transactions \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "company_id": 1,
  "data": [
    {
      "account_id": "123456",
      "amount": 100,
      "contact_id": "123456",
      "currency_id": "GBP",
      "transaction_date": "2021-09-28T15:00:00.000Z",
      "type": "DEPOSIT"
    }
  ]
}'
{
  "data": {
    "data": [
      {
        "error": null,
        "job_id": "aXI9pUDA5T7E2LS",
        "response": {
          "account_id": "3770712000000493001",
          "amount": 112345,
          "contact_id": "3770712000000225001",
          "debit_or_credit": "CREDIT",
          "from_account_id": "3770712000000493001",
          "platform_id": "3770712000000893001",
          "raw_data": {
            "account_id": "3770712000000493001",
            "amount": "112345.00",
            "contact_id": "3770712000000225001",
            "id": "3770712000000893001",
            "transaction_date": "2022-02-17",
            "type": "deposit",
            "updated_at": "2022-02-17T00:00:00.000Z"
          },
          "status": "manually_added",
          "to_account_id": "3770712000000493001",
          "transaction_date": "2022-02-17T00:00:00.000Z",
          "type": "deposit",
          "updated_at": "2022-02-17T00:00:00.000Z"
        },
        "status": "success"
      }
    ],
    "status": "SUCCESS",
    "upload_job_id": "xQm2K441VosP8W4"
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

Bank Transactions include the Transactional banking data for a specific company and account.

Authorizations

api_key
string
headerrequired

Body

application/json
company_id
integer
required

The company ID

data
object[]
required

The data to be passed through to the integration platform

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server