Treasury
Get a treasury account
Returns an account by its identifier.
treasury:readtreasury:read- 120/min
- Server annotation: Read-only
- Server annotation: Idempotent
Result
generated from the schema
The BANK ACCOUNT NUMBER is not published: to say which account a payment came in or went out through, the account identifier is enough. Accounts are not created or modified through this API.
Arguments
Treasury account identifier.
Limits: min length 1
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Treasury account identifier.
Name by which the treasury account is recognized.
Nature of the treasury account: bank (a bank account), cash (a cash box) or manual.
Available options: bank, cash, manual
Currency of the treasury account, as an ISO 4217 code.
Treasury account status: active, needs_reauth (the bank connection must be renewed), disconnected or archived.
Available options: active, needs_reauth, disconnected, archived
Creation date in ISO 8601 UTC.
Last modification date in ISO 8601 UTC.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs GET /api/v1/treasury/accounts/{accountId}.
Related pages
Link to this section: Related pagesTreasury
Get a treasury account
Returns an account by its identifier.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?