Upload an invoice PDF (or similar) for an order.
If this is the first invoice submitted for the order and the shop is configured to send invoices by letter post, this call may also trigger Komfortkasse to send the invoice to the customer as a physical letter. Do not call this multiple times for the same invoiceNumber — repeat uploads of an existing invoice file are silently ignored, but you should still treat the call as non-idempotent for triggering side effects.
POST
/order/{orderNumber}/invoice/{invoiceNumber}
curl \
--request POST 'https://ssl.komfortkasse.eu/api/v2/order/123456/invoice/100072533' \
--header "X-Komfortkasse-API-Key: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (400)
{
"error": "Invalid request"
}
Response examples (401)
{
"error": "API Key missing"
}
Response examples (404)
{
"error": "Order not found"
}