Skip to content

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

FieldTypePresenceDescription and constraints
$objectRoot
commodity_codeJSONRequired within parent
commodity_code (anyOf 1)stringAlternative
commodity_code (anyOf 2)nullAlternative
descriptionstringOptional
discountJSONRequired within parent
discount (anyOf 1)JSONAlternative
discount (anyOf 1) (anyOf 1)numberAlternative
discount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
discount (anyOf 2)nullAlternative
quantityJSONOptional
quantity (anyOf 1)numberAlternative
quantity (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
taxJSONRequired within parent
tax (anyOf 1)JSONAlternative
tax (anyOf 1) (anyOf 1)numberAlternative
tax (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
tax (anyOf 2)nullAlternative
totalJSONOptional
total (anyOf 1)numberAlternative
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unit_costJSONOptional
unit_cost (anyOf 1)numberAlternative
unit_cost (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

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.