POST
/
accounting
/
transactions
curl --request POST \
  --url https://api.maesn.dev/accounting/transactions \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --form 'files=[
  null
]' \
  --form 'transaction={
  "accountId": "1",
  "accountNumber": "1",
  "amount": 100,
  "bookingDate": "2021-01-01T00:00:00Z",
  "contact": "eaa28f49-6028-4b6e-bb12-d8f6278073fc",
  "currency": "AED",
  "feeAmount": 123,
  "feePostingCategory": "Fee posting category",
  "feeTaxRatePercentage": 123,
  "purpose": "Fee payment",
  "reference": "Reference",
  "status": "CREATED",
  "taxRatePercentage": 19,
  "type": "RECEIVE",
  "valueDate": "2021-01-01T00:00:00Z"
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "123456",
    "accountId": "1",
    "accountNumber": "1234",
    "amount": 100,
    "bookingDate": "2021-01-01T00:00:00Z",
    "contact": "eaa28f49-6028-4b6e-bb12-d8f6278073fc",
    "currency": "AED",
    "feeAmount": 123,
    "feePostingCategory": "Fee posting category",
    "feeTaxRatePercentage": 123,
    "files": [
      "file1.pdf"
    ],
    "purpose": "Fee payment",
    "reference": "Reference",
    "status": "CREATED",
    "taskId": "ADB4457839PXTC2220",
    "taxRatePercentage": 19,
    "type": "RECEIVE",
    "valueDate": "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

companyId
string

Body

multipart/form-data
files
file[]

Array of files to upload

transaction
object

Response

200 - application/json
meta
object
data
object