Upload receipt
Add a receipt or invoice document to Bokio as an upload.
POST https://cotlet.dev/api/v1/bokio/receipts
write
Uploads one PDF, JPEG or PNG to the Uppladdat page. Without a description Bokio uses the file name. The file waits there to be booked, reaches no one and can be deleted in Bokio, so upload_receipt runs without asking first.
Parameters
| Name | Type | Description |
|---|---|---|
| file_url string required | string | Address of the file to upload: PDF, JPEG or PNG. |
| description string | string | Shown in the list. Default: the file name. |
| journal_entry_id string | string | Journal entry ID to attach the upload to. |
Request
curl -X POST https://cotlet.dev/api/v1/bokio/receipts \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file_url":"https://files.example.com/receipts/clas-ohlson-2026-10-09.jpg","description":"Clas Ohlson 2026-10-09"}' result = client.call("bokio", "upload_receipt", {"file_url":"https://files.example.com/receipts/clas-ohlson-2026-10-09.jpg","description":"Clas Ohlson 2026-10-09"}) const result = await cotlet.call('bokio', 'upload_receipt', {"file_url":"https://files.example.com/receipts/clas-ohlson-2026-10-09.jpg","description":"Clas Ohlson 2026-10-09"}); cotlet call bokio upload_receipt --data '{"file_url":"https://files.example.com/receipts/clas-ohlson-2026-10-09.jpg","description":"Clas Ohlson 2026-10-09"}' Example response
{
"upload_id": "d41c8e07-5a2b-4f93-8c60-3e1b9a7d2f54",
"description": "Clas Ohlson 2026-10-09",
"content_type": "image/jpeg",
"journal_entry_id": null
}