List payment accounts

Your payment accounts (Zahlungskonten) with type and which one is the default.

GET https://cotlet.dev/api/v1/sevdesk/payment-accounts

read

Lists the accounts of Einstellungen > Buchhaltung > Zahlungskonten. Type online is a connected bank account, import is a bank account filled from a CSV file and clearing is a Verrechnungskonto, an accounting helper account with no real bank behind it. default is the account sevdesk shows first when you book a payment.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/sevdesk/payment-accounts \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("sevdesk", "list_payment_accounts")
Node.js
const result = await cotlet.call('sevdesk', 'list_payment_accounts');
CLI
cotlet call sevdesk list_payment_accounts

Example response

JSON

{
  "payment_accounts": [
    {
      "payment_account_id": "5120031",
      "name": "Business account",
      "type": "online",
      "is_default": true
    },
    {
      "payment_account_id": "5120032",
      "name": "PayPal",
      "type": "import",
      "is_default": false
    },
    {
      "payment_account_id": "5120033",
      "name": "Verrechnungskonto",
      "type": "clearing",
      "is_default": false
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.