Accounts
An account represents a bank account, or virtual wallet of some kind, capable of holding a sum of transactions.
Attribute | Description |
---|---|
| An account name of your choice. |
| One of " |
Relationship | Description |
---|---|
| A supported currency for this account. |
Meta | Description |
---|---|
| An external ID to tie this account with a resource from your side. |
| The timestamp (UTC) (ISO8601) when the account was created. |
| 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 theLast-Modified
header included with the error response, set it as theIf-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 newLast-Modified
header received & repeat.
The root
account
root
accountThe 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