Skip to content

Ramp: Fetch a receipt — response body — ocr currency code, line items, taxes taxes item

Fetch a receipt: response body, field ocr / currency_code, line_items, taxes / taxes / 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 taxes item

FieldTypePresenceDescription and constraints
$objectRoot
tax_amountJSONOptional
tax_amount (anyOf 1)JSONAlternative
tax_amount (anyOf 1) (anyOf 1)numberAlternativeTax amount extracted from receipt OCR. Can be null when OCR could not extract a value.
tax_amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
tax_amount (anyOf 2)nullAlternative
tax_nameJSONOptional
tax_name (anyOf 1)stringAlternativeName of the tax extracted from receipt OCR. Can be null when OCR could not extract a value.
tax_name (anyOf 2)nullAlternative
tax_rateJSONOptional
tax_rate (anyOf 1)JSONAlternative
tax_rate (anyOf 1) (anyOf 1)numberAlternativeTax rate extracted from receipt OCR. Can be null when OCR could not extract a value.
tax_rate (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
tax_rate (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.