POST
/
accounting
/
accounts
curl --request POST \
  --url https://api.maesn.dev/accounting/accounts \
  --header 'Content-Type: application/json' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "accountNumber": "account number 1",
  "accountSystem": "Account System 1",
  "balance": "100",
  "bankName": "Bank Name 1",
  "bic": "XXXXDE00",
  "class": "ASSET",
  "code": "code 1",
  "currency": "EUR",
  "description": "Business Savings Account",
  "iban": "DE00000000000000000000",
  "name": "bank account name",
  "parentAccountId": "Parent account id",
  "status": "ACTIVE",
  "type": "BANK"
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "1",
    "accountNumber": "account number 1",
    "accountSystem": "account system 1",
    "balance": 100,
    "bankName": "bank name 1",
    "bic": "XXXXDE00",
    "class": "ASSET",
    "code": "code 1",
    "currency": "EUR",
    "description": "Business Savings Account",
    "iban": "DE00000000000000000000",
    "name": "bank account name",
    "parentAccountId": "Parent account id",
    "status": "ACTIVE",
    "type": "BANK",
    "updatedDate": "2021-01-01T00:00:00Z"
  }
}

Test Api token:

663222ee

Test Account token:

85b30b51

Field support per integration

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Query Parameters

environmentName
string
companyId
string

Body

application/json
name
string
required
Example:

"bank account name"

accountNumber
string
Example:

"account number 1"

accountSystem
string
Example:

"Account System 1"

balance
number
Example:

"100"

bankName
string
Example:

"Bank Name 1"

bic
string
Example:

"XXXXDE00"

class
enum<string>
Available options:
ASSET,
EQUITY,
EXPENSE,
LIABILITY,
REVENUE
Example:

"ASSET"

code
string
Example:

"code 1"

currency
enum<string>
Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYR,
BZD,
CAD,
CDF,
CHF,
CLP,
CNY,
COP,
CRC,
CUC,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EEK,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GQE,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LTL,
LVL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZM,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VEB,
VND,
VUV,
WST,
XAF,
XCD,
XDR,
XOF,
XPF,
YER,
ZAR,
ZMK,
ZWR
Example:

"EUR"

description
string
Example:

"Business Savings Account"

iban
string
Example:

"DE00000000000000000000"

parentAccountId
string
Example:

"Parent account id"

status
enum<string>
Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

type
enum<string>
Available options:
PAYMENT_PROVIDER,
BANK,
CURRENT,
CURRLIAB,
DEPRECIATN,
DIRECTCOSTS,
EQUITY,
EXPENSE,
FIXED,
INVENTORY,
LIABILITY,
NONCURRENT,
OTHERINCOME,
OVERHEADS,
PREPAYMENT,
REVENUE,
SALES,
TERMLIAB
Example:

"BANK"

Response

200 - application/json
meta
object
data
object