---
title: "Upload a receipt from a file"
method: POST
path: "/receipts/upload_from_file"
tags: ["Receipts"]
---

# Upload a receipt from a file

`POST /receipts/upload_from_file`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/receipts/upload_from_file`
- Auth: HTTP bearer

Upload an incoming receipt in the PDF, PNG, or JPEG format and scan its contents. The maximum file size is 20 MB.

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required

## Response `201`

Successful Response

- ReceiptResponseSchema
  - `id` string, uuid, required: Unique receipt ID.
  - `created_at` string, date-time, required: Creation timestamp.
  - `updated_at` string, date-time, required: Update timestamp.
  - `created_by_entity_user_id` string, uuid: Entity user who created.
  - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'SVC' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW'
  - `currency_exchange` object: Currency exchange details.
  - `description` string: Short transaction description.
  - `document_id` string: Receipt number.
  - `file_id` string, uuid: The id of the receipt file stored in the file saver.
  - `file_url` string: The URL of the receipt file stored in the file saver.
  - `issued_at` string, date-time: Date when the receipt was issued.
  - `merchant_location` string: Merchant location.
  - `merchant_name` string: Merchant name.
  - `ocr_request_id` string, uuid: OCR request id.
  - `ocr_status` string: OCR status.
  - `origin` 'upload' | 'email', required
  - `partner_metadata` object: Partner metadata.
  - `sender` string, email: The email address from which the invoice was sent to the entity.
  - `source_of_data` 'ocr' | 'user_specified'
  - `total_amount` integer: Total amount in minor units.
  - `transaction_id` string, uuid: Transaction ID.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `409`: Error uploading the file.
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/monite/apis/monite-3.md) - [All operations](https://skmtc.dev/monite/apis/monite-3/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-3/revisions/c13be6f83ce9?raw)
