Skip to content

Latest commit

 

History

History
60 lines (54 loc) · 1.66 KB

loose_accounts_api.md

File metadata and controls

60 lines (54 loc) · 1.66 KB

LooseAccounts Api

Please read General API Information first

Create Loose Account (Permission: ACCOUNTS_WRITE, Security: SIGNED)

POST /ver1/loose_accounts

Weight: 1

Parameters:

Name Type Mandatory Values(default) Description
name string YES
tokens[code] array[string] YES
tokens[amount] array[number] YES
include_in_summary boolean NO (true)

Available currencies (Permission: ACCOUNTS_READ, Security: SIGNED)

GET /ver1/loose_accounts/available_currencies

Weight: 1

Parameters:

Name Type Mandatory Values(default) Description
contains string NO
limit integer NO
offset integer NO

Update Loose Account (Permission: ACCOUNTS_WRITE, Security: SIGNED)

PUT /ver1/loose_accounts/{account_id}

Weight: 1

Parameters:

Name Type Mandatory Values(default) Description
name string NO
tokens[code] array[string] YES
tokens[amount] array[number] YES
include_in_summary boolean NO
account_id integer YES

Response Entities

LooseAccountEntity

{
id: 1                                     
name: New Loose Account                   
created_at: 2021-07-08 08:08:08           
updated_at: 2021-08-09 09:09:09           
type: Accounts::LooseAccount              
is_deleted: false                         
is_locked: false                          
}