Send invoice to KSeF
Send one invoice to the Polish KSeF e-invoicing system.
POST https://cotlet.dev/api/v1/fakturownia/invoices/{invoice_id}/to-ksef
write Confirm
Sends the invoice to KSeF and returns processing; the KSeF number appears after processing, so read it with get_ksef_status. KSeF must already be connected in the account, and your user needs send permission. Proformas are not eligible. Invoices sent after their issue day go offline24 and cannot be edited. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices. |
Request
curl -X POST https://cotlet.dev/api/v1/fakturownia/invoices/5120/to-ksef \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("fakturownia", "send_invoice_to_ksef", {"invoice_id":5120}) const result = await cotlet.call('fakturownia', 'send_invoice_to_ksef', {"invoice_id":5120}); cotlet call fakturownia send_invoice_to_ksef --data '{"invoice_id":5120}' Example response
{
"invoice_id": 5120,
"gov_status": "processing",
"gov_id": null
}