Ramp: Fetch a transaction — response body — merchant data receipt items items item
Fetch a transaction: response body, field merchant_data / receipt / items / items / item. Complete fields and constraints for contract 2026-10-27.
API reference · Contract 2026-10-27
SDK schema: Fetch a transaction — response body — merchant data receipt items items item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
commodity_code | JSON | Required within parent | |
commodity_code (anyOf 1) | string | Alternative | |
commodity_code (anyOf 2) | null | Alternative | |
description | string | Optional | |
discount | JSON | Required within parent | |
discount (anyOf 1) | JSON | Alternative | |
discount (anyOf 1) (anyOf 1) | number | Alternative | |
discount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
discount (anyOf 2) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | number | Alternative | |
quantity (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tax | JSON | Required within parent | |
tax (anyOf 1) | JSON | Alternative | |
tax (anyOf 1) (anyOf 1) | number | Alternative | |
tax (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tax (anyOf 2) | null | Alternative | |
total | JSON | Optional | |
total (anyOf 1) | number | Alternative | |
total (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
unit_cost | JSON | Optional | |
unit_cost (anyOf 1) | number | Alternative | |
unit_cost (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |