Modules

Calendar

Certificates

CollectiveAgreements

Company Forms

Company Forms Management

Contacts

Contracts

Customer Assets

Equipment

Expenses

Job Checklists

Job Invoices

Jobs

Labour Actions

Library

Locates

Materials

Messages

Purchase Orders

Safety

Schedule

Service Quotes/Invoices

Service Requests

Services

Settings

TimeLogs

Users

Other

ReceiptImage Resource
In Expenses Module


Endpoints

Endpoints URI Access Control Description
predict POST /api/ReceiptImage/predict Allowed with an active employment connection

Extracts key data from a receipt image using AI—vendor, amounts, dates, expense category, payment method, and similar fields. Use the receipt record id from a prior upload. Subject to monthly usage limits per subscription plan.

Required parameters:

  • id: (int) ID of the receipt record

Errors: Returns an array with a message if id is missing, the record or file is not found, the file is 32MB or larger, the monthly AI limit is exceeded, or the service is unavailable.

save POST /api/ReceiptImage/save Admin or Module WRITE
rotate GET /api/ReceiptImage/rotate Endpoint level permissions

Rotates a receipt image 90° left or right. Also updates any draw layers attached to the image.

Required parameters:

  • id: (int) ID of the receipt image record
  • rotate_direction: (string) left or right

Errors: Returns an array with a message if id is missing.

getFileContentFromRecord GET /api/ReceiptImage/getFileContentFromRecord Endpoint level permissions
resolveLocalPathFromRecord GET /api/ReceiptImage/resolveLocalPathFromRecord Endpoint level permissions
cleanTempFile GET /api/ReceiptImage/cleanTempFile Endpoint level permissions
update GET /api/ReceiptImage/update Endpoint level permissions

Updates mutable metadata for a receipt file. Use this to change sharing or other updatable options without re-uploading.

Required parameters:

  • id: (int) ID of the receipt record

Optional parameters:

  • sharing_on: (boolean) Whether the receipt is shared

Errors: Returns an array with a message if id is missing or invalid, or if you attempt to update a receipt you don't have permission to modify.

delete POST /api/ReceiptImage/delete Admin or Module WRITE
find GET /api/ReceiptImage/find Admin or Module READ
get GET /api/ReceiptImage/get Admin or Module READ
report GET /api/ReceiptImage/report Endpoint level permissions
save-batch POST /api/ReceiptImage/save-batch Admin or Module WRITE

Properties

Property Type Description
id number
type string
original_filename string
cloud_path string
filename string
thumb_filename string
width number
height number
thumb_max_size number
file_size_kb number
slug string
do_not_clean boolean
meta_json string
sharing_on boolean
created_at datetime
updated_at datetime
updated_by number

Settings

Setting
Pagination Limit (when page parameter is set) None
Default Sort Order By insertion order

Relationships

Related Resource Key Relationship to ReceiptImage Property
User uploaded_by Belongs To ReviewedBy
Expense image_id Belongs To Expense