Skip to content

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

FieldTypePresenceDescription and constraints
$objectRoot
item_dateJSONOptional
item_date (anyOf 1)stringAlternativeDate associated with the item extracted from receipt OCR. Can be null when OCR could not extract a value.
Format: date
item_date (anyOf 2)nullAlternative
item_nameJSONOptional
item_name (anyOf 1)stringAlternativeName of the item extracted from receipt OCR. Can be null when OCR could not extract a value.
item_name (anyOf 2)nullAlternative
item_quantityJSONOptional
item_quantity (anyOf 1)JSONAlternative
item_quantity (anyOf 1) (anyOf 1)numberAlternativeQuantity of the item extracted from receipt OCR. Can be null when OCR could not extract a value.
item_quantity (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
item_quantity (anyOf 2)nullAlternative
item_total_priceJSONOptional
item_total_price (anyOf 1)JSONAlternative
item_total_price (anyOf 1) (anyOf 1)numberAlternativeTotal 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)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
item_total_price (anyOf 2)nullAlternative
item_unit_priceJSONOptional
item_unit_price (anyOf 1)JSONAlternative
item_unit_price (anyOf 1) (anyOf 1)numberAlternativeUnit 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)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
item_unit_price (anyOf 2)nullAlternative

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.