Cancel invoice

Cancel an unpaid invoice by creating a cancellation invoice (Stornorechnung).

POST https://cotlet.dev/api/v1/sevdesk/invoices/{invoice_id}/cancel

write Confirm

Cancels an invoice that is open or due, like Rechnung stornieren. sevdesk creates a cancellation invoice that refers to the original, sets it to paid and sets the original to cancelled. The cancellation invoice takes the next free number of your invoice number range. A paid invoice cannot be cancelled this way; it needs a credit note. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: cancel_invoice
NameTypeDescription
invoice_id string required string Invoice ID from list_invoices.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/sevdesk/invoices/invoice_8c41d2/cancel \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("sevdesk", "cancel_invoice", {"invoice_id":"invoice_8c41d2"})
Node.js
const result = await cotlet.call('sevdesk', 'cancel_invoice', {"invoice_id":"invoice_8c41d2"});
CLI
cotlet call sevdesk cancel_invoice --data '{"invoice_id":"invoice_8c41d2"}'

Example response

JSON

{
  "invoice_id": "41872600",
  "invoice_number": "RE-1040",
  "status": "cancelled",
  "cancellation_invoice_id": "41873244",
  "cancellation_invoice_number": "RE-1044"
}

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.