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

write Confirm

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

Parameters: mark_voucher_paid
NameTypeDescription
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
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"
Python
result = client.call("sevdesk", "mark_voucher_paid", {"voucher_id":"voucher_8c41d2","payment_account_id":"payment_account_8c41d2"})
Node.js
const result = await cotlet.call('sevdesk', 'mark_voucher_paid', {"voucher_id":"voucher_8c41d2","payment_account_id":"payment_account_8c41d2"});
CLI
cotlet call sevdesk mark_voucher_paid --data '{"voucher_id":"voucher_8c41d2","payment_account_id":"payment_account_8c41d2"}'

Example response

JSON

{
  "voucher_id": "77120344",
  "status": "paid",
  "transaction_id": "90311207",
  "booked_amount": 39,
  "currency": "EUR",
  "payment_account": "Business account"
}

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.