WalletD developers
Accounts

Read one account

Reads one account: its natural key, status, credit limit, version and current balance.

GET/v1/ledgers/{ledgerId}/accounts/{accountId}

Reads one account: its natural key, status, credit limit, version and current balance. An account in a ledger the caller does not own is ledger_not_found, never an account belonging to somebody else.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

ledgerId*string
Formatuuid
accountId*string
Formatuuid

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "owner_type": "string",  "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",  "purpose": "string",  "commodity": "string",  "balance": 0,  "credit_limit": 0,  "enforce_floor": true,  "status": "active",  "version": 0,  "created_at": "2019-08-24T14:15:22Z"}