Fiat

Create a fiat account

Sets up external bank account object for the user through the configured default provider. Requires the user to already be KYC'ed.

post/v1/users/{user_id}/fiat/accounts

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/v1/users/{user_id}/fiat/accounts
  • Auth
    HTTP basic

Path parameters

user_idstring required

The ID of the user to create the fiat account for

Headers

privy-app-idstring required

ID of your Privy app.

Request body

provider'bridge' | 'bridge-sandbox' required

Valid set of onramp providers

account_owner_namestring required
bank_namestring
currency'usd' | 'eur' required

Supported fiat currencies.

first_namestring
last_namestring

Example request

{
  "provider": "bridge-sandbox",
  "account_owner_name": "John Doe",
  "currency": "usd",
  "bank_name": "Chase",
  "account": {
    "account_number": "1234567899",
    "routing_number": "121212121",
    "checking_or_savings": "checking"
  },
  "address": {
    "street_line_1": "123 Washington St",
    "street_line_2": "Apt 2F",
    "city": "New York",
    "state": "NY",
    "postal_code": "10001",
    "country": "USA"
  },
  "first_name": "John",
  "last_name": "Doe"
}

Response

Created fiat account details

idstring required
bank_namestring
currencystring required
account_typestring required
last_4string

Example response

{
  "id": "a068d2dd-743a-4011-9b62-8ad33cc7a7be",
  "bank_name": "Chase",
  "currency": "usd",
  "account_type": "us",
  "last_4": "7899"
}

Changes

No recorded changes to this operation across all 60 revisions of this API.