POST
/
accounting
/
payments
curl --request POST \
  --url https://api.maesn.dev/accounting/payments \
  --header 'Content-Type: application/json' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "currency": "EUR",
  "journalCode": "journal code",
  "paymentType": "payment type",
  "paymentLines": [
    {
      "amount": "100",
      "accountId": "account id",
      "description": "description",
      "invoiceId": "invoice id"
    }
  ]
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "payment id",
    "currency": "EUR",
    "createdDate": "2021-01-01",
    "journalCode": "journal code",
    "updatedDate": "2021-01-01",
    "paymentType": "payment type",
    "paymentLines": [
      {
        "amount": "100",
        "accountId": "account id",
        "description": "description",
        "invoiceId": "invoice id"
      }
    ]
  }
}

Field support per integration

Headers

X-API-KEY
string
required

API key

Example:

"example value"

X-ACCOUNT-KEY
string
required

Account key

Example:

"example value"

Query Parameters

companyId
string

Body

application/json

Response

200 - application/json

The response is of type object.