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",
  "importType": "CSV",
  "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"
  }
}

Field support per integration

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Query Parameters

companyId
string
environmentName
string

Body

application/json

Response

200 - application/json

The response is of type object.