Ramp: Fetch a receipt — response body — ocr currency code, line items, taxes line items item
Fetch a receipt: response body, field ocr / currency_code, line_items, taxes / line_items / item. Complete fields and constraints for contract 2026-10-27.
API reference · Contract 2026-10-27
SDK schema: Fetch a receipt — response body — ocr currency code, line items, taxes line items item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
item_date | JSON | Optional | |
item_date (anyOf 1) | string | Alternative | Date associated with the item extracted from receipt OCR. Can be null when OCR could not extract a value. Format: date |
item_date (anyOf 2) | null | Alternative | |
item_name | JSON | Optional | |
item_name (anyOf 1) | string | Alternative | Name of the item extracted from receipt OCR. Can be null when OCR could not extract a value. |
item_name (anyOf 2) | null | Alternative | |
item_quantity | JSON | Optional | |
item_quantity (anyOf 1) | JSON | Alternative | |
item_quantity (anyOf 1) (anyOf 1) | number | Alternative | Quantity of the item extracted from receipt OCR. Can be null when OCR could not extract a value. |
item_quantity (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
item_quantity (anyOf 2) | null | Alternative | |
item_total_price | JSON | Optional | |
item_total_price (anyOf 1) | JSON | Alternative | |
item_total_price (anyOf 1) (anyOf 1) | number | Alternative | Total price of the item extracted from receipt OCR. Can be null when OCR could not extract a value. |
item_total_price (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
item_total_price (anyOf 2) | null | Alternative | |
item_unit_price | JSON | Optional | |
item_unit_price (anyOf 1) | JSON | Alternative | |
item_unit_price (anyOf 1) (anyOf 1) | number | Alternative | Unit price of the item extracted from receipt OCR. Can be null when OCR could not extract a value. |
item_unit_price (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
item_unit_price (anyOf 2) | null | Alternative |