Skip to main content
POST
Create an account

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

application/json

The account to create.

An account to create under an id of your own.

externalId
string
required

Your own id for the account, unique among all accounts. At most 60 characters.

Required string length: 1 - 60
Example:

"ACC-100234"

isActive
boolean | null
default:true

Whether the account is active from the start. An inactive account accepts no transactions until it is activated. Default true.

Example:

true

isAllowedToSpend
boolean | null
default:true

Whether the bonus on the account can be spent in payments. Default true; send false for an account type that does not allow spending.

Example:

true

accountType
string | null

The name of the account type, as Lobyco configured it for your environment. At most 32 characters. Can be left out when the environment has exactly one account type.

Maximum string length: 32
Example:

"Default"

Response

The account was created. accountId is the id the other account calls take.

The account that was created.

accountId
integer<int64>
required

The id of the new account. The calls that take an accountId or a toAccountId use it.

Example:

48213

Last modified on August 10, 2026