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

Parameters: upload_receipt
NameTypeDescription
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
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"}'
Python
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"})
Node.js
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"});
CLI
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

JSON

{
  "upload_id": "d41c8e07-5a2b-4f93-8c60-3e1b9a7d2f54",
  "description": "Clas Ohlson 2026-10-09",
  "content_type": "image/jpeg",
  "journal_entry_id": null
}

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.