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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
tax_amount | JSON | Optional | |
tax_amount (anyOf 1) | JSON | Alternative | |
tax_amount (anyOf 1) (anyOf 1) | number | Alternative | Tax amount extracted from receipt OCR. Can be null when OCR could not extract a value. |
tax_amount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tax_amount (anyOf 2) | null | Alternative | |
tax_name | JSON | Optional | |
tax_name (anyOf 1) | string | Alternative | Name of the tax extracted from receipt OCR. Can be null when OCR could not extract a value. |
tax_name (anyOf 2) | null | Alternative | |
tax_rate | JSON | Optional | |
tax_rate (anyOf 1) | JSON | Alternative | |
tax_rate (anyOf 1) (anyOf 1) | number | Alternative | Tax rate extracted from receipt OCR. Can be null when OCR could not extract a value. |
tax_rate (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tax_rate (anyOf 2) | null | Alternative |