Upload receipts

Send PDF or image receipts into the review queue. OCR runs on the server.

Open dashboard

1 Endpoint

POST /api/v1/uploads/receipt

Requires scope expenses:write. Accepts multipart form-data (recommended) or raw binary with Content-Type application/pdf or image/*.

2 Multipart fields

FieldRequiredNotes
file / files / dataYesPDF or image
note / reason / descriptionNoFree-text note
owner_email / owner_idNoAttribute to a member
category_codeNoHint
external_idNoIdempotency / correlation

3 Example

curl -X POST "https://book-keeping.codefusion.com.lk/api/v1/uploads/receipt" \
  -H "Authorization: Bearer bk_live_YOUR_KEY" \
  -F "file=@./receipt.pdf;type=application/pdf" \
  -F "owner_email=user@example.com" \
  -F "note=From n8n"

4 Status codes

CodeMeaning
201All files OK
207Partial success
401Missing / invalid API key
403Missing expenses:write
409All duplicates
422Validation / OCR failures