Create a bank account
Creates a new bank account.
bank, slug, holder_name and iban are required. The iban must not already belong to another account — including a soft-deleted one — otherwise the request is rejected with bank_account_100. The slug is unique across all accounts.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a bank account create or full update request.
The identifier of the bank the account belongs to.
The unique reference of the account.
The name of the account holder.
The IBAN of the account. Must not already belong to another account, including a soft-deleted one.
Whether the account is active. Defaults to true when omitted.
trueThe position used to order accounts. Defaults to 0 when omitted.
0A free-text note.
The created bank account.
A bank transfer account.
The unique identifier of the bank account.
The identifier of the bank the account belongs to.
The unique reference of the account.
The name of the account holder.
The IBAN of the account. Unique across all accounts.
Whether the account is active. A soft-deleted account has this set to false.
The position used to order accounts.
A free-text note, or null when none is stored.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The request is well-formed but an account with the given IBAN already exists (bank_account_100). Both create and update raise this when the IBAN would collide with another account, including a soft-deleted one.
POST /api/v1/remote/1/bank_accounts/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"bank": 12,
"slug": "example-bank-main",
"holder_name": "Example Company Inc.",
"iban": "TR330006100519786457841326"
}{
"pk": 7,
"bank": 12,
"slug": "example-bank-main",
"holder_name": "Example Company Inc.",
"iban": "TR330006100519786457841326",
"is_active": true,
"sort_order": 0,
"description": "Main collection account"
}Last updated
Was this helpful?

