Skip to main content
POST
Create bank account
  • BankName is required and must be one of the company’s banks.
  • Name is required.
  • CurrencyCode is required and must be one of the company’s currencies.
  • AccountType must be 1 (Commercial account), 2 (Collateral account), 3 (POS account) or 4 (Credit card account — the company’s own credit card).
  • BranchName, BranchCode, AccountNumber, Iban are optional; their maximum lengths are in the field descriptions, values that exceed them are rejected with 0003.
  • IsDisabled defaults to false when not sent.
  • SharingCode is optional; when sent, it must be one of the user’s sharing codes.

Error codes

Codes this endpoint can return. The general errors that apply to every endpoint (authentication, permissions, request headers, daily limit) are not repeated here.

Authorizations

Authorization
string
header
required

Access token obtained from the Noyax auth service with your API key.

Headers

X-UserID
integer<int32>
required

ID of the Noyax user the request is made on behalf of. Written to the audit fields of created, updated and deleted records.

Required range: x >= 1
X-CompanyID
integer<int32>
required

ID of the company. The user must be assigned to this company. All reads and writes are limited to this company.

Required range: x >= 1
X-PeriodID
integer<int32>

ID of the accounting period. Optional for customer endpoints; if sent, it is written to created records.

Required range: x >= 1

Body

BankName
null | string

Required. Bank name from GET /api/v1/finance/banks.

Example:

"İŞ BANKASI"

Name
null | string

Required. Account name, unique within the company. At most 255 characters.

Example:

"İş Bankası TRY Hesabı"

BranchName
null | string

Branch name. At most 50 characters.

BranchCode
null | string

Branch code. At most 10 characters.

AccountNumber
null | string

Account number. At most 20 characters.

Iban
null | string

IBAN. At most 50 characters.

AccountType
integer<int32>

Required. 1: Commercial account, 2: Collateral account, 3: POS account, 4: Credit card account (the company's own credit card).

Example:

1

CurrencyCode
null | string

Required. Currency code from GET /api/v1/definitions/currencies.

Example:

"TRY"

IsDisabled
boolean

Whether the account is disabled (not used for new transactions).

Example:

false

SharingCode
null | string

Sharing code that limits who can see the account. Empty means visible to everyone; otherwise it must be one of the user's sharing codes.

Response

Created

Success
boolean
required

Whether the operation succeeded.

Example:

true

ResultCode
string
required

"0000" on success. On failure, the code of the first error; all errors are listed in Errors.

Example:

"0000"

Data
object
required
Message
null | string

Error message when Success is false. Messages of all errors are joined into a single text.