Skip to content
Sections · Treasury

API reference

Treasury

Cash locations and bank accounts a payment can be recorded into.

Endpoints

Paths are relative to https://your-workspace.reevio.app/api/public/v1. Every call needs a bearer token holding the scope shown.

The treasury location object

  • idstring (id)

    Unique identifier of the treasury location.

  • namestring

    The treasury location's name.

  • typeenum

    A cash drawer, a vault, or a collector's wallet.

    Possible values:collector_walletdrawervault

  • branchobjectnullable

    Null for a location every branch may use.

    Fields: id, name · details

  • statusenum

    Where the treasury location is in its life cycle.

    Possible values:active

Example
{
  "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
  "name": "Example name",
  "type": "collector_wallet",
  "branch": {
    "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
    "name": "Main branch"
  },
  "status": "active"
}

The bank account object

  • idstring (id)

    Unique identifier of the bank account.

  • namestring

    The bank account's name.

  • bank_namestringnullable

    The bank that holds the account.

  • currencyobject

    The bank account's currency.

    Fields: code, name, sign · details

  • branchobjectnullable

    Null for an account every branch may use.

    Fields: id, name · details

  • statusenum

    Where the bank account is in its life cycle.

    Possible values:active

Example
{
  "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
  "name": "Example name",
  "bank_name": "Example bank name",
  "currency": {
    "code": "IQD",
    "name": "Iraqi Dinar",
    "sign": "IQD"
  },
  "branch": {
    "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
    "name": "Main branch"
  },
  "status": "active"
}

List cash locations the user may record payments into

GET/treasury-locations

Scope accounting.cash_locations.read

The active cash locations (drawers, vaults, collector wallets) this user may operate, as the payment screen offers them. With branch_id, only those a payment recorded in that branch may use. Send one as treasury_location_id on a cash payment.

Filters

  • branch_idstring (id)

    Only this branch's records, by id.

Returns

Returns a list of treasury location objects, a page at a time.

curl "https://your-workspace.reevio.app/api/public/v1/treasury-locations" \
  -H "Authorization: Bearer $REEVIO_TOKEN"
Response
{
  "data": [
    {
      "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
      "name": "Example name",
      "type": "collector_wallet",
      "branch": {
        "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
        "name": "Main branch"
      },
      "status": "active"
    }
  ],
  "meta": {
    "page_size": 50,
    "has_more": false,
    "next_page_cursor": null
  }
}

List bank accounts the user may record payments into

GET/bank-accounts

Scope accounting.bank_accounts.read

The active bank accounts this user may operate, each in one currency. With branch_id, only those a payment recorded in that branch may use. Send one as bank_account_id on a bank transfer or card payment in the account's currency.

Filters

  • branch_idstring (id)

    Only this branch's records, by id.

Returns

Returns a list of bank account objects, a page at a time.

curl "https://your-workspace.reevio.app/api/public/v1/bank-accounts" \
  -H "Authorization: Bearer $REEVIO_TOKEN"
Response
{
  "data": [
    {
      "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
      "name": "Example name",
      "bank_name": "Example bank name",
      "currency": {
        "code": "IQD",
        "name": "Iraqi Dinar",
        "sign": "IQD"
      },
      "branch": {
        "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
        "name": "Main branch"
      },
      "status": "active"
    }
  ],
  "meta": {
    "page_size": 50,
    "has_more": false,
    "next_page_cursor": null
  }
}