Skip to main content
POST

Authorizations

Authorization
string
header
required

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

Headers

Operation-Id
string

Your unique id for this request, at most 128 characters. Optional. With it, repeating the request returns the first answer.

Path Parameters

memberId
string
required

The customer's memberId, as returned when the customer was created or imported. At most 36 characters.

Maximum string length: 36

Body

application/json

The account to create.

The account to create for a customer.

isActive
boolean
required

Whether the account is active from the start. An inactive account accepts no transactions until it is activated. Left out, it counts as false.

Example:

true

isAllowedToSpend
boolean
required

Whether the bonus on the account can be spent in payments. Send false for an account type that does not allow spending. Left out, it counts as false.

Example:

true

accountType
string | null

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

Example:

"Default"

externalId
string | null

Your own id for the account, at most 60 characters. Optional. When an account with this id exists, that account is returned and none is created.

Maximum string length: 60
Example:

"ACC-100234"

Response

The id of the customer's account: the new one, or the one that existed already. The memberId is not checked, so an account is created for an unknown customer as well.

The account of a customer.

accountId
integer<int64>
required

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

Example:

48213

Last modified on August 10, 2026