Skip to main content
POST
/
bankaccounts
Create bank account
curl --request POST \
  --url https://api.truust.io/2.0/bankaccounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": 7485,
  "name": "My bank account",
  "type": "IBAN",
  "number": "ES1300812944953951475955",
  "bic": "CAIXESBBXXX"
}
'
{
  "id": 123,
  "self": "<string>",
  "uuid": "<string>",
  "type": "<string>",
  "name": "<string>",
  "number": "<string>",
  "bic": "<string>",
  "tag": "<string>",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "connections": {}
}

Authorizations

Authorization
string
header
required

Use your account's Secret Key as the Bearer token.

Body

application/json
customer_id
integer
required

Customer ID to assign the bank account to. Required unless customer_type is source.

Example:

7485

name
string
required

Account holder name.

Maximum string length: 255
Example:

"My bank account"

type
enum<string>
required

Bank account type. Use IBAN for SEPA accounts, OTHER for other types.

Available options:
IBAN,
OTHER
Example:

"IBAN"

number
string
required

Bank account number (IBAN or other format).

Example:

"ES1300812944953951475955"

bic
string
required

BIC/SWIFT code.

Maximum string length: 11
Example:

"CAIXESBBXXX"

customer_type
enum<string>

Pass source to register a bank account for the authenticated account instead of a customer.

Available options:
source
iban
string

IBAN (alternative field to number for SEPA accounts).

Example:

"ES9121000418450200051332"

tag
string
Maximum string length: 50
metadata
object

Response

Bank account created

id
integer
self
string
uuid
string
type
string

Account type (e.g. IBAN, ACCOUNT).

name
string | null

Account holder name.

number
string

Masked account number or IBAN.

bic
string | null
tag
string | null
metadata
object
created_at
string<date-time> | null
connections
object

Hypermedia links to related resources.