Skip to main content
POST
/
account-details
Creates new account details for the authenticated entity.
curl --request POST \
  --url https://api.nuvion.tech/account-details \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F5",
  "config": {
    "outflow_enabled": true,
    "inflow_enabled": true,
    "outflow_allowed_counterparties": [
      "01HJ5G6R7MXW5ZK2QD6YA8N9F6"
    ],
    "inflow_allowed_counterparties": [
      "01HJ5G6R7MXW5ZK2QD6YA8N9F7"
    ]
  },
  "terminate_after": 365,
  "provider_id": "primary_provider"
}
'
{
  "message": "Account detail created successfully",
  "status": 201,
  "data": {
    "account_details": {
      "id": "01HJ5G6R7MXW5ZK2QD6YA8N9F3",
      "entity_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F4",
      "account_id": "01HJ5G6R7MXW5ZK2QD6YA8N9F5",
      "account_number": "1234567890",
      "routing_number": "987654321",
      "description": "Primary account details",
      "issuer": {
        "name": "Example Bank",
        "code": "EXBNK",
        "address": "123 Banking St, Finance City",
        "meta": {}
      },
      "config": {
        "outflow_enabled": true,
        "inflow_enabled": true,
        "outflow_allowed_counterparties": [],
        "inflow_allowed_counterparties": []
      },
      "status": "active",
      "terminate_after": 365,
      "created": 1693584000000,
      "updated": 1693584000000
    }
  }
}

Headers

Authorization
string
required

Authorization header: Bearer {jwt or Secretkey}

Body

application/json
account_id
string
required

The unique identifier (ULID) of the account to associate with these details

config
object

Configuration settings for the account details

terminate_after
number

Number of days after which the account details should be terminated

provider_id
string

Identifier for the provider to use for account issuance

asset_type
string

Specify stablecoin or fiat. This defaults to fiat.`

chain
string

Specify eth or sol for Ethereum or Solana wallets when asset_type is stablecoin.

Response

Created successfully

message
string
required

A descriptive message indicating the result of the operation

status
string
required

The status of the API operation (successful, error, failed, pending)

data
object
required

The data returned from the operation