POST
/
v1
/
businesses
/
{businessId}
/
custom-accounts
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/custom-accounts/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "external_id": "ww9wwLgkrbU3jkg3J4J7ckBR3zKQV6sLPQevK",
  "mask": "4321",
  "account_name": "My custom account",
  "institution_name": "My custom account institution",
  "account_type": "DEPOSITORY",
  "account_subtype": "checking"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "external_id": "ww9wwLgkrbU3jkg3J4J7ckBR3zKQV6sLPQevK",
  "mask": "4321",
  "account_name": "My custom account",
  "institution_name": "My custom account institution",
  "account_type": "DEPOSITORY",
  "account_subtype": "checking",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "archived_at": "2023-11-07T05:31:56Z",
  "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to create custom account for.

Body

application/json
external_id
string

Unique ID of the custom account in an external system for linking and idempotency.

Example:

"ww9wwLgkrbU3jkg3J4J7ckBR3zKQV6sLPQevK"

mask
string

Last 4 digits of the custom account number

Example:

"4321"

account_name
string

Name of the custom account

Example:

"My custom account"

institution_name
string

Name of the institution for the custom account

Example:

"My custom account institution"

account_type
string | null

The type of the custom account

Example:

"DEPOSITORY"

account_subtype
string | null

The subtype of the custom account

Example:

"checking"

Response

200
application/json
id
string

Unique ID for the custom account

external_id
string

Unique ID of the custom account in an external system for linking and idempotency.

Example:

"ww9wwLgkrbU3jkg3J4J7ckBR3zKQV6sLPQevK"

mask
string | null

Last 4 digits of the custom account number

Example:

"4321"

account_name
string

Name of the account

Example:

"My custom account"

institution_name
string

Name of the institution for the custom account

Example:

"My custom account institution"

account_type
string | null

The type of the custom account

Example:

"DEPOSITORY"

account_subtype
string | null

The subtype of the custom account

Example:

"checking"

created_at
string | null

Timestamp of when the custom account was created

updated_at
string | null

Timestamp of when the custom account was last created

archived_at
string | null

Timestamp of when the custom account was archived

ledger_account_id
string | null

The ID of the ledger account associated with the custom account