Accounts

An account represents a bank account, or virtual wallet of some kind, capable of holding a sum of transactions.

AttributeDescription

name

An account name of your choice.

visibility

One of "PUBLIC", "PRIVATE" or "UNLISTED" - see Discovery.

RelationshipDescription

currency

A supported currency for this account.

MetaDescription

externalId

An external ID to tie this account with a resource from your side.

createdAt

The timestamp (UTC) (ISO8601) when the account was created.

updatedAt

The timestamp (UTC) (ISO8601) when the account was updated.



  • You cannot change an account's currencyCode once created.




  • When deleting an account, you will first receive a 412 Precondition Failed response. You should then take the Last-Modified header included with the error response, set it as the If-Unmodified-Since request header & repeat the request.

    • On successful delete, you'll receive a 204 No Content response.

    • If you receive a 412 Precondition Failed response again, use the new Last-Modified header received & repeat.


The root account

The root account for Testbank is special. You can credit your account from the root account to generate a balance to play with, or you can empty your account to the root account to clear your account out.

Last updated