Skip to main content
Accounts hold balances for an entity. Each account is denominated in a single currency. An entity must have approved status before accounts can be created for them.

Endpoints


The Account object

string
Unique account identifier.
string
The ID of the entity this account belongs to.
string
Account type. One of checking, debit, operational, or safeguard.
string
Currency code the account is denominated in. Uppercase and case-sensitive. See Supported currencies for the accepted values.
string
Human-readable label for the account. 1 to 255 characters, unique per entity.
string
Nuvion internal bank account number used for routing. Treat this as read-only. May be absent immediately after creation.
object
Current balance state of the account. All amounts are in the smallest currency unit (e.g. cents for USD).
string
Unique identifier for the account’s underlying balance record. Absent from the create response; returned when you retrieve the account.
object
Account-level configuration.
object
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.
boolean
Whether this account is excluded from maintenance fees.
object
Internal metadata reserved for Nuvion. Not settable via the API.
object
Set of key-value pairs for storing additional platform-defined data.
number
0 if the account is active. Non-zero if the account has been deleted.
number
Unix timestamp in milliseconds when the account was created.
number
Unix timestamp in milliseconds when the account was last updated.
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.
To create a stablecoin account, pass one of USC, UST, RLD as your currency.

Request parameters

string
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.
string
required
Account type. One of checking, debit, operational, or safeguard.
string
required
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.
string
required
Human-readable label for the account. 1 to 255 characters. Must be unique per entity: a repeat returns 409 error_duplicate_resource.
object
Key-value metadata to attach to the account. Values should be strings.

Response

Returns 201 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 sets meta and creates a stablecoin account.
Response
object
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

string
required
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

string
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 under data 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 the config.balance_* fields, and has no status field. List accounts omits those fields and adds status.
  • meta and system_meta are omitted when empty.
  • balance is summed across the account and its stablecoin child accounts. balance.overdraft_used is always 0.
  • stablecoin_assets is 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 own balance and status. A child account returns the same response when retrieved by ID, with parent_account_id set to the parent account.
Response
object
The account. See The Account object for the field-by-field schema, with the differences listed above. It also includes:
object
The entity that owns the account.
array
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.
object
Whether the account is pinned.
object
Counts of counterparties linked to the account.
object
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

string
required
The ID of the account to update.

Request parameters

string
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.
object
Key-value metadata to attach to the account. Must be an object; a non-object returns 422 error_validation_invalid_format.
object
Account-level configuration to change.
string
Account status. One of active or inactive.
string
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

Returns 200 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
A request that sets every updatable field returns changes_applied with each change listed:
Full update response
object
Summary of what the request changed.

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

string
required
The ID of the account to delete.

Request parameters

string
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

Returns 200 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
Several response fields are fixed placeholder values, not computed from the account. Don’t base logic on entity_impact, cascade_deletions.pinned_accounts, cascade_deletions.transactions_affected, cascade_deletions.pending_transactions_cancelled, or reversal_info.
object
The deleted account, as it was before the delete.
object
Placeholder summary of the effect on the owning entity. The values are fixed and don’t reflect the entity’s accounts.
object
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.
Example error responses:

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

string
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.
string
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.
string
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.
integer
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.
string
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.
string
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.
string
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

Returns 200 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, and config.balance_refresh_interval.
  • It adds status, which is always active.
  • It includes balance.posted, balance.outstanding, and outstanding_breakdown.
  • balance is summed across the account and its stablecoin child accounts. balance.overdraft_used is always 0.
  • stablecoin_assets is 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
object
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.
boolean
true whenever a cursor is supplied, even when no records precede it. false on a first-page request.

Filter the list

Send currency, 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

string
required
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 with year 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.
integer
The statement year, for example 2026. Defaults to the current UTC year.
integer
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.
string
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.
string
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.
integer
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.
string
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.
string
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.
string
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 under data. 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
string
The ID of the account this statement covers.
string
Name on the account at the time the statement was generated.
string
ISO 4217 currency code of the account.
string
Nuvion bank account number for the account.
object
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.
string
ISO 8601 timestamp of when the statement was generated.
object
The date range the statement covers.
object
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.
array
Transactions that occurred in the statement period, ordered oldest to newest.
object
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

Use start_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

When pagination.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 unsupported include_pending value, such as 1, returns 422:
422

Errors