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 https://cotlet.dev/api/v1/sevdesk/payment-accounts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("sevdesk", "list_payment_accounts") const result = await cotlet.call('sevdesk', 'list_payment_accounts'); cotlet call sevdesk list_payment_accounts Example response
{
"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
}
]
}