Mark receipt as paid
Mark a receipt as paid, linked to a bank transaction or booked on a payment account.
POST https://cotlet.dev/api/v1/sevdesk/payment-accounts/{payment_account_id}/vouchers/{voucher_id}/paid/mark
Marks a receipt as paid like Als bezahlt markieren. With transaction_id the receipt is linked to that bank transaction, which becomes booked. Without it the payment is booked on the account with paid_on as the payment date, which suits a Verrechnungskonto. Only a receipt in status unpaid can be marked. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| voucher_id string required | string | Receipt (Beleg) ID from list_vouchers or upload_receipt. |
| payment_account_id string required | string | Payment account ID from list_payment_accounts. |
| transaction_id string | string | Bank transaction from list_bank_transactions to link the receipt to. |
| paid_on date | date | Payment date when there is no transaction. Default: today. |
Request
curl -X POST https://cotlet.dev/api/v1/sevdesk/payment-accounts/payment_account_8c41d2/vouchers/voucher_8c41d2/paid/mark \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("sevdesk", "mark_voucher_paid", {"voucher_id":"voucher_8c41d2","payment_account_id":"payment_account_8c41d2"}) const result = await cotlet.call('sevdesk', 'mark_voucher_paid', {"voucher_id":"voucher_8c41d2","payment_account_id":"payment_account_8c41d2"}); cotlet call sevdesk mark_voucher_paid --data '{"voucher_id":"voucher_8c41d2","payment_account_id":"payment_account_8c41d2"}' Example response
{
"voucher_id": "77120344",
"status": "paid",
"transaction_id": "90311207",
"booked_amount": 39,
"currency": "EUR",
"payment_account": "Business account"
}