Receipts
Overview
A receipt is a digital file representing proof of an expense. Receipts can be uploaded independently or attached to transactions for reconciliation, auditing, or reporting purposes.
Create a receipt
There are several ways to create a receipt:
- Create a receipt via API by providing the amount, currency, and other details.
- Upload a receipt in PDF, PNG, or JPEG formats via API.
- Send a receipt in PDF, PNG, or JPEG formats by email to the entity’s mailbox.
When a receipt is created from a PDF, PNG, or JPEG file, Monite’s OCR service automatically extracts the receipt information from the file and a new receipt is created with the extracted data fields accordingly. The file property of the receipt contains the file metadata and the link to access the original source file.
Create a receipt from data
If you already have the receipt data stored somewhere as individual attributes, you can create a receipt with these attributes by calling POST /receipts
. You can provide the base64-encoded contents of the original invoice file in the field base64_encoded_file
:
The successful response contains the receipt ID and other fields:
You can attach a receipt file to an existing receipt, in any status, by calling POST /receipts/{receipt_id}/attach_file
.
Upload files via API
You can upload receipts in the PDF, PNG, or JPEG format to Monite by calling POST /receipts/upload_from_file
. Upon file upload, the system automatically initiates OCR to extract structured fields such as merchant_name
, total_amount
, issued_at
, and line_items
from the document. The maximum file size is 20 MB:
The successful contains the receipt ID and other parameters:
When the OCR scanning is finished (this might take up to 5-7 minutes), you will receive the receipt.ocr_finished
webhook, indicating that this receipt resource has been created:
Notes
- OCR results are processed asynchronously and can be accessed through the
ocr_status
field or by subscribing to thereceipt.ocr_finished
webhook. - You can call
POST /receipts/{receipt_id}/cancel_ocr
while theocr_status
isin_progress
to stop the OCR extraction.
AI-generated expense descriptions
After OCR processing, receipts are automatically enriched with AI-generated descriptions. The system analyses both the OCR output and the transaction context to populate the description
field with concise, business-relevant content.
The AI interprets receipt details to summarize what was purchased and, when possible, the business purpose or context. This reduces manual entry by providing pre-filled descriptions that users can review and adjust as needed.
For example, a restaurant receipt from The Blue Door in London at 6pm could be described as “Dinner in London”, while a taxi receipt from the airport to the city center during a business trip might become “Taxi ride”. If the AI cannot confidently generate a meaningful description, the field remains empty instead of filling in potentially misleading text.
Send receipts by email
Each entity has a dedicated mailbox in Monite to which the receipts can be sent. The entity or entity user can send receipts as attachments in PDF, PNG, or JPEG format to this mailbox (the maximum file size is 20 MB).
The Monite OCR service scans the information inside each email’s attachments. Then, Monite automatically creates a receipt for each occurrence found.
To find the mailbox assigned to a specific entity, call GET /v1/mailboxes
:
The successful response contains information about the mailbox:
notes
-
By default, the automatically created mailboxes belong to the Monite domain (the web address that comes after
@
in an email address), but the partners can set up their own email domain for better convenience. -
When configuring email imports, make sure the mailbox is created with type
receipt
(notpayable
) so incoming emails are correctly filtered for this workflow.
Match a receipt to a transaction
To match a receipt to a transaction, send a PATCH
request to the /receipts/{receipt_id}
endpoint with the request body containing the transaction_id
associated with the recepit:
AI Receipt-to-Transaction Automatching
Receipts can be automatically matched to transactions by an AI-driven matching engine once the OCR is completed. The system evaluates only unmatched items with the same entity_id
, a timestamp difference of ≤1 day, and either the same (amount + currency)
or (merchant_amount + currency)
(with ≤1% allowed difference).
The AI logic applies a two-step approach:
- Equal match - Exact merchant name match (case-insensitive, trimmed).
- Semantic match - If no exact match, merchant name + location are embedded and compared using fuzzy semantic similarity (≥0.8).
Considerations
- The matching process runs only when receipts and transactions share the same
entity_id
and satisfy the required timestamp and amount conditions. - When an exact merchant name match is found, the receipt is immediately linked to the transaction.
- If there is no exact match but the semantic similarity between merchant name and location is at least 0.8, the system also links the receipt automatically.
- If neither condition is met, the receipt remains unmatched.
- To ensure data consistency, each receipt can only ever be linked to one transaction.
CSV export (Coming soon)
Easily export transactions and receipts into a CSV file for reporting, analysis, or integration with external tools. The export will include structured fields such as amounts, currencies, merchants, dates, and matching receipt references.
List all receipts
To get information about all receipts associated with the specified entity, call GET /receipts
.
Retrieve a receipt
To get information about a specific receipt, call GET /receipts/{receipt_id}
.
Edit a receipt
To edit an existing receipt, call PATCH /receipts/{receipt_id}
.
Delete a receipt
To delete a specific receipt, call DELETE /receipts/{receipt_id}
.
Receipt line items
Each receipt may include one or more line items representing individual goods or services listed on the document. Line items can be extracted via OCR and include structured data such as item name
, total
, cost_center_id
, and accounting_tax_rate_id
.
Add line items to a receipt
To add line items to a receipt, call the POST /receipts/{receipt_id}/line_items
endpoint:
List all line items of a receipt
To list all line items of a specific receipt, call the GET /receipts/{receipt_id}/line_items
endpoint.
Update line item
To edit a specific line item of a receipt, call the PATCH /receipts/{receipt_id}/line_items/{line_item_id}
endpoint.
Delete line item
To remove the line item from the receipt, call the DELETE /receipts/{id}/line_items/{line_item_id}
endpoint.
AI-powered Auto-tagging (Coming soon)
On receipt upload or OCR completion, AI will automatically suggest the Cost Center, Tax Rate, and General Ledger account. Tags are based on receipt data and context, reducing manual work. If no confident match is found, fields stay empty for user input.