Skip to main content

AccountsAPI

Access via client.accounts. For organizations that open client accounts; for any other organization create returns CLIENT_ACCOUNTS_NOT_ENABLED and the other calls return ACCOUNT_NOT_FOUND. Available from SDK 1.4.5.

create

Open a client account. RebelFi emails the contact an activation link; the response never carries it. Idempotent on reference with the same contact email. Needs a profile-scoped key.

get

Get a client account: its status and linked wallets.

resendActivation

Email the contact a new activation link; the previous one stops working. Only while the account is pending activation and the contact hasn’t used the link (ACCOUNT_ALREADY_ACTIVE, ACTIVATION_LINK_USED). Needs a profile-scoped key.

summary

The account’s figures as its RebelFi Earn portal shows them.

AccountResponse Type

AccountSummaryResponse Type

Amounts are strings in base units (show them with tokenDecimals), APYs are decimals, and times are ISO 8601 UTC.

Example