Skip to main content
GET
/
accounting
/
paymentTerms
cURL
curl --request GET \
  --url https://api.maesn.dev/accounting/paymentTerms \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": [
    {
      "id": "08d52c49-b90c-4328-b1ec-623df74f904a",
      "code": "1",
      "createdDate": "2021-01-01T00:00:00Z",
      "description": "31 dagen",
      "discountDays": 10,
      "discountDays2": 14,
      "discountPercentage": 5,
      "discountPercentage2": 3,
      "discountPeriods": [
        {
          "invoiceRange": "Invoice issuance range up to day 5 of the month",
          "discountDeadline": "Day 15 of the current month",
          "discountDeadline2": "Day 25 of the current month",
          "paymentDeadline": "Day 30 of the current month"
        }
      ],
      "dueType": "DUE_IN_DAYS",
      "name": "31 DAYS",
      "paymentDays": 31,
      "paymentMethod": "BANK_TRANSFER",
      "updatedDate": "2021-01-01T00:00:00Z"
    }
  ]
}

Field support per integration

This endpoint is currently available only during the pilot phase of DATEV Rechnungswesen. For details, see the Pilot phase section
The query parameter fiscalYear is required and must be a valid year.
If you’re not using the Interactive Authentication Flow, make sure the query parameter companyId is correctly populated.
Supported filters: noneSupport pagination: trueSupport rawData: true
Supported Response Fields:
id
string
description
string
discountDays
number
Number of days to pay within to receive the discountPercentage. Used when dueType is DUE_IN_DAYS.
discountDays2
number
Number of days to pay within to receive the discountPercentage2. Used when dueType is DUE_IN_DAYS.
discountPercentage
number
discountPercentage2
number
discountPeriods
DiscountPeriod[]
Array of discount periods. Used when dueType is DUE_AS_PERIOD.
dueType
enum
Available options: DUE_IN_DAYS, DUE_AS_PERIOD
paymentDays
number
If you’re not using the Interactive Authentication Flow, make sure the query parameter companyId is correctly populated. You can obtain this value by using the GET Companies endpoint available under the Authentication section.
Supported filters:
  • lastModifiedAt
Support pagination: trueSupport rawData: true
Supported Response Fields:
id
string
code
string
createdDate
string
description
string
discountDays
number
discountPercentage
number
dueType
enum
Available options: DUE_IN_DAYS
paymentDays
number
paymentMethod
enum
Available options: CASH, BANK_TRANSFER, PAYMENT_SERVICE_PROVIDER, AUTOMATIC_BANK_WITHDRAWAL
updatedDate
string

Headers

X-API-KEY
string
required

API key

Example:

"example value"

X-ACCOUNT-KEY
string
required

Account key

Example:

"example value"

Query Parameters

page
number
limit
enum<number>
Available options:
5,
10,
20,
50,
100
companyId
string
environmentName
string
fiscalYear
number
lastModifiedAt
number
rawData
boolean

Response

200 - application/json
meta
object
data
object[]
I