Reference
Contract suggestions
GET/api/v1/contract-suggestionsList contract suggestions
Purchase contracts nxva.base suggests from recurring bank debits, as on /finanzen/vertraege?richtung=vorschlaege: a supplier paid monthly (at least 3 debits, 25-35 days apart) or yearly (2 debits about a year apart) in about the same amount, with no active purchase contract for that interval yet. Salaries and the like are never suggested; a dismissed or confirmed series stays away. Each item has a key, supplier, interval, latest gross amount in cents, first and last debit day, category, VAT and the number of debits. Read only: creating the contract from a suggestion is a person's decision on the page. finance.manage only.scope finance:read
Response 200
| items[] | object[] |
| items[].key | string |
| items[].supplier | string |
| items[].company_id | string | null |
| items[].interval | one of monthly, yearly |
| items[].latest_gross_cents | integer |
| items[].net_cents | integer |
| items[].vat_rate_bp | integer |
| items[].reverse_charge | boolean |
| items[].first_date | string |
| items[].last_date | string |
| items[].category_key | string | null |
| items[].transaction_count | integer |
| items[].accounts | string[] |
Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"supplier": {
"type": "string"
},
"company_id": {
"type": [
"string",
"null"
]
},
"interval": {
"type": "string",
"enum": [
"monthly",
"yearly"
]
},
"latest_gross_cents": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"net_cents": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"vat_rate_bp": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"reverse_charge": {
"type": "boolean"
},
"first_date": {
"type": "string"
},
"last_date": {
"type": "string"
},
"category_key": {
"type": [
"string",
"null"
]
},
"transaction_count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"accounts": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"key",
"supplier",
"company_id",
"interval",
"latest_gross_cents",
"net_cents",
"vat_rate_bp",
"reverse_charge",
"first_date",
"last_date",
"category_key",
"transaction_count",
"accounts"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.