approved status before accounts can be created for them.
Endpoints
The Account object
Currency code the account is denominated in. Uppercase and case-sensitive. See Supported currencies for the accepted values.
Nuvion internal bank account number used for routing. Treat this as read-only. May be absent immediately after creation.
Current balance state of the account. All amounts are in the smallest currency unit (e.g. cents for USD).
Unique identifier for the account’s underlying balance record. Absent from the create response; returned when you retrieve the account.
Stablecoin-specific balance detail. An empty object for fiat accounts in create responses. Get an account returns an array of stablecoin child accounts instead, and List accounts omits the field.
Example
Always use
balance.available when checking if an entity has sufficient funds. balance.current includes amounts pending settlement that are not yet spendable.Create an account
POST /accounts
Creates a new account for an approved entity. The entity must have status: "approved" before accounts can be opened; for any other status the API returns 403 error_auth_permission_denied. Authenticate with a secret API key; a publishable key returns 401 error_auth_credentials_invalid.
The API doesn’t support idempotency keys. An
Idempotency-Key header is ignored, and each successful request creates a new account. For safe retries, always send the same stable display_name for a given account: if the first request succeeded, the retry returns 409 error_duplicate_resource instead of creating a duplicate.Request parameters
The 26-character ULID of the entity to open this account for. The entity must have
status: "approved". Defaults to the authenticating entity when omitted. Required when acting on a child entity. Only a direct child of the authenticating entity is supported. See Managing child entities for details.Currency code for the account. Uppercase and case-sensitive:
usd is rejected. Any code not in Supported currencies returns 422 error_validation_value_not_supported.Human-readable label for the account. 1 to 255 characters. Must be unique per entity: a repeat returns
409 error_duplicate_resource.Response
Returns201 Created with the new account under account and a summary of its effect on the entity under entity_impact. The balance is 0 for both available and current at creation. balance_id is not included; retrieve the account to get it.
Response
Full example
This request setsmeta and creates a stablecoin account.
Response
Returned only when creating an account. Summarizes the effect this account had on the owning entity.
Errors
Example error responses:
Get an account
GET /accounts/{account_id}
Retrieves an existing account by ID, along with its entity, account details, and summary data. Returns 200 OK.
Path parameters
The 26-character ULID of the account to retrieve. An ID that isn’t 26 characters long returns
422 error_validation_invalid_format for accountId. A 26-character ID that matches no account returns 404 error_resource_not_found.Query parameters
The ID of the entity that owns the account. Defaults to the authenticating entity when omitted. Required when acting on a child entity. Only a direct child of the authenticating entity is supported. See Managing child entities for details.
Response
Returns an object underdata with six top-level fields: account, entity, account_details, pinned_status, counterparties_summary, and compliance_status. A deleted account returns 404 error_resource_not_found. If you retrieve an account immediately after creating it, balance_id is set by an asynchronous job and the request can fail with a 5xx; retry it.
This response differs from the account in The Account object and in List accounts:
- It includes
balance_id,deleted, and theconfig.balance_*fields, and has nostatusfield. List accounts omits those fields and addsstatus. metaandsystem_metaare omitted when empty.balanceis summed across the account and its stablecoin child accounts.balance.overdraft_usedis always0.stablecoin_assetsis an array here. It is an object in create responses and isn’t returned by List accounts. Each element is a stablecoin child account, with its ownbalanceandstatus. A child account returns the same response when retrieved by ID, withparent_account_idset to the parent account.
Response
The account. See The Account object for the field-by-field schema, with the differences listed above. It also includes:
The account’s account details records, for example account numbers or wallet addresses. Each element has the shape of The Account Details object, without the
provider field. Empty when none have been provisioned.Placeholder. Every field is a fixed constant and doesn’t reflect the account’s compliance state. Don’t rely on it.
Errors
Example error responses:
Update an account
PATCH /accounts/{account_id}
Updates an existing account. Send at least one updatable field: display_name, meta, config, or status. A request with no updatable fields returns 200 OK and changes nothing. Authenticate with a secret API key; a publishable key returns 401 error_auth_credentials_invalid.
Path parameters
Request parameters
New human-readable label for the account. 1 to 255 characters. Must be unique per entity among active accounts: a duplicate returns
409 error_duplicate_resource. Sending the account’s current name succeeds.Key-value metadata to attach to the account. Must be an object; a non-object returns
422 error_validation_invalid_format.Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
type and currency can’t be changed after creation. The API ignores them, along with any other unrecognized field, and returns 200 OK. Within config, only is_overdraftable and overdraft_limit are applied.Response
Returns200 OK. data.account is the account as it was before this update, so display_name, config, meta, and updated show the old values. balance is not populated by this endpoint and always shows 0, even when the account holds funds. To read the new values or the real balance, retrieve the account. The response can also include stablecoin_assets, system_meta, and parent_account_id when they are set on the account.
Response
changes_applied with each change listed:
Full update response
Errors
Example error responses:
Delete an account
DELETE /accounts/{account_id}
Deletes an account and returns 200 OK with a summary body. A delete is blocked when the account’s available balance is above zero. The check uses posted credits, minus posted debits, minus pending debits. A negative balance, pending credits, and stablecoin sub-account balances aren’t checked. The delete is rejected and the account stays active. The API currently returns 500 error_system_internal_error with a reference ID for this case, not a 400 error_account_balance_not_zero response.
Deleting an account also removes its account details. It doesn’t check or change the account’s cards: a card on the deleted account stays active. Authenticate with a secret API key; a publishable key returns 401 error_auth_credentials_invalid.
Path parameters
Request parameters
Defaults to the authenticating entity when omitted. Required when acting on a child entity. Send it in the JSON request body: a query parameter is ignored, and the request returns
404 error_resource_not_found for the child’s account. See Managing child entities for details.Response
Returns200 OK. data.account is the account as it was before the delete, so deleted is 0 and balance is a legacy number, not a balance object. Deleting the same account again returns 404 error_resource_not_found, as does retrieving or updating it afterwards.
If a cleanup step fails after the account is marked deleted, the API returns
503 but the account stays deleted. Retrieve the account to confirm its state before retrying; a retry returns 404.Response
Placeholder summary of the effect on the owning entity. The values are fixed and don’t reflect the entity’s accounts.
Restoration details. There is no API endpoint to restore an account. To restore one within the restoration window, contact Nuvion support.
Errors
accounts.deleted isn’t emitted when you delete an account, and neither is account_details.deleted for the account details removed with it.List accounts
GET /accounts
Returns a paginated list of accounts for an entity. Returns 200 OK. Authenticate with a secret API key; a publishable key returns 401 error_auth_credentials_invalid. Filter by currency or display_name to narrow the list. The endpoint has no type filter.
Query parameters
The ID of the entity whose accounts to list. Defaults to the authenticating entity when omitted. Required when acting on a child entity. Only a direct child of the authenticating entity is supported. An unknown ID returns
404 error_resource_not_found. See Managing child entities for details.Only accounts in this currency, as a three-character code such as
USD or NGN. Letter case is ignored, so usd and USD return the same accounts. An empty value, a value that isn’t exactly 3 characters, a value with leading or trailing spaces, or a repeated parameter returns 422 error_validation_invalid_format. The API doesn’t check the code against a list of currencies, so an unsupported three-character code returns an empty data array.Only accounts whose
display_name contains this text. The match is partial and ignores letter case, so main matches Main NGN Account. Leading and trailing spaces are removed. Characters such as ., * and ( match literally. Between 1 and 255 characters; an empty, whitespace-only, or longer value returns 422 error_validation_invalid_length.Number of results to return. Between 1 and 100. Defaults to
20. A value outside that range returns 422 error_validation_value_out_of_range.Sort order by creation time. One of
created_asc or created_desc. Defaults to created_asc. Any other value returns 422 error_validation_value_not_supported.Pagination cursor from a previous response. Pass
next_cursor to fetch the next page. Omit for the first page. To page backward, use prev_cursor instead. A malformed value returns 422 error_validation_invalid_format.Pass
previous_cursor from a previous response to fetch the prior page. The prior page’s records are returned in reverse order. See Pagination for details.The list excludes stablecoin child accounts,
capital accounts, and deleted accounts. A type query parameter is ignored and doesn’t filter the results.currency and display_name combine with each other, with entity_id and with pagination: the list returns only the accounts that match every filter you send, and next_cursor pages through the filtered results.
Response
Returns200 OK with the accounts under data.data and pagination state under data.meta. Each item is a list view of the account, not the full Account object:
- It omits
balance_id,deleted,config.balance_next_refresh, andconfig.balance_refresh_interval. - It adds
status, which is alwaysactive. - It includes
balance.posted,balance.outstanding, andoutstanding_breakdown. balanceis summed across the account and its stablecoin child accounts.balance.overdraft_usedis always0.stablecoin_assetsis omitted unless the account has stablecoin balances stored, in which case it is an object keyed by asset. Get an account returns an array instead.
Response
Informational and internal. It echoes the query, plus base filters such as
parent_account_id: null and type: {} that mean “not a capital account”. A currency filter appears as an uppercase string, and a display_name filter appears as {"like": "<text>"}, with special characters escaped by a backslash. Don’t build logic on it. When you page backward with prev_cursor, sort.order is reversed.true whenever a cursor is supplied, even when no records precede it. false on a first-page request.Filter the list
Sendcurrency, display_name, or both. This request returns only the NGN accounts whose name contains main. A filter that matches nothing returns 200 OK with an empty data array.
Errors
Example error responses:
Get account statements
GET /accounts/{account_id}/statements
Retrieves a statement of transactions for an account over a calendar month or a date range within one month. Returns 200 OK.
Path parameters
The 26-character ULID of the account to generate a statement for. An ID that matches no active account returns
404 error_resource_not_found. This includes a malformed ID and a deleted account: closed accounts have no statements.Query parameters
Select the statement period withyear and month, or with start_date and end_date. Don’t send both pairs: the request returns 422 error_validation_invalid_format for request parameters.
The statement month,
1 to 12. Defaults to the current UTC month. A value outside that range returns 422 error_validation_value_out_of_range.When you omit both
year and month, the statement covers the current UTC month to date. When you send both, the statement covers that month, up to the current time for the current month. When you send only one, the other defaults to its current UTC value and the period runs to the current time, so it can span more than one month. For example, year=2025 sent in October 2026 returns October 2025 through the current time. Send both. A period that starts in the future returns 422 error_validation_value_out_of_range for start_date.Start of a custom period, as
YYYY-MM-DD or an ISO 8601 timestamp. A date-only value starts at 00:00:00.000 UTC. Required with end_date. Must not be in the future.End of a custom period, as
YYYY-MM-DD or an ISO 8601 timestamp. A date-only value ends at 23:59:59.999 UTC on that day. Required with start_date. start_date and end_date must fall in the same calendar month, or the request returns 422 error_validation_date_range_month.Number of transactions to return per page. Between 1 and 100. Defaults to
100. A value outside that range, or a non-numeric value, returns 422 error_validation_value_out_of_range.Opaque pagination cursor. Pass
pagination.next_cursor from the previous response to fetch the next page. Omit for the first page. Pagination is forward only. A malformed value returns 422 error_validation_invalid_format.Whether to include transactions that haven’t settled yet. Accepts exactly
true or false. Defaults to false. Any other value, such as 1 or TRUE, returns 422 error_validation_value_not_supported.Defaults to the authenticating entity when omitted. Required when acting on a child entity. See Managing child entities for details.
Response
Returns a statement summary with the transactions for the requested period underdata. Failed transactions aren’t returned and don’t count toward the totals.
Pending transactions haven’t settled yet, so they don’t affect
running_balance or the settled balances totals until they complete. Their totals are reported in pending_credits and pending_debits.Response
Postal address on file for the account holder at the time the statement was generated. If the account holder has no address on file, the request returns
404 error_resource_not_found for address.Summary totals for the statement period. All amounts are in the smallest currency unit.
closing_balance equals opening_balance + total_credits - total_debits - total_fees.Pagination detail for the transaction list. This endpoint returns it at
data.pagination, not data.meta.pagination as other list endpoints do. See Pagination. It is forward only.Request a custom date range
Usestart_date and end_date instead of year and month for a period inside one calendar month. A date-only end_date runs to the end of that day in UTC.
Fetch the next page
Whenpagination.has_next is true, send pagination.next_cursor as cursor and keep every other parameter the same. The balances stay the same on every page, so read them from the first page.
Second page
Validation error example
An unsupportedinclude_pending value, such as 1, returns 422:
422

